Shaders: list offline precompile options in CLI help #2223
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2223
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2223/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Creaa on GitHub · 2026-11-25 10:21 UTC · original
Creaa:cli/shader-precompile-help-2216→main· +13 −0 · 2 files · 1 commits · merged 2026-11-25 18:14 UTCList the offline shader precompile options in
xcl --helpso users can find the workflow documented in the README. Fixes #2216.What is in it
--precompile,--only STAGE,--pipelinesand--used-only.Tested
cargo test -p xcl --test shaders_e2e help_lists_shader_precompile_options -- --exactfailed on the original help at568e7db7and passed with the fix..\scripts\test.ps1 --show-outputat5db200e5rancargo build --workspaceandcargo test --workspace -- --test-threads=4 --show-output. Cargo reported 1155 passed, 0 failed, 46 ignored. The suite logged 27 GPU skips within the passing tests: 20 wave64 cases, 3 unsupported wave32 per-lane cases, 2 missing debug-layer cases, 1 heap-window case and 1 driver-cache case.Regression run
Built each clean revision with
cargo build --release -p xcland ran.\scripts\smoke.ps1 -Game <folder> -Title RetailTitle -Seconds 60. In the first pair, main showed 1,621 frames at 11,952 MB peak commit and the PR showed 1,572 at 19,558 MB, above the 125% memory threshold. Both exited normally with zero crashes and device removals. Repeating in reverse order gave the following results.Main (ran second)
PR (ran first)
Not tested
XCL_SAMPLE_*inputs listed by the test script. The CLI test exercises help output. The cause of the peak-memory variation was not established.AI use
@raylitebull on GitHub · 2026-11-25 11:00 UTC · original
Code review on
5db200e:--precompile,--only STAGE,--pipelines, and--used-only, andhelp_lists_shader_precompile_optionsasserts all four flags inxcl --help; CI (Build and test+PR description) is green andCLEAN.Remaining before merge: Independent AMD test/CLI verification on
5db200e.@itsonewi on GitHub · 2026-11-25 11:01 UTC · original
Is the AMD run needed for this diff? The new test only spawns
xcl --helpand reads stdout; it never opens a device, compiles a shader or touches D3D12. The help string is platform-independent, andBuild and test (Windows, no GPU)already compiles the binary and runs that exact test on5db200e. An AMD machine would exercise the same string comparison.If the AMD check is a blanket rule for every PR, that is fine - I just wanted to note that this diff has no GPU-specific path to verify.
@raylitebull on GitHub · 2026-11-25 11:04 UTC · original
@itsonewi Confirmed that the test itself only checks \xcl --help\ stdout with no GPU path; the gate here requires independent second-host / cross-vendor verification on the head commit before merging, so a quick pass on another machine (Windows/AMD) is still needed.
@itsSio on GitHub · 2026-11-25 11:13 UTC · original
Tested
Independent Windows/AMD check requested above, on clean
5db200e5094e81f889fdac75be71c343ee31b54a. Windows 11 Pro 26200 and x64 MSVC on both PCs, unoptimized dev/test with debug info off.cargo build --workspace --lockedsucceeded on both. The exact CLI test (cargo test -p xcl --test shaders_e2e --locked help_lists_shader_precompile_options -- --exact --nocapture) was 1 passed / 0 failed / 0 ignored / 0 skipped on each. On the Radeon machine, both binaries exited 0 forxcl --help:--precompile,--only,--pipelinesand--used-onlywere absent on parent568e7db7729c8fa6c8f0f4b32d798faaf11462bband present on the head. The help test itself does not exercise GPU code.cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --nocapture:32.0.21043.500132.0.16.1088Both logged unavailable driver-cache control and heap windows. Radeon also logged six wave32/wave64 per-lane f16/f32 refusals; the RTX 2080 SUPER logged 20 native-wave64 skips, three wave32 per-lane refusals and two missing D3D12 debug-layer skips.
The only Radeon workspace failure was
gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1(#2115). I ran that test alone (cargo test -p xcl --lib --locked gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 -- --exact --test-threads=1 --nocapture) on the exact parent, on the same Radeon and DXC. It failed there with the same mismatch:seed 540: res[833] = 0x7, CPU 0x6(0 passed / 1 failed / 0 ignored / 0 skipped). It predates the CLI change; the original Radeon workspace run is still recorded as failing.Not tested
Retail smoke, optional game samples, Intel, or performance. The parent comparison was the CLI output and targeted Radeon fuzz test, not a full parent workspace run.
AI use
Ran via Samaritan:
openai/gpt-6.2-sol): ran the two-PC tests and the targeted parent check, verified the logs and wrote this report. No subagents contributed to this check.@thiagocalile on GitHub · 2026-11-25 16:45 UTC · original
Independent test report for head
5db200e5094e81f889fdac75be71c343ee31b54aon an AMD Radeon RX 6600 (8 GB VRAM, RDNA2, native wave64).Tested
32.0.21045.29003,XCL_ADAPTER=radeon), AMD Ryzen 7 5700X3D, 47.9 GB RAM, Windows 11 (10.0.26200.0), Rust1.100.0(stable-x86_64-pc-windows-msvc), DXC1.8.2502.11.XCL_ADAPTER=radeon cargo test --no-fail-fast -p xcl --test shaders_e2e -- --test-threads=4: 5 passed, 0 failed, 0 ignored (0skipped).Not tested: full workspace test suite on this head, NVIDIA/Intel GPUs, or Linux/Wine (CLI help / test-only PR, no smoke run needed).
AI use: Antigravity (Gemini 4 Neon) ran the builds, tests, and smoke runs and drafted this report; the account owner reviewed and approved posting.
@upipibi on GitHub · 2026-11-25 18:00 UTC · original
NVIDIA test report for
5db200e(head as is, base568e7db), as asked in #1607's NVIDIA list. RTX 3070 8 GB (Ampere, 32-lane waves), driver 616.56, Windows 11, debug, aftercargo build --workspace:cargo test --workspace --no-fail-fast -- --test-threads=4 --skip hle::xaudio2: 1146 passed, 0 failed, 46 ignored. The end-to-end title tests pass.main0829441on the same machine, same command: 1263 passed, 0 failed, 46 ignored (the PR's base is older, so it has fewer tests).hle::xaudio2, because its tests fail or hang on this machine onmaintoo. The PR doesn't touch it.no wave64on this card, 3 f16/f32 forms the per-lane path refuses, 1 no heap windows, and 1 PSO measurement that needs Developer Mode to turn the driver cache off.AI-assisted (Claude Code, Claude Opus 5.5). Synthetic tests only; no title run.