README: translation-only --precompile; --measure-pso needs Developer Mode #2765

Open
github-bot wants to merge 1 commit from github-bot/gh-2765 into main AGit
Owner

@⁠spicbully-star on GitHub · 2026-11-26 11:09 UTC · original
spicbully-star:patch-1 → main · +2 −1 · 1 files · 1 commits · open

Two lines in the README's command list, both checked on a retail title on AMD RDNA4. Part of #2088.

  • xcl shaders <pack> --precompile --only cs (without --pipelines) translates the compute shaders to DXIL and caches them without any driver compile. It wasn't listed. On an RX 9070 XT, where --pipelines can stall in the driver, this was the safe way to warm the cache: 2,734 compiled, 0 errors, 3,666 s, and the next run of the title translated none of its compute shaders again.
  • --measure-pso needs Windows Developer Mode. Without it, it stops with cannot disable the driver cache (Windows Developer Mode is required): … (0x887A002D) (shaders.rs). The README only said "cache disabled".

What is in it

  • README.md: one new line in the command list, one comment extended

Tested

  • AMD Radeon RX 9070 XT, Intel i7-9700K, Windows 10 22H2 (10.0.19045.6093), rustc 1.100.0, debug
  • cargo test --workspace --no-fail-fast -- --test-threads=4 on b49be18 (main, before this change; a README-only diff changes no test), with XCL_D3D12_DIR pointing at the D3D12 Agility SDK v620 (Windows 10 has no SM 6.6 without it): 1433 passed, 2 failed, 47 ignored
  • The 2 failures are on main as it is, not from this PR: gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 (seed 722: res[30] = 0x1, CPU 0x7fffffff) and gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_3 (seed 1599: res[193] = 0x1, CPU 0x0), at fuzz_tests.rs:1171
  • SKIPPED (12): no d3d12SDKLayers.dll / D3D12 debug layer (4); f16_programs_on_the_gpu / f32_programs_on_the_gpu per-lane forms refused (6, unsupported V_MUL_F16 / V_PK_MUL_F16 / V_CVT_F16_F32, #1426); pso_measurement_compiles_an_exact_synthetic_record (needs Developer Mode); rla_pixel_shader_compiles_without_local_arrays (no dxc.exe); heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows)
  • An earlier run without the Agility SDK: 1433 passed, 2 failed (shaders::pipeline_cap_tests::stale_blob_cannot_bypass_the_offline_pipeline_cap panics with "no SM 6.6" instead of skipping, and split_compute_program_prebuilds_and_caches_chain_pieces), 357 SKIPPED
  • Both README statements checked by hand: the translation-only pass on the retail title's shader pack, and --measure-pso without Developer Mode

Regression run

  • Not needed: no runtime change (README only)

Not tested

  • --measure-pso with Developer Mode on
  • NVIDIA; Windows 11; the D3D12 debug layer tests

AI use

  • Claude (Claude Opus 5.5) wrote the two lines and this description and ran the tests through a script on my PC. I read the diff and the results, and I'm opening the PR.
**@⁠spicbully-star** on GitHub · 2026-11-26 11:09 UTC · [original](https://github.com/xcl-dev/xcl/pull/2765) `spicbully-star:patch-1` → `main` · +2 −1 · 1 files · 1 commits · open Two lines in the README's command list, both checked on a retail title on AMD RDNA4. Part of #2088. - `xcl shaders <pack> --precompile --only cs` (without `--pipelines`) translates the compute shaders to DXIL and caches them without any driver compile. It wasn't listed. On an RX 9070 XT, where `--pipelines` can stall in the driver, this was the safe way to warm the cache: 2,734 compiled, 0 errors, 3,666 s, and the next run of the title translated none of its compute shaders again. - `--measure-pso` needs Windows Developer Mode. Without it, it stops with `cannot disable the driver cache (Windows Developer Mode is required): … (0x887A002D)` (shaders.rs). The README only said "cache disabled". **What is in it** - README.md: one new line in the command list, one comment extended **Tested** - AMD Radeon RX 9070 XT, Intel i7-9700K, Windows 10 22H2 (10.0.19045.6093), rustc 1.100.0, debug - `cargo test --workspace --no-fail-fast -- --test-threads=4` on `b49be18` (main, before this change; a README-only diff changes no test), with `XCL_D3D12_DIR` pointing at the D3D12 Agility SDK v620 (Windows 10 has no SM 6.6 without it): 1433 passed, 2 failed, 47 ignored - The 2 failures are on main as it is, not from this PR: `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` (seed 722: res[30] = 0x1, CPU 0x7fffffff) and `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_3` (seed 1599: res[193] = 0x1, CPU 0x0), at fuzz_tests.rs:1171 - SKIPPED (12): no `d3d12SDKLayers.dll` / D3D12 debug layer (4); `f16_programs_on_the_gpu` / `f32_programs_on_the_gpu` per-lane forms refused (6, unsupported V_MUL_F16 / V_PK_MUL_F16 / V_CVT_F16_F32, #1426); `pso_measurement_compiles_an_exact_synthetic_record` (needs Developer Mode); `rla_pixel_shader_compiles_without_local_arrays` (no dxc.exe); `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows) - An earlier run without the Agility SDK: 1433 passed, 2 failed (`shaders::pipeline_cap_tests::stale_blob_cannot_bypass_the_offline_pipeline_cap` panics with "no SM 6.6" instead of skipping, and `split_compute_program_prebuilds_and_caches_chain_pieces`), 357 SKIPPED - Both README statements checked by hand: the translation-only pass on the retail title's shader pack, and `--measure-pso` without Developer Mode **Regression run** - Not needed: no runtime change (README only) **Not tested** - `--measure-pso` with Developer Mode on - NVIDIA; Windows 11; the D3D12 debug layer tests **AI use** - Claude (Claude Opus 5.5) wrote the two lines and this description and ran the tests through a script on my PC. I read the diff and the results, and I'm opening the PR.
`xcl shaders --precompile --only cs` without `--pipelines` translates and caches the DXIL
without touching the driver; it was not listed. `--measure-pso` stops with "cannot disable
the driver cache (Windows Developer Mode is required)" (shaders.rs) without it.

Assisted-by: Claude (Claude Opus 5.5)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 11:15:04 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2765/head:github-bot/gh-2765'
git switch 'github-bot/gh-2765'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2765'
git switch 'github-bot/gh-2765'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2765'
git switch 'github-bot/gh-2765'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2765'
git switch 'main'
git merge --squash 'github-bot/gh-2765'
git switch 'main'
git merge --ff-only 'github-bot/gh-2765'
git switch 'main'
git merge 'github-bot/gh-2765'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.