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

Open
spicbully-star wants to merge 1 commit from upstream-pr/2765 into main
spicbully-star commented 2026-11-26 11:09:17 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by spicbully-star on 2026-11-26T11:09:17Z.


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.
<!-- greyfinch-sync:ivall/xcl:issue:5508916915 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2765). Originally posted by [spicbully-star](https://github.com/spicbully-star) on 2026-11-26T11:09:17Z. --- 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.
github-actions[bot] commented 2026-12-01 02:34:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:34:14Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7298757838 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2765#issuecomment-7298757838). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-12-01T02:34:14Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 08:54:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:54:25Z.


Triage (#1607) – head d7fab00

No open or merged PR makes the same README change. Both claims match the code: --precompile without --pipelines only translates into the DXIL cache (shaders::precompile), and --measure-pso fails without Developer Mode (cannot disable the driver cache (Windows Developer Mode is required) in shaders.rs). The branch conflicts: main has since changed the --pipelines line next to it, so it needs a rebase.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7305942070 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2765#issuecomment-7305942070). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:54:25Z. --- **Triage (#1607)** – head d7fab00 No open or merged PR makes the same README change. Both claims match the code: `--precompile` without `--pipelines` only translates into the DXIL cache (`shaders::precompile`), and `--measure-pso` fails without Developer Mode (`cannot disable the driver cache (Windows Developer Mode is required)` in shaders.rs). The branch conflicts: main has since changed the `--pipelines` line next to it, so it needs a rebase. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2765:upstream-pr/2765'
git switch 'upstream-pr/2765'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2765'
git switch 'upstream-pr/2765'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2765'
git switch 'upstream-pr/2765'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2765'
git switch 'main'
git merge --squash 'upstream-pr/2765'
git switch 'main'
git merge --ff-only 'upstream-pr/2765'
git switch 'main'
git merge 'upstream-pr/2765'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2755
No description provided.