Recompiler: reuse the lane predicate across vector ALU writes #1341

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

@⁠dervoxx on GitHub · 2026-11-24 14:59 UTC · original
dervoxx:recompiler/lane-predicate-reuse → main · +91 −5 · 3 files · 1 commits · open

Part of #1269. Reuse the current lane's EXEC bit across consecutive plain vector ALU instructions whose only destination is a VGPR. Every write still selects the previous value for an inactive lane.

What is in it

  • emit.rs starts reuse only for adjacent eligible instructions and resets it when leaving a basic block or encountering another instruction. mod.rs passes block-local lookahead.
  • A GPU regression test executes both sides of a branch with partial EXEC and checks six VGPRs on every lane after the join, in wave32 and split wave64.

Tested

  • RTX 5080, driver 32.0.16.2101, Ryzen 9 9900X3D, Windows 11 build 26300, Rust 1.100.0, DXC 1.8.2502.11. Release benchmarks. Debug cargo build --workspace and cargo test --workspace -- --test-threads=4: 752 passed, 0 failed, 41 ignored. Two additional runtime skips were reported for native-wave64-only cases.

  • One 88,444-instruction retail compute shader, four windows, native wave64 form, standalone cold DXC at -O0, base/head/head/base. Wall times 77.36 / 73.73 / 71.64 / 79.88 s. DXIL 23,284,364 to 22,088,252 bytes. Peak sampled private memory 4,114 / 3,790 / 3,788 / 4,117 MiB. Same input via the RTX runtime translation path (split wave64, four windows, fresh XCL caches): 105.901 to 94.812 s, 29,635,620 to 28,428,896 DXIL bytes, 4831 to 4677 MiB sampled peak private memory. One pair.

  • On 12 other compute shaders (180–1000 KiB baseline HLSL, fixed seed 1043, three paired serial rounds at -O3), cumulative DXC CPU was 51.92 to 49.22 s. Aggregate DXIL per round was effectively flat (1,861,076 to 1,861,168 bytes).

  • Separate runtime-path check with four windows and split wave64 where needed: 12/12 pairs created both PSOs. Summed translation plus DXC 19.45 to 18.10 s, summed D3D12 PSO creation 30.59 to 25.54 s. One pair per program, empty XCL caches, alternating order. One pair accounts for 4.92 s of the 5.05 s PSO difference. Repeating that pair in reverse order with fresh XCL caches returned 1.55 ms (base) and 1.59 ms (head). The internal driver cache was uncontrolled; these timings cannot establish a general driver speedup.

  • Independent Windows validation on the exact base and head: on both the Ryzen 7 7800X3D Radeon RDNA2 iGPU and RTX 5070, the workspace suite reported 751 passed on the base and 752 on the head, with 0 failures and 41 ignored per run. The branch-join regression passed with native wave64 on Radeon and split wave64 on NVIDIA. The tester reported two additional hardware skips per adapter (mesh shaders on Radeon, native wave64 on NVIDIA). Test report and commands

Regression run

Fresh XCL data and DXIL directories for each 60 s startup run, offline. The frame count was lower on the head. These runs cover startup.

xcl-smoke v1
commit: 930e8b49c1c2ec683d22c724a398b39111cd0e56
gpu: NVIDIA GeForce RTX 5080
title: 419239bf
seconds: 60
exit: 0x0
frames shown: 1173 (PresentX 1173)
presents per 2 s (last 3): 60 59 59
device removals: 0
crashes: 0
peak commit: 15886 MB
xcl-smoke v1
commit: 88775390ab3f8d63358ea2520ee86fd6893d403b
gpu: NVIDIA GeForce RTX 5080
title: 419239bf
seconds: 60
exit: 0x0
frames shown: 1012 (PresentX 1012)
presents per 2 s (last 3): 60 60 58
device removals: 0
crashes: 0
peak commit: 15960 MB

Not tested

Retail runs and compilation timings on the Radeon iGPU and RTX 5070, other AMD generations, Intel, driver compilation of the giant DXIL variants, or full gameplay. The large-source timing covers the DXC stage. It does not demonstrate a fix for the prologue stall.

AI use

Codex with GPT-6.2 Astra implemented the change, ran the comparisons, and drafted this description. GPT-6.2 Sol reviewed the emitter and wrote and exercised the GPU regression test.

**@⁠dervoxx** on GitHub · 2026-11-24 14:59 UTC · [original](https://github.com/xcl-dev/xcl/pull/1341) `dervoxx:recompiler/lane-predicate-reuse` → `main` · +91 −5 · 3 files · 1 commits · open Part of #1269. Reuse the current lane's EXEC bit across consecutive plain vector ALU instructions whose only destination is a VGPR. Every write still selects the previous value for an inactive lane. **What is in it** - `emit.rs` starts reuse only for adjacent eligible instructions and resets it when leaving a basic block or encountering another instruction. `mod.rs` passes block-local lookahead. - A GPU regression test executes both sides of a branch with partial EXEC and checks six VGPRs on every lane after the join, in wave32 and split wave64. **Tested** - RTX 5080, driver 32.0.16.2101, Ryzen 9 9900X3D, Windows 11 build 26300, Rust 1.100.0, DXC 1.8.2502.11. Release benchmarks. Debug `cargo build --workspace` and `cargo test --workspace -- --test-threads=4`: 752 passed, 0 failed, 41 ignored. Two additional runtime skips were reported for native-wave64-only cases. - One 88,444-instruction retail compute shader, four windows, native wave64 form, standalone cold DXC at `-O0`, base/head/head/base. Wall times 77.36 / 73.73 / 71.64 / 79.88 s. DXIL 23,284,364 to 22,088,252 bytes. Peak sampled private memory 4,114 / 3,790 / 3,788 / 4,117 MiB. Same input via the RTX runtime translation path (split wave64, four windows, fresh XCL caches): 105.901 to 94.812 s, 29,635,620 to 28,428,896 DXIL bytes, 4831 to 4677 MiB sampled peak private memory. One pair. - On 12 other compute shaders (180–1000 KiB baseline HLSL, fixed seed 1043, three paired serial rounds at `-O3`), cumulative DXC CPU was 51.92 to 49.22 s. Aggregate DXIL per round was effectively flat (1,861,076 to 1,861,168 bytes). - Separate runtime-path check with four windows and split wave64 where needed: 12/12 pairs created both PSOs. Summed translation plus DXC 19.45 to 18.10 s, summed D3D12 PSO creation 30.59 to 25.54 s. One pair per program, empty XCL caches, alternating order. One pair accounts for 4.92 s of the 5.05 s PSO difference. Repeating that pair in reverse order with fresh XCL caches returned 1.55 ms (base) and 1.59 ms (head). The internal driver cache was uncontrolled; these timings cannot establish a general driver speedup. - Independent Windows validation on the exact base and head: on both the Ryzen 7 7800X3D Radeon RDNA2 iGPU and RTX 5070, the workspace suite reported 751 passed on the base and 752 on the head, with 0 failures and 41 ignored per run. The branch-join regression passed with native wave64 on Radeon and split wave64 on NVIDIA. The tester reported two additional hardware skips per adapter (mesh shaders on Radeon, native wave64 on NVIDIA). [Test report and commands](https://github.com/ivall/xcl/pull/1341#issuecomment-7136400360) **Regression run** Fresh XCL data and DXIL directories for each 60 s startup run, offline. The frame count was lower on the head. These runs cover startup. ``` xcl-smoke v1 commit: 930e8b49c1c2ec683d22c724a398b39111cd0e56 gpu: NVIDIA GeForce RTX 5080 title: 419239bf seconds: 60 exit: 0x0 frames shown: 1173 (PresentX 1173) presents per 2 s (last 3): 60 59 59 device removals: 0 crashes: 0 peak commit: 15886 MB ``` ``` xcl-smoke v1 commit: 88775390ab3f8d63358ea2520ee86fd6893d403b gpu: NVIDIA GeForce RTX 5080 title: 419239bf seconds: 60 exit: 0x0 frames shown: 1012 (PresentX 1012) presents per 2 s (last 3): 60 60 58 device removals: 0 crashes: 0 peak commit: 15960 MB ``` **Not tested** Retail runs and compilation timings on the Radeon iGPU and RTX 5070, other AMD generations, Intel, driver compilation of the giant DXIL variants, or full gameplay. The large-source timing covers the DXC stage. It does not demonstrate a fix for the prologue stall. **AI use** Codex with GPT-6.2 Astra implemented the change, ran the comparisons, and drafted this description. GPT-6.2 Sol reviewed the emitter and wrote and exercised the GPU regression test.
Part of #1269. Re-evaluate the predicate at control-flow entries and after instructions with other architectural outputs.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:51:18 +00:00
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 15:05 UTC · original

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

  • cargo test -p xcl --lib: 708 passed, 0 failed, 21 ignored.

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 15:05 UTC · [original](https://github.com/xcl-dev/xcl/pull/1341#issuecomment-7135450706) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: 708 passed, 0 failed, 21 ignored. Thanks!
Author
Owner

@⁠ArturoWolff on GitHub · 2026-11-24 15:13 UTC · original

RTX 4060 / Proton: Reusing the EXEC predicate cut DXC time in all four pairs on the generated 2,048-round split-wave compute kernel from #1269. Cold D3D12 pipeline creation did not move consistently. This tests the actual emitters at 930e8b49c1c2ec683d22c724a398b39111cd0e56 and 88775390ab3f8d63358ea2520ee86fd6893d403b, not the earlier experiment that removed guards.

Median of four alternating pairs Base PR head
DXC call 1,451.2 ms 677.5 ms
Cold CreateComputePipelineState 548.8 ms 555.9 ms
Executable bitcode 62,916 B 62,912 B

The head retained all 6,159 register-write selects and three memory guards; 6,158 selects used the reused predicate. Each pair saved 51–57% of DXC time, but each revision won two of the four PSO pairs. Fresh processes, no supplied cached PSO, XCL/NVIDIA/vkd3d disk caches disabled; OS/hardware caches not flushed.

Tested: Ryzen 5 5600, RTX 4060, NVIDIA 620.73.04, Linux / GE-Proton11-14, patched vkd3d-proton 4522cc1a8b1347f+, DXC 1.9.2609.5. Release x86_64-pc-windows-gnullvm. All eight dispatches matched a CPU reference, including cross-wave LDS reads and untouched prefix words. Separately ran the PR lib-test EXE with gpu::recomp::tests::gpu_exec_predicate_recomputed_at_branch_join --exact --nocapture --test-threads=1: 1 passed, 0 failed/ignored/skipped, 728 filtered; covers wave32 and split wave64 with partial EXEC.

Not tested: native Windows, native wave64, full suite, retail loading time. This is a compile-time result on one synthetic shader, not a gameplay or general driver-speed claim.

AI use: Hermes Agent, gpt-6.2-astra (experiment, verification and report).

**@⁠ArturoWolff** on GitHub · 2026-11-24 15:13 UTC · [original](https://github.com/xcl-dev/xcl/pull/1341#issuecomment-7135649712) **RTX 4060 / Proton:** Reusing the EXEC predicate cut DXC time in all four pairs on the generated 2,048-round split-wave compute kernel from #1269. Cold D3D12 pipeline creation did not move consistently. This tests the actual emitters at `930e8b49c1c2ec683d22c724a398b39111cd0e56` and `88775390ab3f8d63358ea2520ee86fd6893d403b`, not the earlier experiment that removed guards. | Median of four alternating pairs | Base | PR head | |---|---:|---:| | DXC call | 1,451.2 ms | 677.5 ms | | Cold `CreateComputePipelineState` | 548.8 ms | 555.9 ms | | Executable bitcode | 62,916 B | 62,912 B | The head retained all 6,159 register-write selects and three memory guards; 6,158 selects used the reused predicate. Each pair saved 51–57% of DXC time, but each revision won two of the four PSO pairs. Fresh processes, no supplied cached PSO, XCL/NVIDIA/vkd3d disk caches disabled; OS/hardware caches not flushed. **Tested:** Ryzen 5 5600, RTX 4060, NVIDIA 620.73.04, Linux / GE-Proton11-14, patched vkd3d-proton `4522cc1a8b1347f+`, DXC 1.9.2609.5. Release `x86_64-pc-windows-gnullvm`. All eight dispatches matched a CPU reference, including cross-wave LDS reads and untouched prefix words. Separately ran the PR lib-test EXE with `gpu::recomp::tests::gpu_exec_predicate_recomputed_at_branch_join --exact --nocapture --test-threads=1`: 1 passed, 0 failed/ignored/skipped, 728 filtered; covers wave32 and split wave64 with partial EXEC. **Not tested:** native Windows, native wave64, full suite, retail loading time. This is a compile-time result on one synthetic shader, not a gameplay or general driver-speed claim. **AI use:** Hermes Agent, gpt-6.2-astra (experiment, verification and report).
Author
Owner

@⁠Aniseto on GitHub · 2026-11-24 15:22 UTC · original

Ran the new test on an NVIDIA Blackwell part at 8877539:

Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC 14.44.35207, DXC 1.9.2609.5, debug build.

XCL_ADAPTER=nvidia cargo test -p xcl --lib gpu_exec_predicate
1 passed; 0 failed; 0 ignored      (exit 0)

gpu_exec_predicate_recomputed_at_branch_join passes here in the wave32 plus split-wave64 form. The earlier reports were an RTX 3060 Ti and an RTX 4060 under Proton; this is native Windows on a Blackwell part with driver 32.0.16.2124, where the split form is the only path available.

Not tested: native wave64, RDNA2/RDNA4 and Intel GPUs, Wine, release profile, retail titles.

AI-assisted (OpenCode), model: DeepSeek V4.1 Flash 1017 - checked out the PR's head commit in a detached worktree, built it, ran the test, wrote this report; the worktree was not modified.

**@⁠Aniseto** on GitHub · 2026-11-24 15:22 UTC · [original](https://github.com/xcl-dev/xcl/pull/1341#issuecomment-7135908690) Ran the new test on an NVIDIA Blackwell part at `8877539`: Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC 14.44.35207, DXC 1.9.2609.5, debug build. ``` XCL_ADAPTER=nvidia cargo test -p xcl --lib gpu_exec_predicate 1 passed; 0 failed; 0 ignored (exit 0) ``` `gpu_exec_predicate_recomputed_at_branch_join` passes here in the wave32 plus split-wave64 form. The earlier reports were an RTX 3060 Ti and an RTX 4060 under Proton; this is native Windows on a Blackwell part with driver 32.0.16.2124, where the split form is the only path available. Not tested: native wave64, RDNA2/RDNA4 and Intel GPUs, Wine, release profile, retail titles. AI-assisted (OpenCode), model: **DeepSeek V4.1 Flash 1017** - checked out the PR's head commit in a detached worktree, built it, ran the test, wrote this report; the worktree was not modified.
Author
Owner

@⁠thaqiart139-alt on GitHub · 2026-11-24 15:39 UTC · original

Test report for this PR's head 8877539 on AMD RDNA2 with native 64-lane waves (the case the description lists as not tested), and on a 32-lane NVIDIA card.

Tested

  • GPUs: AMD Radeon(TM) Graphics, the RDNA2 iGPU of a Ryzen 7 7800X3D (native wave64, driver 32.0.21045.29003), and NVIDIA GeForce RTX 5070 (driver 32.0.16.2101). Ryzen 7 7800X3D, 32 GB, Windows 11 Home build 26300, Rust 1.100.0, debug, DXC 1.9.2602.17 (Windows SDK 10.0.26100.0). Adapter chosen with XCL_ADAPTER=radeon / nvidia and checked with gpu_bench_really_runs -- --nocapture.
  • cargo test --workspace -- --test-threads=4, this PR against its base:
main 930e8b4 this PR 8877539
RTX 5070 751 passed, 0 failed, 41 ignored 752 passed, 0 failed, 41 ignored
Radeon iGPU 751 passed, 0 failed, 41 ignored 752 passed, 0 failed, 41 ignored
  • gpu_exec_predicate_recomputed_at_branch_join passes on the iGPU, where its wave64 case runs in 64-lane waves (split_wave64 false), and on the RTX 5070 in the split form.
  • SKIPPED: on the RTX 5070 gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware (no wave64); on the iGPU gpu_geometry_mode_es_gs_strip and gpu_mesh_mode_two_passes (no mesh shaders).

Not tested

  • A title run, DXC or driver timings, other AMD generations, Intel.

AI use

  • Claude Code (Claude Opus 5.5) ran the builds and tests and wrote this report.
**@⁠thaqiart139-alt** on GitHub · 2026-11-24 15:39 UTC · [original](https://github.com/xcl-dev/xcl/pull/1341#issuecomment-7136400360) Test report for this PR's head `8877539` on AMD RDNA2 with native 64-lane waves (the case the description lists as not tested), and on a 32-lane NVIDIA card. **Tested** - GPUs: AMD Radeon(TM) Graphics, the RDNA2 iGPU of a Ryzen 7 7800X3D (native wave64, driver 32.0.21045.29003), and NVIDIA GeForce RTX 5070 (driver 32.0.16.2101). Ryzen 7 7800X3D, 32 GB, Windows 11 Home build 26300, Rust 1.100.0, debug, DXC 1.9.2602.17 (Windows SDK 10.0.26100.0). Adapter chosen with `XCL_ADAPTER=radeon` / `nvidia` and checked with `gpu_bench_really_runs -- --nocapture`. - `cargo test --workspace -- --test-threads=4`, this PR against its base: | | `main` `930e8b4` | this PR `8877539` | |---|---|---| | RTX 5070 | 751 passed, 0 failed, 41 ignored | 752 passed, 0 failed, 41 ignored | | Radeon iGPU | 751 passed, 0 failed, 41 ignored | 752 passed, 0 failed, 41 ignored | - `gpu_exec_predicate_recomputed_at_branch_join` passes on the iGPU, where its wave64 case runs in 64-lane waves (`split_wave64` false), and on the RTX 5070 in the split form. - SKIPPED: on the RTX 5070 `gpu_geometry_wave32_prefix_count_over_a_mask` and `gpu_wave32_program_in_wave64_hardware` (no wave64); on the iGPU `gpu_geometry_mode_es_gs_strip` and `gpu_mesh_mode_two_passes` (no mesh shaders). **Not tested** - A title run, DXC or driver timings, other AMD generations, Intel. **AI use** - Claude Code (Claude Opus 5.5) ran the builds and tests and wrote this report.
Author
Owner

@⁠Creaa on GitHub · 2026-11-24 16:09 UTC · original

Test report: 8877539 on an RTX 4070 (split wave64 form).

Setup: RTX 4070 12 GB (driver 617.14), i7-13700F, 32 GB RAM, Windows 11 build 26300, Rust 1.100.0, DXC 1.9.2602.17.

  • cargo test --workspace -- --test-threads=4 (debug): 752 passed, 0 failed, 41 ignored. SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware (no wave64). gpu_exec_predicate_recomputed_at_branch_join passes.
  • 67 compute programs (every 40th of a retail pack's 2 689), xcl shaders <folder> --precompile --only cs [--pipelines], release, 4 windows, split wave64, empty XCL caches, one run each:
translate + DXC DXIL total driver (--pipelines)
main 930e8b4 67.5 s 24 182 100 B 346.0 s
#1341 67.2 s 24 181 456 B 337.6 s

Within noise on this sample (one run each); your gain was on the 88 k-instruction program, which this sample does not contain.

Not tested: AMD, the large programs, a title run.

AI use: Claude Code (Claude Opus 5.5) ran the tests and measurements on my machine and drafted this comment; I checked it before posting.

**@⁠Creaa** on GitHub · 2026-11-24 16:09 UTC · [original](https://github.com/xcl-dev/xcl/pull/1341#issuecomment-7137219442) **Test report: `8877539` on an RTX 4070 (split wave64 form).** Setup: RTX 4070 12 GB (driver 617.14), i7-13700F, 32 GB RAM, Windows 11 build 26300, Rust 1.100.0, DXC 1.9.2602.17. - `cargo test --workspace -- --test-threads=4` (debug): 752 passed, 0 failed, 41 ignored. SKIPPED: `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` (no wave64). `gpu_exec_predicate_recomputed_at_branch_join` passes. - 67 compute programs (every 40th of a retail pack's 2 689), `xcl shaders <folder> --precompile --only cs [--pipelines]`, release, 4 windows, split wave64, empty XCL caches, one run each: | | translate + DXC | DXIL total | driver (`--pipelines`) | |---|---|---|---| | `main` `930e8b4` | 67.5 s | 24 182 100 B | 346.0 s | | #1341 | 67.2 s | 24 181 456 B | 337.6 s | Within noise on this sample (one run each); your gain was on the 88 k-instruction program, which this sample does not contain. **Not tested:** AMD, the large programs, a title run. AI use: Claude Code (Claude Opus 5.5) ran the tests and measurements on my machine and drafted this comment; I checked it before posting.
Author
Owner

@⁠LocranKing on GitHub · 2026-11-24 17:43 UTC · original

Independent Windows 11 + NVIDIA GeForce RTX 3060 Ti (8 GB, wave32) test and retail smoke report on clean head 88775390ab3f8d63358ea2520ee86fd6893d403b.

Tested

  • Commit: 88775390ab3f8d63358ea2520ee86fd6893d403b (clean tree, merge-base 930e8b4)
  • Hardware / software: Windows 11 Home Build 26200, AMD Ryzen 5 5500, 31.8 GB RAM, NVIDIA GeForce RTX 3060 Ti (8024 MiB VRAM, driver 32.0.16.2101), rustc 1.100.0 (x86_64-pc-windows-msvc, MSVC 14.44.35207), DXC 1.9.2602.17 (SDK 10.0.26100.0), --release
  • cargo build --release --workspace: ok (exit 0)
  • cargo test --workspace --release --no-fail-fast -- --test-threads=4: 752 passed, 0 failed, 41 ignored, exit 0
    • SKIPPED (no wave64): gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask, gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware

Regression run
main baseline (b7aa9f3bd212088e0d927439284dc5ed325ce3c7):

xcl-smoke v1
commit: b7aa9f3bd212088e0d927439284dc5ed325ce3c7
gpu: NVIDIA GeForce RTX 3060 Ti
title: retail-1.0.2.1
seconds: 60
exit: 0x0
frames shown: 1508 (PresentX 1508)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14730 MB

PR head (88775390ab3f8d63358ea2520ee86fd6893d403b):

xcl-smoke v1
commit: 88775390ab3f8d63358ea2520ee86fd6893d403b
gpu: NVIDIA GeForce RTX 3060 Ti
title: retail-1.0.2.1
seconds: 60
exit: 0x0
frames shown: 1572 (PresentX 1572)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14719 MB

Not tested: debug build, AMD / native wave64 hardware, offline pack compile timings, extended gameplay past 60 s.

AI use: Antigravity (Gemini 4 Neon) ran the build, tests, and smoke runs and drafted this report from the command outputs.

**@⁠LocranKing** on GitHub · 2026-11-24 17:43 UTC · [original](https://github.com/xcl-dev/xcl/pull/1341#issuecomment-7139612844) Independent Windows 11 + NVIDIA GeForce RTX 3060 Ti (8 GB, wave32) test and retail smoke report on clean head `88775390ab3f8d63358ea2520ee86fd6893d403b`. **Tested** - Commit: `88775390ab3f8d63358ea2520ee86fd6893d403b` (clean tree, merge-base `930e8b4`) - Hardware / software: Windows 11 Home Build 26200, AMD Ryzen 5 5500, 31.8 GB RAM, NVIDIA GeForce RTX 3060 Ti (`8024 MiB VRAM`, driver `32.0.16.2101`), `rustc 1.100.0` (`x86_64-pc-windows-msvc`, MSVC `14.44.35207`), DXC `1.9.2602.17` (SDK `10.0.26100.0`), `--release` - `cargo build --release --workspace`: ok (`exit 0`) - `cargo test --workspace --release --no-fail-fast -- --test-threads=4`: **752 passed, 0 failed, 41 ignored**, exit `0` - `SKIPPED` (`no wave64`): `gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware` **Regression run** `main` baseline (`b7aa9f3bd212088e0d927439284dc5ed325ce3c7`): ``` xcl-smoke v1 commit: b7aa9f3bd212088e0d927439284dc5ed325ce3c7 gpu: NVIDIA GeForce RTX 3060 Ti title: retail-1.0.2.1 seconds: 60 exit: 0x0 frames shown: 1508 (PresentX 1508) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14730 MB ``` PR head (`88775390ab3f8d63358ea2520ee86fd6893d403b`): ``` xcl-smoke v1 commit: 88775390ab3f8d63358ea2520ee86fd6893d403b gpu: NVIDIA GeForce RTX 3060 Ti title: retail-1.0.2.1 seconds: 60 exit: 0x0 frames shown: 1572 (PresentX 1572) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14719 MB ``` **Not tested:** debug build, AMD / native wave64 hardware, offline pack compile timings, extended gameplay past 60 s. **AI use:** Antigravity (`Gemini 4 Neon`) ran the build, tests, and smoke runs and drafted this report from the command outputs.
Author
Owner

@⁠Retried on GitHub · 2026-11-24 18:10 UTC · original

Test report for #1341 on NVIDIA Windows. DXC is 21 % faster on a random sample, the driver time is unchanged and the suite passes.

Tested

  • RTX 2070 SUPER (driver 621.35, wave32 only, so the split wave64 form is used), Ryzen 7 5800X3D, 32 GB, Windows 10.0.26300, rustc 1.100.0, DXC 1.9.2602.17
  • head 8877539: cargo build --workspace && cargo test --workspace -- --test-threads=4 (debug, XCL_SAMPLE_RPF set): 752 passed, 0 failed, 41 ignored. SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware (no wave64).
  • Compile time: 8877539 cherry-picked onto main b7aa9f3 (it applies cleanly) against b7aa9f3 itself, both release builds, retail shaders.rpf. The two builds were run alternately, two rounds each.
    • retail_translation_survey (seed 1269, 63 programs, DXC in process): total DXC 61 / 61 s → 48 / 48 s (−21 %); median 0.24–0.25 → 0.23 s; p90 2.59–2.61 → 2.09–2.10 s; max 9.4 → 8.4–8.5 s. All 63 compile.
    • 5 heavy split-wave64 compute programs (RT resolve and raymarch), timed the way a title compiles them. The driver numbers come from the first pass, on DXIL the driver had not seen before:
      record DXC DXIL driver (CreateComputePipelineState)
      0xd73cab0 9.17 → 8.74 s 764 → 764 KB 9.34 → 9.44 s
      0xd33141e 2.70 → 2.39 s 280 → 280 KB 2.14 → 2.15 s
      0xce09474 12.00 → 11.13 s 891 → 891 KB 14.31 → 14.45 s
      0xca79c03 11.51 → 10.75 s 830 → 831 KB 10.09 → 10.07 s
      0xdb3011f 8.21 → 7.70 s 730 → 730 KB 7.98 → 8.59 s

So on NVIDIA the cached predicate does not slow the driver; the AMD driver slowdown reported for removing the EXEC selects did not show up here. The DXIL is the same size: DXC already merged the repeated lanebit calls, so the saving is DXC's own work before it does that.

Not tested

  • AMD, Intel, GPUs with wave64; a game run with this PR.

Measured and written with Claude Code (Claude Opus 5.5).

board data
{"campaign": 1269, "task": "C6", "class": "nv-win", "gpu": "RTX 2070 SUPER", "driver": "621.35", "commit": "b7aa9f3", "local_patches": [1341], "scenario": "retail_translation_survey seed 1269, 63 programs, DXC in process, release", "runs": 2, "measurements": [{"what": "dxc_total_s base", "value": 61, "unit": "s"}, {"what": "dxc_total_s with #1341", "value": 48, "unit": "s"}]}
**@⁠Retried** on GitHub · 2026-11-24 18:10 UTC · [original](https://github.com/xcl-dev/xcl/pull/1341#issuecomment-7140275824) Test report for #1341 on NVIDIA Windows. DXC is 21 % faster on a random sample, the driver time is unchanged and the suite passes. **Tested** - RTX 2070 SUPER (driver 621.35, wave32 only, so the split wave64 form is used), Ryzen 7 5800X3D, 32 GB, Windows 10.0.26300, rustc 1.100.0, DXC 1.9.2602.17 - head `8877539`: `cargo build --workspace && cargo test --workspace -- --test-threads=4` (debug, `XCL_SAMPLE_RPF` set): 752 passed, 0 failed, 41 ignored. SKIPPED: `gpu_geometry_wave32_prefix_count_over_a_mask` and `gpu_wave32_program_in_wave64_hardware` (no wave64). - Compile time: `8877539` cherry-picked onto `main` `b7aa9f3` (it applies cleanly) against `b7aa9f3` itself, both release builds, retail `shaders.rpf`. The two builds were run alternately, two rounds each. - `retail_translation_survey` (seed 1269, 63 programs, DXC in process): total DXC 61 / 61 s → 48 / 48 s (−21 %); median 0.24–0.25 → 0.23 s; p90 2.59–2.61 → 2.09–2.10 s; max 9.4 → 8.4–8.5 s. All 63 compile. - 5 heavy split-wave64 compute programs (RT resolve and raymarch), timed the way a title compiles them. The driver numbers come from the first pass, on DXIL the driver had not seen before: | record | DXC | DXIL | driver (`CreateComputePipelineState`) | |---|---|---|---| | 0xd73cab0 | 9.17 → 8.74 s | 764 → 764 KB | 9.34 → 9.44 s | | 0xd33141e | 2.70 → 2.39 s | 280 → 280 KB | 2.14 → 2.15 s | | 0xce09474 | 12.00 → 11.13 s | 891 → 891 KB | 14.31 → 14.45 s | | 0xca79c03 | 11.51 → 10.75 s | 830 → 831 KB | 10.09 → 10.07 s | | 0xdb3011f | 8.21 → 7.70 s | 730 → 730 KB | 7.98 → 8.59 s | So on NVIDIA the cached predicate does not slow the driver; the AMD driver slowdown reported for removing the EXEC selects did not show up here. The DXIL is the same size: DXC already merged the repeated `lanebit` calls, so the saving is DXC's own work before it does that. **Not tested** - AMD, Intel, GPUs with wave64; a game run with this PR. Measured and written with Claude Code (Claude Opus 5.5). <details><summary>board data</summary> ```xcl-result {"campaign": 1269, "task": "C6", "class": "nv-win", "gpu": "RTX 2070 SUPER", "driver": "621.35", "commit": "b7aa9f3", "local_patches": [1341], "scenario": "retail_translation_survey seed 1269, 63 programs, DXC in process, release", "runs": 2, "measurements": [{"what": "dxc_total_s base", "value": 61, "unit": "s"}, {"what": "dxc_total_s with #1341", "value": 48, "unit": "s"}]} ``` </details>
This pull request has changes conflicting with the target branch.
  • crates/xcl/src/gpu/recomp/emit.rs
  • crates/xcl/src/gpu/recomp/mod.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

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