Shaders: precompile the compute passes of console mesh shaders #2246

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

@⁠MacieGx on GitHub · 2026-11-25 11:12 UTC · original
MacieGx:shaders/precompile-mesh-compute → main · +154 −27 · 4 files · 1 commits · open

xcl shaders --precompile --pipelines built driver blobs for console compute shaders only. The compute pass of a console mesh shader (the two-pass path, real::finish_two_pass) was always compiled by the driver in the game. In the newer retail title (#505), whose world is drawn by thousands of console mesh pipelines, that was 3–9 s per pass on an RTX 5080, one at a time, while its draws were skipped. With this, --precompile makes those passes too and keeps their blobs where the runtime looks for them. Part of #505.

What is in it

  • crates/xcl/src/gpu/recomp/pso.rs: console_mesh_in(blob, ps, split, windows), the body of console_mesh with the memory windows passed in; console_mesh calls it with mem_windows(), so the runtime is unchanged.
  • crates/xcl/src/shaders.rs:
    • --precompile treats an MS the runtime builds in two passes like a CS. It translates it through console_mesh_in with no pixel shader (the compute pass does not depend on it, so its DXIL is the runtime's).
    • With --pipelines it builds the pass with XCL's ABI root signature and the pass's static samplers, through the existing make_with_cache_path (so XCL_PIPELINE_THREADS and XCL_PIPELINE_MAX_KB apply), and keeps the blob at real::two_pass_compute_blob_path.
    • --only ms builds those alone. --sample N stops after the first N programs --only lets through (the option --direct already has; its default of 200 stays for the direct sweep).
    • --used-only passes MSs over: a mesh pipeline's used key includes its PS, so the MS alone does not identify it.
    • Pipelines::make is now used only by tests (#[cfg(test)]); precompile calls make_with_cache_path.
  • crates/xcl/src/hle/d3d12x/real.rs: two_pass_compute_blob_path is the file finish_two_pass reads. The pass's blob is now looked up before the huge-pipeline gate, and a pass with a blob no longer counts towards the gate's size (it is made in milliseconds).
  • README.md: the --only ms line.
  • Test shaders::tests::an_ms_compute_pass_is_precompiled_under_the_runtimes_key. For no split / 4 windows, split / 4 windows and split / heap windows: the precompiled DXIL and static samplers equal what the runtime builds with a PS, and the blob path equals two_pass_compute_blob_path. console_mesh with mem_windows() gives the same pass as console_mesh_in, and a CS and a PS are not taken for mesh shaders.
  • 154 lines added and 27 removed.

Tested

  • NVIDIA GeForce RTX 5080 (driver 621.24 = 32.0.16.2124), AMD Ryzen 7 5800X3D, 32 GB, Windows 11 Pro 10.0.26200, Rust 1.100.0 stable-x86_64-pc-windows-msvc, release. On 949609b (this PR, rebased onto main 6d12f58).
  • cargo test --release -p xcl --lib shaders:: on 949609b: 11 passed, 0 failed, 0 ignored (the new test passed; pso_measurement_compiles_an_exact_synthetic_record SKIPPED: the driver cache cannot be disabled without Developer Mode).
  • cargo build --release --workspace && cargo test --release --workspace --no-fail-fast -- --test-threads=4 on 949609b: 1420 passed, 4 failed, 46 ignored.
    • The 4 failures are gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3 (CreateComputePipelineState: out of memory (0x8007000E)), which fail on main as well.
    • rerouted_disk_entries_follow_the_direct_translator and pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa, reported in the comments, are not in this diff; they failed on the older main c9a5d58 without this change and pass in the run above.
  • SKIPPED (the same as on main): 21 "no wave64" (recomp::lower::tests ×4, recomp::lower_dxil::tests ×14, gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware, dxil::kernel::dispatch_chain_native_wave64_builds_whole), 3 "refused by the per-lane form", heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows), pso_measurement_compiles_an_exact_synthetic_record.
  • xcl shaders <the title's shaders.rpf> --precompile --only ms --pipelines --sample 50 (on 8d49cf1, before this rebase): 50 compiled, 0 errors, 50 pipelines made, 0 refused, 8.1 s.
  • On a local branch that adds other open PRs and local work to main (where the title reaches its world), the same change made 9282 compute passes in 25 min (--only ms --pipelines). There, blobs that game runs had kept were found by the precompile under the same files (11 of the first 50), which shows that the two keys agree.

Regression run

main:

xcl-smoke v1
commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb
gpu: NVIDIA GeForce RTX 5080
title: 16b5e5d4
seconds: 60
exit: 0x0
frames shown: 1383 (PresentX 1383)
presents per 2 s (last 3): 35 52 56
device removals: 0
crashes: 0
peak commit: 19703 MB

this PR:

xcl-smoke v1
commit: 949609b2ee210e68ed28ac8197a4a9e5d0a52dfe
gpu: NVIDIA GeForce RTX 5080
title: 16b5e5d4
seconds: 60
exit: 0x0
frames shown: 1578 (PresentX 1578)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15363 MB

Not tested

  • AMD and Intel GPUs; a debug build; a full --only ms run on main itself.
  • The smoke runs cover the title's first 60 s, before its world, where few mesh pipelines are built; they check that nothing regresses, not the gain.
  • The pass-through mesh pipeline (the title's PS and state) is still built in the game; it cannot be precompiled from the pack.
  • GS two-pass pipelines are not precompiled.

AI use

  • Claude Code. Claude Opus 5.5 coordinated, ran the regression runs, reviewed the change and wrote this description. A Claude Opus 5.5 subagent wrote the change and its test on a lab branch, and another ported it to main and ran the whole suite and the sample precompile.

🤖 Generated with Claude Code

**@⁠MacieGx** on GitHub · 2026-11-25 11:12 UTC · [original](https://github.com/xcl-dev/xcl/pull/2246) `MacieGx:shaders/precompile-mesh-compute` → `main` · +154 −27 · 4 files · 1 commits · open `xcl shaders --precompile --pipelines` built driver blobs for console compute shaders only. The compute pass of a console mesh shader (the two-pass path, `real::finish_two_pass`) was always compiled by the driver in the game. In the newer retail title (#505), whose world is drawn by thousands of console mesh pipelines, that was 3–9 s per pass on an RTX 5080, one at a time, while its draws were skipped. With this, `--precompile` makes those passes too and keeps their blobs where the runtime looks for them. Part of #505. **What is in it** - `crates/xcl/src/gpu/recomp/pso.rs`: `console_mesh_in(blob, ps, split, windows)`, the body of `console_mesh` with the memory windows passed in; `console_mesh` calls it with `mem_windows()`, so the runtime is unchanged. - `crates/xcl/src/shaders.rs`: - `--precompile` treats an MS the runtime builds in two passes like a CS. It translates it through `console_mesh_in` with no pixel shader (the compute pass does not depend on it, so its DXIL is the runtime's). - With `--pipelines` it builds the pass with XCL's ABI root signature and the pass's static samplers, through the existing `make_with_cache_path` (so `XCL_PIPELINE_THREADS` and `XCL_PIPELINE_MAX_KB` apply), and keeps the blob at `real::two_pass_compute_blob_path`. - `--only ms` builds those alone. `--sample N` stops after the first N programs `--only` lets through (the option `--direct` already has; its default of 200 stays for the direct sweep). - `--used-only` passes MSs over: a mesh pipeline's used key includes its PS, so the MS alone does not identify it. - `Pipelines::make` is now used only by tests (`#[cfg(test)]`); precompile calls `make_with_cache_path`. - `crates/xcl/src/hle/d3d12x/real.rs`: `two_pass_compute_blob_path` is the file `finish_two_pass` reads. The pass's blob is now looked up before the huge-pipeline gate, and a pass with a blob no longer counts towards the gate's size (it is made in milliseconds). - `README.md`: the `--only ms` line. - Test `shaders::tests::an_ms_compute_pass_is_precompiled_under_the_runtimes_key`. For no split / 4 windows, split / 4 windows and split / heap windows: the precompiled DXIL and static samplers equal what the runtime builds with a PS, and the blob path equals `two_pass_compute_blob_path`. `console_mesh` with `mem_windows()` gives the same pass as `console_mesh_in`, and a CS and a PS are not taken for mesh shaders. - 154 lines added and 27 removed. **Tested** - NVIDIA GeForce RTX 5080 (driver 621.24 = 32.0.16.2124), AMD Ryzen 7 5800X3D, 32 GB, Windows 11 Pro 10.0.26200, Rust 1.100.0 `stable-x86_64-pc-windows-msvc`, release. On `949609b` (this PR, rebased onto `main` `6d12f58`). - `cargo test --release -p xcl --lib shaders::` on `949609b`: 11 passed, 0 failed, 0 ignored (the new test passed; `pso_measurement_compiles_an_exact_synthetic_record` SKIPPED: the driver cache cannot be disabled without Developer Mode). - `cargo build --release --workspace && cargo test --release --workspace --no-fail-fast -- --test-threads=4` on `949609b`: 1420 passed, 4 failed, 46 ignored. - The 4 failures are `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0..3` (`CreateComputePipelineState: out of memory (0x8007000E)`), which fail on `main` as well. - `rerouted_disk_entries_follow_the_direct_translator` and `pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa`, reported in the comments, are not in this diff; they failed on the older `main` `c9a5d58` without this change and pass in the run above. - SKIPPED (the same as on `main`): 21 "no wave64" (`recomp::lower::tests` ×4, `recomp::lower_dxil::tests` ×14, `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`, `dxil::kernel::dispatch_chain_native_wave64_builds_whole`), 3 "refused by the per-lane form", `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows), `pso_measurement_compiles_an_exact_synthetic_record`. - `xcl shaders <the title's shaders.rpf> --precompile --only ms --pipelines --sample 50` (on `8d49cf1`, before this rebase): 50 compiled, 0 errors, 50 pipelines made, 0 refused, 8.1 s. - On a local branch that adds other open PRs and local work to `main` (where the title reaches its world), the same change made 9282 compute passes in 25 min (`--only ms --pipelines`). There, blobs that game runs had kept were found by the precompile under the same files (11 of the first 50), which shows that the two keys agree. **Regression run** main: ``` xcl-smoke v1 commit: 568e7db7729c8fa6c8f0f4b32d798faaf11462bb gpu: NVIDIA GeForce RTX 5080 title: 16b5e5d4 seconds: 60 exit: 0x0 frames shown: 1383 (PresentX 1383) presents per 2 s (last 3): 35 52 56 device removals: 0 crashes: 0 peak commit: 19703 MB ``` this PR: ``` xcl-smoke v1 commit: 949609b2ee210e68ed28ac8197a4a9e5d0a52dfe gpu: NVIDIA GeForce RTX 5080 title: 16b5e5d4 seconds: 60 exit: 0x0 frames shown: 1578 (PresentX 1578) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15363 MB ``` **Not tested** - AMD and Intel GPUs; a debug build; a full `--only ms` run on `main` itself. - The smoke runs cover the title's first 60 s, before its world, where few mesh pipelines are built; they check that nothing regresses, not the gain. - The pass-through mesh pipeline (the title's PS and state) is still built in the game; it cannot be precompiled from the pack. - GS two-pass pipelines are not precompiled. **AI use** - Claude Code. Claude Opus 5.5 coordinated, ran the regression runs, reviewed the change and wrote this description. A Claude Opus 5.5 subagent wrote the change and its test on a lab branch, and another ported it to `main` and ran the whole suite and the sample precompile. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
A retail title's world has thousands of console mesh pipelines. The
runtime builds each as two passes (`real::finish_two_pass`): a compute
pass translated from the console MS and a pass-through mesh pipeline.
`xcl shaders --precompile --pipelines` made only the CS pipelines, so
every compute pass was compiled by the driver in-game, 3-9 s each.

`--precompile` now treats an MS the runtime builds in two passes like a
CS: it translates it through `pso::console_mesh_in` (the runtime's
`console_mesh` with the memory windows given) with no pixel shader -
the compute pass does not depend on it - so the DXIL is the one the
runtime makes. With `--pipelines` the pass is built with XCL's ABI root
signature and the pass's static samplers, under `XCL_PIPELINE_THREADS`
and the `XCL_PIPELINE_MAX_KB` cap, and its driver blob is kept under
`real::two_pass_compute_blob_path` (DXIL alone, no flags), the file
`finish_two_pass` now reads through the same helper. `--only ms` builds
those alone; `--sample N` stops after the first N programs `--only`
lets through. `--used-only` passes the MSs over: a mesh pipeline's key
includes its PS, so the MS alone does not identify it.

In `finish_two_pass` the compute pass's blob is looked up before the
huge-pipeline gate, and a pass with a blob no longer counts towards the
gate's size: with a blob it is made in milliseconds.

Not covered: the pass-through mesh pipeline depends on the title's PS
and its blend / raster / depth state and target formats, so it cannot
be precompiled and is still built by the runtime.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:24:29 +00:00
Author
Owner

@⁠itsSio on GitHub · 2026-11-25 11:36 UTC · original

Tested

Independent debug check on clean 696a222a597cfe1f3e86db9d0c2b732f8177156f. Windows 11 Pro 26200 on both PCs, x64 MSVC, unoptimized dev/test profiles with debug info off. cargo build --workspace --locked passed on both. cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --nocapture exited 101 on both:

GPU / driver CPU, RAM, toolchain Passed / failed / ignored Runtime SKIPPED
RTX 5080 / 32.0.16.1088 Ryzen 7 9800X3D, 32 GiB; Rust 1.97.0, DXC/DXIL 1.9.2609.5 1228 / 2 / 46 25
RTX 2080 SUPER / 32.0.16.1088 Ryzen 5 5600X, 16 GiB; Rust 1.99.1, DXC/DXIL 1.8.2502.11 1228 / 2 / 46 27

Both logged 20 native-wave64 skips, three per-lane f16/f32 refusals, unavailable driver-cache control and unavailable heap windows. The RTX 2080 SUPER also logged two tests skipped for the missing D3D12 debug layer.

cargo test -p xcl --lib --locked shaders::tests:: -- --test-threads=1 --nocapture gave 8 passed / 0 failed / 0 ignored on each RTX card and on the Radeon RDNA2 iGPU (driver 32.0.21043.5001, Ryzen 7 system). This included an_ms_compute_pass_is_precompiled_under_the_runtimes_key. On each adapter, the driver-cache measurement logged one runtime SKIPPED, and the optional pack test did no work because XCL_SAMPLE_RPF was unset.

The two workspace failures were rerouted_disk_entries_follow_the_direct_translator (68 instead of 1) and pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa (format 85, got 28). Both match the previously independently reproduced assertions on 5478c4a7 (evidence); that was not an exact-parent comparison for this PR. The workspace results above remain failing.

Not tested

Retail smoke, a full --only ms pack run, full AMD workspace, Intel, or performance.

AI use

Ran via Samaritan:

  • OpenCode with OpenAI GPT-6.2 Sol (openai/gpt-6.2-sol): ran the independent checks, verified logs on both PCs and wrote this report. No subagents contributed to this check.
**@⁠itsSio** on GitHub · 2026-11-25 11:36 UTC · [original](https://github.com/xcl-dev/xcl/pull/2246#issuecomment-7161266967) **Tested** Independent debug check on clean `696a222a597cfe1f3e86db9d0c2b732f8177156f`. Windows 11 Pro 26200 on both PCs, x64 MSVC, unoptimized dev/test profiles with debug info off. `cargo build --workspace --locked` passed on both. `cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --nocapture` exited 101 on both: | GPU / driver | CPU, RAM, toolchain | Passed / failed / ignored | Runtime `SKIPPED` | | --- | --- | ---: | ---: | | RTX 5080 / `32.0.16.1088` | Ryzen 7 9800X3D, 32 GiB; Rust 1.97.0, DXC/DXIL 1.9.2609.5 | **1228 / 2 / 46** | 25 | | RTX 2080 SUPER / `32.0.16.1088` | Ryzen 5 5600X, 16 GiB; Rust 1.99.1, DXC/DXIL 1.8.2502.11 | **1228 / 2 / 46** | 27 | Both logged 20 native-wave64 skips, three per-lane f16/f32 refusals, unavailable driver-cache control and unavailable heap windows. The RTX 2080 SUPER also logged two tests skipped for the missing D3D12 debug layer. `cargo test -p xcl --lib --locked shaders::tests:: -- --test-threads=1 --nocapture` gave **8 passed / 0 failed / 0 ignored** on each RTX card and on the Radeon RDNA2 iGPU (driver `32.0.21043.5001`, Ryzen 7 system). This included `an_ms_compute_pass_is_precompiled_under_the_runtimes_key`. On each adapter, the driver-cache measurement logged one runtime `SKIPPED`, and the optional pack test did no work because `XCL_SAMPLE_RPF` was unset. The two workspace failures were `rerouted_disk_entries_follow_the_direct_translator` (68 instead of 1) and `pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa` (format 85, got 28). Both match the previously independently reproduced assertions on `5478c4a7` ([evidence](https://git.gtahub.st/github/xcl-dev--xcl/pulls/2229)); that was not an exact-parent comparison for this PR. The workspace results above remain failing. **Not tested** Retail smoke, a full `--only ms` pack run, full AMD workspace, Intel, or performance. **AI use** Ran via Samaritan: - OpenCode with OpenAI GPT-6.2 Sol (`openai/gpt-6.2-sol`): ran the independent checks, verified logs on both PCs and wrote this report. No subagents contributed to this check.
Author
Owner

@⁠oni-swr on GitHub · 2026-11-25 16:23 UTC · original · edited 2026-11-26 07:02 UTC

amd-win test report — 2026-11-26

Tested

Clean PR head 949609b2ee210e68ed28ac8197a4a9e5d0a52dfe and its exact parent 6d12f58a229bc73889878a448c64dc3af25eeba0. Debug builds on AMD Radeon RX 7800 XT (driver 32.0.31035.1003), Ryzen 7 5700X3D, Windows 11 Pro build 26200, Rust 1.100.0 MSVC x64, and DXC/DXIL 1.8.2502.11.

cargo build --locked -j 4 --workspace passed on both revisions. cargo test --locked -j 4 --workspace --no-fail-fast -- --test-threads=4 --nocapture exited 101 on both with XCL_ADAPTER=Radeon RX 7800 XT, XCL_PSO_DISK_CACHE=1, a fresh XCL_DXIL_CACHE per revision, and no XCL_SAMPLE_* inputs.

Revision Passed Failed Ignored SKIPPED notices
PR head 1423 1 46 7
Exact parent 1422 1 46 7

Both runs failed gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 at seed 722 (res[30] was 0x1 on the GPU and 0x7fffffff on the CPU). Both logged the same six unsupported per-lane f16/f32 notices and one unavailable heap-window notice. The harness counted the three tests that emitted these notices as passed.

On the head, cargo test --locked -j 4 -p xcl --lib an_ms_compute_pass_is_precompiled_under_the_runtimes_key -- --test-threads=1 --nocapture ran in two separate processes with fresh cache directories:

  • XCL_PSO_DISK_CACHE=1: 1 passed, 0 failed, 0 ignored, 0 skip notices.
  • XCL_PSO_DISK_CACHE=0: 0 passed, 1 failed, 0 ignored, 0 skip notices. The fixture failed at assert!(path.is_some()) in shaders.rs:2193.

Earlier evidence (2026-11-25): on 696a222a597cfe1f3e86db9d0c2b732f8177156f, the focused fixture passed and the workspace suite reported 1226 passed, 4 failed, and 46 ignored. That workspace run used the then-current merge base as its comparison.

Not tested

Retail smoke on this head, a full shader-pack precompile, and creation and subsequent runtime reuse of a saved driver blob.

AI use

Codex (gpt-6.2-sol) ran and verified the 2026-11-26 tests and wrote this update. Claude Code (Claude Sonnet 5.5) ran and wrote the 2026-11-25 report.

**@⁠oni-swr** on GitHub · 2026-11-25 16:23 UTC · [original](https://github.com/xcl-dev/xcl/pull/2246#issuecomment-7167901901) · edited 2026-11-26 07:02 UTC **amd-win test report — 2026-11-26** **Tested** Clean PR head `949609b2ee210e68ed28ac8197a4a9e5d0a52dfe` and its exact parent `6d12f58a229bc73889878a448c64dc3af25eeba0`. Debug builds on AMD Radeon RX 7800 XT (driver `32.0.31035.1003`), Ryzen 7 5700X3D, Windows 11 Pro build 26200, Rust 1.100.0 MSVC x64, and DXC/DXIL 1.8.2502.11. `cargo build --locked -j 4 --workspace` passed on both revisions. `cargo test --locked -j 4 --workspace --no-fail-fast -- --test-threads=4 --nocapture` exited 101 on both with `XCL_ADAPTER=Radeon RX 7800 XT`, `XCL_PSO_DISK_CACHE=1`, a fresh `XCL_DXIL_CACHE` per revision, and no `XCL_SAMPLE_*` inputs. | Revision | Passed | Failed | Ignored | SKIPPED notices | | --- | ---: | ---: | ---: | ---: | | PR head | 1423 | 1 | 46 | 7 | | Exact parent | 1422 | 1 | 46 | 7 | Both runs failed `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` at seed 722 (`res[30]` was `0x1` on the GPU and `0x7fffffff` on the CPU). Both logged the same six unsupported per-lane f16/f32 notices and one unavailable heap-window notice. The harness counted the three tests that emitted these notices as passed. On the head, `cargo test --locked -j 4 -p xcl --lib an_ms_compute_pass_is_precompiled_under_the_runtimes_key -- --test-threads=1 --nocapture` ran in two separate processes with fresh cache directories: - `XCL_PSO_DISK_CACHE=1`: 1 passed, 0 failed, 0 ignored, 0 skip notices. - `XCL_PSO_DISK_CACHE=0`: 0 passed, 1 failed, 0 ignored, 0 skip notices. The fixture failed at `assert!(path.is_some())` in `shaders.rs:2193`. Earlier evidence (2026-11-25): on `696a222a597cfe1f3e86db9d0c2b732f8177156f`, the focused fixture passed and the workspace suite reported 1226 passed, 4 failed, and 46 ignored. That workspace run used the then-current merge base as its comparison. **Not tested** Retail smoke on this head, a full shader-pack precompile, and creation and subsequent runtime reuse of a saved driver blob. **AI use** Codex (gpt-6.2-sol) ran and verified the 2026-11-26 tests and wrote this update. Claude Code (Claude Sonnet 5.5) ran and wrote the 2026-11-25 report.
Author
Owner

@⁠thiagocalile on GitHub · 2026-11-25 16:25 UTC · original

Independent test and 60 s smoke report for head 696a222a597cfe1f3e86db9d0c2b732f8177156f on an AMD Radeon RX 6600 (8 GB VRAM, RDNA2, native wave64).

Tested

  • Hardware: AMD Radeon RX 6600 (8146 MiB VRAM, RDNA2, native wave64, driver 32.0.21045.29003, XCL_ADAPTER=radeon), AMD Ryzen 7 5700X3D, 47.9 GB RAM, Windows 11 (10.0.26200.0), Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.8.2502.11.
  • XCL_ADAPTER=radeon cargo test --no-fail-fast -p xcl --lib -- shaders --test-threads=4: 16 passed, 0 failed, 0 ignored (1 SKIPPED: pso_measurement_compiles_an_exact_synthetic_record, Windows Developer Mode not enabled).

Regression run (scripts/smoke.ps1 -Seconds 60, release builds, XCL_ADAPTER=radeon)

main (06c9f55):

xcl-smoke v1
commit: 06c9f5505f63f10c5ec49ef932d75b2c28177324
gpu: AMD Radeon RX 6600
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1469 (PresentX 1469)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 13436 MB

PR #2246 (696a222):

xcl-smoke v1
commit: 696a222a597cfe1f3e86db9d0c2b732f8177156f
gpu: AMD Radeon RX 6600
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1544 (PresentX 1544)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 13483 MB

Not tested: full workspace test suite on this head, offline --precompile of mesh compute passes on the retail shader pack, NVIDIA/Intel GPUs, or Linux/Wine.

AI use: Antigravity (Gemini 4 Neon) ran the builds, tests, and smoke runs and drafted this report; the account owner reviewed and approved posting.

**@⁠thiagocalile** on GitHub · 2026-11-25 16:25 UTC · [original](https://github.com/xcl-dev/xcl/pull/2246#issuecomment-7167964681) Independent test and 60 s smoke report for head `696a222a597cfe1f3e86db9d0c2b732f8177156f` on an **AMD Radeon RX 6600** (8 GB VRAM, RDNA2, native wave64). **Tested** - Hardware: AMD Radeon RX 6600 (8146 MiB VRAM, RDNA2, native wave64, driver `32.0.21045.29003`, `XCL_ADAPTER=radeon`), AMD Ryzen 7 5700X3D, 47.9 GB RAM, Windows 11 (`10.0.26200.0`), Rust `1.100.0` (`stable-x86_64-pc-windows-msvc`), DXC `1.8.2502.11`. - `XCL_ADAPTER=radeon cargo test --no-fail-fast -p xcl --lib -- shaders --test-threads=4`: **16 passed, 0 failed, 0 ignored** (`1` `SKIPPED`: `pso_measurement_compiles_an_exact_synthetic_record`, Windows Developer Mode not enabled). **Regression run** (`scripts/smoke.ps1 -Seconds 60`, release builds, `XCL_ADAPTER=radeon`) `main` (`06c9f55`): ``` xcl-smoke v1 commit: 06c9f5505f63f10c5ec49ef932d75b2c28177324 gpu: AMD Radeon RX 6600 title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1469 (PresentX 1469) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13436 MB ``` PR `#2246` (`696a222`): ``` xcl-smoke v1 commit: 696a222a597cfe1f3e86db9d0c2b732f8177156f gpu: AMD Radeon RX 6600 title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1544 (PresentX 1544) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13483 MB ``` **Not tested:** full workspace test suite on this head, offline `--precompile` of mesh compute passes on the retail shader pack, NVIDIA/Intel GPUs, or Linux/Wine. **AI use:** Antigravity (Gemini 4 Neon) ran the builds, tests, and smoke runs and drafted this report; the account owner reviewed and approved posting.
Author
Owner

@⁠kole07139 on GitHub · 2026-11-25 16:34 UTC · original

The full --only ms --pipelines pass on this head, which the description and the three reports above leave untested, on an RTX 3070 8 GB: 9 282 compute passes compiled with 0 errors, 9 282 pipelines made and 0 refused, in 42.7 min at a 3.2 GB peak. A second pass on that cache took 40 s and loaded all 9 282 from the driver cache.

Setup

  • Hardware and software:
    • RTX 3070 8 GB (NVIDIA 617.42, 32-lane waves, so split wave64), i9-9900K, 32 GB RAM;
    • Windows 11 Pro N 26200, Rust 1.99.0, DXC 1.8.2502.11, release.
  • Clean head 696a222, not merged with anything.
  • The retail title's shaders.rpf (26 503 records).
  • XCL_HEAP_WINDOWS=1 XCL_NETWORK=0, HLSL path (XCL_DIRECT_DXIL unset), one process.
  • A fresh XCL_DXIL_CACHE; private bytes sampled every 5 s.
  • Command: xcl shaders <pack> --precompile --only ms --pipelines, run twice on the same cache.

Results

pass compiled errors pipelines made / refused loaded from the driver cache time peak private lowest free commit
1 (fresh cache) 9 282 0 9 282 / 0 4 355 42.7 min (2 556 s in the tool's line) 3.15 GB 18.5 GB
2 (same cache) 9 282 0 9 282 / 0 9 282 40 s 0.83 GB 20.0 GB
  • 4 756 driver blobs were on disk after pass 1.
  • The 4 355 hits in pass 1 are probably passes with identical DXIL, made once and then found (I did not check).
  • The rate rose through the pack, from ~120 passes a minute in the first 20 min to ~310 after that, with no slow tail like the big compute programs have.
  • Pass 2 says already cached 0 for the translations. It still took 40 s instead of 43 min, and every pipeline came from the driver cache, which is the part that matters for the title. I did not look into why the translation counter shows 0.
  • cargo test --release -p xcl --lib shaders:: on this head: 10 passed, 0 failed, 0 ignored, including an_ms_compute_pass_is_precompiled_under_the_runtimes_key. 1 SKIPPED: pso_measurement_compiles_an_exact_synthetic_record, which needs Developer Mode, as in the description.
  • The head merges cleanly into today's main (65fc114).

Not tested

  • A title run that loads these blobs. On main this title stops before its world on this card, where the mesh pipelines are built.
  • XCL_DIRECT_DXIL=1.
  • The whole workspace suite on this head (the three reports above have it).
  • AMD / Intel.

AI use: Claude Code (Claude Opus 5.5) built the head, ran the two passes and the tests, and wrote this report. I checked it before posting.

**@⁠kole07139** on GitHub · 2026-11-25 16:34 UTC · [original](https://github.com/xcl-dev/xcl/pull/2246#issuecomment-7168196761) **The full `--only ms --pipelines` pass on this head, which the description and the three reports above leave untested, on an RTX 3070 8 GB: 9 282 compute passes compiled with 0 errors, 9 282 pipelines made and 0 refused, in 42.7 min at a 3.2 GB peak. A second pass on that cache took 40 s and loaded all 9 282 from the driver cache.** **Setup** - Hardware and software: - RTX 3070 8 GB (NVIDIA 617.42, 32-lane waves, so split wave64), i9-9900K, 32 GB RAM; - Windows 11 Pro N 26200, Rust 1.99.0, DXC 1.8.2502.11, release. - Clean head `696a222`, not merged with anything. - The retail title's `shaders.rpf` (26 503 records). - `XCL_HEAP_WINDOWS=1 XCL_NETWORK=0`, HLSL path (`XCL_DIRECT_DXIL` unset), one process. - A fresh `XCL_DXIL_CACHE`; private bytes sampled every 5 s. - Command: `xcl shaders <pack> --precompile --only ms --pipelines`, run twice on the same cache. **Results** | pass | `compiled` | errors | pipelines made / refused | loaded from the driver cache | time | peak private | lowest free commit | |---|---|---|---|---|---|---|---| | 1 (fresh cache) | 9 282 | 0 | 9 282 / 0 | 4 355 | 42.7 min (2 556 s in the tool's line) | 3.15 GB | 18.5 GB | | 2 (same cache) | 9 282 | 0 | 9 282 / 0 | **9 282** | **40 s** | 0.83 GB | 20.0 GB | - 4 756 driver blobs were on disk after pass 1. - The 4 355 hits in pass 1 are probably passes with identical DXIL, made once and then found (I did not check). - The rate rose through the pack, from ~120 passes a minute in the first 20 min to ~310 after that, with no slow tail like the big compute programs have. - Pass 2 says `already cached 0` for the translations. It still took 40 s instead of 43 min, and every pipeline came from the driver cache, which is the part that matters for the title. I did not look into why the translation counter shows 0. - `cargo test --release -p xcl --lib shaders::` on this head: **10 passed, 0 failed, 0 ignored**, including `an_ms_compute_pass_is_precompiled_under_the_runtimes_key`. 1 SKIPPED: `pso_measurement_compiles_an_exact_synthetic_record`, which needs Developer Mode, as in the description. - The head merges cleanly into today's `main` (`65fc114`). **Not tested** - A title run that loads these blobs. On `main` this title stops before its world on this card, where the mesh pipelines are built. - `XCL_DIRECT_DXIL=1`. - The whole workspace suite on this head (the three reports above have it). - AMD / Intel. **AI use:** Claude Code (Claude Opus 5.5) built the head, ran the two passes and the tests, and wrote this report. I checked it before posting.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 16:42 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: 2 real failures, deterministic (also fail --test-threads=1):
gpu::recomp::pso::shader_cache_tests::rerouted_disk_entries_follow_the_direct_translator
  assertion failed — left: 68, right: 1 (pso.rs:1360)
hle::d3d12x::device_x::tests::pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa
  assertion failed: format 85 kept — left: 28, right: 85 (device_x.rs:1376)

Same pair of failures across this batch of PRs — looks like a shared feature area with two broken assertions. Needs fixes before merge.

— Devin

**@⁠DavidM1911** on GitHub · 2026-11-25 16:42 UTC · [original](https://github.com/xcl-dev/xcl/pull/2246#issuecomment-7168397018) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: **2 real failures**, deterministic (also fail `--test-threads=1`): ``` gpu::recomp::pso::shader_cache_tests::rerouted_disk_entries_follow_the_direct_translator assertion failed — left: 68, right: 1 (pso.rs:1360) hle::d3d12x::device_x::tests::pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa assertion failed: format 85 kept — left: 28, right: 85 (device_x.rs:1376) ``` Same pair of failures across this batch of PRs — looks like a shared feature area with two broken assertions. Needs fixes before merge. — Devin
Author
Owner

@⁠MacieGx on GitHub · 2026-11-25 20:57 UTC · original

@⁠DavidM1911 pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa is not touched by this PR: it failed on main at the time too (checked alone on c9a5d58), and it passes on the rebased head (full suite in the description).

**@⁠MacieGx** on GitHub · 2026-11-25 20:57 UTC · [original](https://github.com/xcl-dev/xcl/pull/2246#issuecomment-7174415970) @⁠DavidM1911 `pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa` is not touched by this PR: it failed on `main` at the time too (checked alone on `c9a5d58`), and it passes on the rebased head (full suite in the description).
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-26 00:59 UTC · original

Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

**@⁠DavidM1911** on GitHub · 2026-11-26 00:59 UTC · [original](https://github.com/xcl-dev/xcl/pull/2246#issuecomment-7179315952) Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
Author
Owner

@⁠thehollowedone on GitHub · 2026-11-26 02:08 UTC · original

Independent Windows check of #2246 head 949609b on an RTX 3080 Ti (driver 621.35), Ryzen 7 9800X3D, Windows 11 build 26300, Rust 1.99.1 MSVC and DXC 1.8.2502.11.

Tested: cargo build --offline --locked --workspace passed. Then cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 passed on the unchanged head: 1,424 passed, 0 failed, 46 ignored, 25 SKIPPED notices. The new an_ms_compute_pass_is_precompiled_under_the_runtimes_key test passed 1/0/0 with disk caching enabled.

I found one test configuration failure. In a separate process with XCL_PSO_DISK_CACHE=0, that new test fails 0/1/0 at the unconditional path.is_some() assertion. This is a supported setting: both path helpers return None when the disk cache is off. A local test-only removal of assert!(path.is_some()) passed the focused test 1/0/0 in separate cache-off and cache-on processes; the next assertion still compares the producer and runtime paths. No production change or commit was made.

Not tested: a title run, AMD/Intel, or whether a precompiled driver blob is accepted and reused by finish_two_pass on this GPU. The checked-in test compares translated DXIL, samplers and cache paths; it does not create and consume a saved driver blob. Synthetic tests only. AI-assisted: Codex (GPT-6.2 Sol) reviewed the diff, ran the checks, verified the local test-only change and drafted this report.

**@⁠thehollowedone** on GitHub · 2026-11-26 02:08 UTC · [original](https://github.com/xcl-dev/xcl/pull/2246#issuecomment-7180503675) Independent Windows check of [#2246 head `949609b`](https://git.gtahub.st/github/xcl-dev--xcl/pulls/2246/commits/949609b2ee210e68ed28ac8197a4a9e5d0a52dfe) on an RTX 3080 Ti (driver 621.35), Ryzen 7 9800X3D, Windows 11 build 26300, Rust 1.99.1 MSVC and DXC 1.8.2502.11. **Tested:** `cargo build --offline --locked --workspace` passed. Then `cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4` passed on the unchanged head: **1,424 passed, 0 failed, 46 ignored, 25 SKIPPED notices**. The new `an_ms_compute_pass_is_precompiled_under_the_runtimes_key` test passed 1/0/0 with disk caching enabled. I found one test configuration failure. In a separate process with `XCL_PSO_DISK_CACHE=0`, that new test fails 0/1/0 at [the unconditional `path.is_some()` assertion](https://github.com/xcl-dev/xcl/blob/949609b2ee210e68ed28ac8197a4a9e5d0a52dfe/crates/xcl/src/shaders.rs#L2193). This is a supported setting: [both path helpers return `None`](https://github.com/xcl-dev/xcl/blob/949609b2ee210e68ed28ac8197a4a9e5d0a52dfe/crates/xcl/src/hle/d3d12x/real.rs#L4493-L4503) when the disk cache is off. A local test-only removal of `assert!(path.is_some())` passed the focused test 1/0/0 in separate cache-off and cache-on processes; the next assertion still compares the producer and runtime paths. No production change or commit was made. **Not tested:** a title run, AMD/Intel, or whether a precompiled driver blob is accepted and reused by `finish_two_pass` on this GPU. The checked-in test compares translated DXIL, samplers and cache paths; it does not create and consume a saved driver blob. Synthetic tests only. AI-assisted: Codex (GPT-6.2 Sol) reviewed the diff, ran the checks, verified the local test-only change and drafted this report.
Author
Owner

@⁠bmjask on GitHub · 2026-11-25 21:09 UTC · original · reviewed

No concrete source defect found. Precompile root-signature/two-pass DXIL/cache path logic matches runtime behavior. Material validation gap: unit tests prove equality but do not create a driver blob and have finish_two_pass reuse it; add GPU integration coverage for precompile blob -> runtime cache hit and stale-blob retry. Current head has no visible Windows CI and reported workspace failures, so provide fresh current-head required evidence before merge.

**@⁠bmjask** on GitHub · 2026-11-25 21:09 UTC · [original](https://github.com/xcl-dev/xcl/pull/2246#pullrequestreview-6065016118) · **reviewed** No concrete source defect found. Precompile root-signature/two-pass DXIL/cache path logic matches runtime behavior. Material validation gap: unit tests prove equality but do not create a driver blob and have finish_two_pass reuse it; add GPU integration coverage for precompile blob -> runtime cache hit and stale-blob retry. Current head has no visible Windows CI and reported workspace failures, so provide fresh current-head required evidence before merge.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
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/2246/head:github-bot/gh-2246'
git switch 'github-bot/gh-2246'

Merge

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