Recompiler: add opt-in XCL_WAVE_LOCAL=1 compute lowering #3042

Closed
coolpersonnn wants to merge 2 commits from upstream-pr/3042 into main
coolpersonnn commented 2026-11-27 16:47:58 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by coolpersonnn on 2026-11-27T16:47:58Z.


Stacked on #3040. Only the top commit belongs to this PR.

Adds opt-in XCL_WAVE_LOCAL=1 compute lowering to HLSL, Direct DXIL, and per-lane DXIL. Rebased onto main (7a572ab2) atop #3040 (f197cb2d) without modifying README.md, preserving main's rodata, dispatch remapping, and atomic operand handling. Part of #3011.

What is in it

  • Recompiler and PSO routing for the experimental lowering, with a distinct shader-cache identity.
  • GPU regressions for both eligibility tiers, asymmetric DPP16 fallback and symmetric rows, plus a retail corpus buffer-output comparison.

Tested

  • Ryzen 9 9950X3D, RTX 5090 (621.01), Windows 11 build 26300, Rust 1.100.0 (0ef1bc386 2026-11-09) x64 MSVC, DXC 1.8.2502.11. Workspace/unit tests in debug; retail census, differential, and smoke runs in release.
  • cargo test -p xcl --lib wave_local -- --test-threads=1 on a92f307d: 28 passed, 0 failed, 0 ignored.
  • Prior to the 7a572ab2 rebase and README.md drop, cargo test --workspace --no-fail-fast -- --test-threads=4 on 5e470d3e: 2,693 passed, 4 failed, 49 ignored, and 30 SKIPPED lines (21 no wave64, 3 per-lane f16/f32-to-f16 refusals, 2 no heap windows, 2 mesh pipeline PC skips, 1 cannot disable driver cache, 1 gpu::recomp skip line). The 4 failures were gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_{0..3} (also present on #3040).
  • cargo test --release -p xcl --lib retail_wave_local_census -- --nocapture --test-threads=1 on 5e470d3e with XCL_SAMPLE_RPF: 26,503 records, 2,689 compute shaders (1,535 wave32, 1,154 wave64); 359 accepted (340 NoCrossHalf, 19 SingleWave).
  • cargo test --release -p xcl --lib retail_wave_local_buffer_differential -- --nocapture --test-threads=1 on 5e470d3e with XCL_SAMPLE_RPF and XCL_SAMPLE_WAVE_LOCAL_DIFF=1: 1 passed, 0 failed, 0 ignored. Out of 359 accepted shaders, all 31 that wrote to the seeded buffers matched split-wave64 HLSL (0 mismatches), 105 produced no observable writes with these inputs, and 223 required image bindings.
  • The XCL_WAVE_LOCAL=1 60 s smoke run on a92f307d logged 9 wave-local ( lines.

Regression run

60 seconds per run on the same retail title with fresh per-run XCL_DATA_ROOT directories, XCL_PREPARE=0, and XCL_ADAPTER=RTX 5090.

Main

xcl-smoke v1
commit: 7a572ab261595d5153076053baadc60fb10201b0
gpu: NVIDIA GeForce RTX 5090
title: a93b40d7
seconds: 60
exit: 0x0
frames shown: 1705 (PresentX 1705)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 17213 MB

Lowering head, default

xcl-smoke v1
commit: a92f307d4b05b7697dc1ae59463a341a5c52ed2a
gpu: NVIDIA GeForce RTX 5090
title: a93b40d7
seconds: 60
exit: 0x0
frames shown: 1703 (PresentX 1703)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 16331 MB

Lowering head, XCL_WAVE_LOCAL=1

xcl-smoke v1
commit: a92f307d4b05b7697dc1ae59463a341a5c52ed2a
gpu: NVIDIA GeForce RTX 5090
title: a93b40d7
seconds: 60
exit: 0x0
frames shown: 1707 (PresentX 1707)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16426 MB

Not tested

  • In-world rendering and performance (paired smoke runs cover startup).
  • Full workspace suite rerun after the 7a572ab2 rebase (a92f307d).
  • Native wave64, AMD, and Intel on a92f307d.
  • Retail output parity for programs that require image bindings or produced no observable buffer writes, and a retail corpus comparison of the Direct and per-lane DXIL backends.

AI use

  • T3 Code with Antigravity (gemini-pro-orchestrator-neon) and Codex (gpt-6.2-sol) assisted the original adaptation. Codex (gpt-6.2-sol) handled the earlier review fixes and initial rebase.
  • Antigravity (Gemini 4 Hydrogen) in T3 Code rebased onto 7a572ab2, dropped the README.md edit, ran the wave_local tests and 60 s smoke runs on a92f307d, pushed the branch, and updated this report.
<!-- greyfinch-sync:ivall/xcl:issue:5530162774 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3042). Originally posted by [coolpersonnn](https://github.com/coolpersonnn) on 2026-11-27T16:47:58Z. --- Stacked on #3040. Only the top commit belongs to this PR. Adds opt-in `XCL_WAVE_LOCAL=1` compute lowering to HLSL, Direct DXIL, and per-lane DXIL. Rebased onto `main` (`7a572ab2`) atop #3040 (`f197cb2d`) without modifying `README.md`, preserving `main`'s rodata, dispatch remapping, and atomic operand handling. Part of #3011. **What is in it** - Recompiler and PSO routing for the experimental lowering, with a distinct shader-cache identity. - GPU regressions for both eligibility tiers, asymmetric DPP16 fallback and symmetric rows, plus a retail corpus buffer-output comparison. **Tested** - Ryzen 9 9950X3D, RTX 5090 (621.01), Windows 11 build 26300, Rust 1.100.0 (0ef1bc386 2026-11-09) x64 MSVC, DXC 1.8.2502.11. Workspace/unit tests in debug; retail census, differential, and smoke runs in release. - `cargo test -p xcl --lib wave_local -- --test-threads=1` on `a92f307d`: 28 passed, 0 failed, 0 ignored. - Prior to the `7a572ab2` rebase and `README.md` drop, `cargo test --workspace --no-fail-fast -- --test-threads=4` on `5e470d3e`: 2,693 passed, 4 failed, 49 ignored, and 30 `SKIPPED` lines (21 no wave64, 3 per-lane f16/f32-to-f16 refusals, 2 no heap windows, 2 mesh pipeline PC skips, 1 cannot disable driver cache, 1 `gpu::recomp` skip line). The 4 failures were `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_{0..3}` (also present on `#3040`). - `cargo test --release -p xcl --lib retail_wave_local_census -- --nocapture --test-threads=1` on `5e470d3e` with `XCL_SAMPLE_RPF`: 26,503 records, 2,689 compute shaders (1,535 wave32, 1,154 wave64); 359 accepted (340 `NoCrossHalf`, 19 `SingleWave`). - `cargo test --release -p xcl --lib retail_wave_local_buffer_differential -- --nocapture --test-threads=1` on `5e470d3e` with `XCL_SAMPLE_RPF` and `XCL_SAMPLE_WAVE_LOCAL_DIFF=1`: 1 passed, 0 failed, 0 ignored. Out of 359 accepted shaders, all 31 that wrote to the seeded buffers matched split-wave64 HLSL (0 mismatches), 105 produced no observable writes with these inputs, and 223 required image bindings. - The `XCL_WAVE_LOCAL=1` 60 s smoke run on `a92f307d` logged 9 `wave-local (` lines. **Regression run** 60 seconds per run on the same retail title with fresh per-run `XCL_DATA_ROOT` directories, `XCL_PREPARE=0`, and `XCL_ADAPTER=RTX 5090`. Main ``` xcl-smoke v1 commit: 7a572ab261595d5153076053baadc60fb10201b0 gpu: NVIDIA GeForce RTX 5090 title: a93b40d7 seconds: 60 exit: 0x0 frames shown: 1705 (PresentX 1705) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 17213 MB ``` Lowering head, default ``` xcl-smoke v1 commit: a92f307d4b05b7697dc1ae59463a341a5c52ed2a gpu: NVIDIA GeForce RTX 5090 title: a93b40d7 seconds: 60 exit: 0x0 frames shown: 1703 (PresentX 1703) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 16331 MB ``` Lowering head, `XCL_WAVE_LOCAL=1` ``` xcl-smoke v1 commit: a92f307d4b05b7697dc1ae59463a341a5c52ed2a gpu: NVIDIA GeForce RTX 5090 title: a93b40d7 seconds: 60 exit: 0x0 frames shown: 1707 (PresentX 1707) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16426 MB ``` **Not tested** - In-world rendering and performance (paired smoke runs cover startup). - Full workspace suite rerun after the `7a572ab2` rebase (`a92f307d`). - Native wave64, AMD, and Intel on `a92f307d`. - Retail output parity for programs that require image bindings or produced no observable buffer writes, and a retail corpus comparison of the Direct and per-lane DXIL backends. **AI use** - T3 Code with Antigravity (`gemini-pro-orchestrator-neon`) and Codex (`gpt-6.2-sol`) assisted the original adaptation. Codex (`gpt-6.2-sol`) handled the earlier review fixes and initial rebase. - Antigravity (`Gemini 4 Hydrogen`) in T3 Code rebased onto `7a572ab2`, dropped the `README.md` edit, ran the `wave_local` tests and 60 s smoke runs on `a92f307d`, pushed the branch, and updated this report.
DarkPanda69 commented 2026-11-27 20:13:57 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DarkPanda69 on 2026-11-27T20:13:57Z.


AMD run (listed as untested), with an RTX 3060 in the same PC: the 22 new tests pass on both, and the rest of gpu:: is unchanged with XCL_WAVE_LOCAL unset and with it =1.

Tested: pass, head becdecf applied on main 6089122, debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X, DXC 1.9.2602.17, card picked with XCL_ADAPTER (log: backend 'real' – AMD Radeon RX 9070 XT / – NVIDIA GeForce RTX 3060).
cargo test -p xcl --lib -- wave_local gpu:: --test-threads=4 --nocapture:

  • AMD RX 9070 XT (RDNA4), driver 32.0.32029.2010: main 713 passed, 2 failed, 6 SKIPPED; PR 735 passed, 2 failed, 6 SKIPPED; PR with XCL_WAVE_LOCAL=1 the same 735 / 2 / 6. The 2 failures are the #2115 fuzz seeds (fuzz_validate_and_gpu_1, _3), the same on main.
  • NVIDIA RTX 3060, driver 32.0.16.1088: main 715 passed, 0 failed, 24 SKIPPED; PR 737 passed, 0 failed, 24 SKIPPED, unset and =1.

The only result changes are the 22 new tests, all ok, among them gpu_no_cross_half_matches_split_wave64 and gpu_rejected_shader_falls_back_to_split. The SKIPPED sets match main.

On native wave64: as I read gpu_no_cross_half_matches_split_wave64, the wave-local form is checked to be a [WaveSize(32)] program and compared against the split wave64 form, so it runs the same on both cards. So the new tests don't run the wave-local path as a native 64-lane wave on the RX 9070 XT either.

Not tested: native wave64 hardware execution of the new path, frame times in a title, --measure-pso, release, Intel.

AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7227302795 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3042#issuecomment-7227302795). Originally posted by [DarkPanda69](https://github.com/DarkPanda69) on 2026-11-27T20:13:57Z. --- AMD run (listed as untested), with an RTX 3060 in the same PC: the 22 new tests pass on both, and the rest of `gpu::` is unchanged with `XCL_WAVE_LOCAL` unset and with it `=1`. **Tested:** pass, head `becdecf` applied on `main` `6089122`, debug, Rust 1.100.0, Windows 11 Pro 26200, Ryzen 7 5800X, DXC 1.9.2602.17, card picked with `XCL_ADAPTER` (log: `backend 'real' – AMD Radeon RX 9070 XT` / `– NVIDIA GeForce RTX 3060`). `cargo test -p xcl --lib -- wave_local gpu:: --test-threads=4 --nocapture`: - AMD RX 9070 XT (RDNA4), driver 32.0.32029.2010: `main` 713 passed, 2 failed, 6 SKIPPED; PR 735 passed, 2 failed, 6 SKIPPED; PR with `XCL_WAVE_LOCAL=1` the same 735 / 2 / 6. The 2 failures are the #2115 fuzz seeds (`fuzz_validate_and_gpu_1`, `_3`), the same on `main`. - NVIDIA RTX 3060, driver 32.0.16.1088: `main` 715 passed, 0 failed, 24 SKIPPED; PR 737 passed, 0 failed, 24 SKIPPED, unset and `=1`. The only result changes are the 22 new tests, all ok, among them `gpu_no_cross_half_matches_split_wave64` and `gpu_rejected_shader_falls_back_to_split`. The SKIPPED sets match `main`. On native wave64: as I read `gpu_no_cross_half_matches_split_wave64`, the wave-local form is checked to be a `[WaveSize(32)]` program and compared against the split wave64 form, so it runs the same on both cards. So the new tests don't run the wave-local path as a native 64-lane wave on the RX 9070 XT either. **Not tested:** native wave64 hardware execution of the new path, frame times in a title, `--measure-pso`, release, Intel. AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report.
razormontana commented 2026-11-28 00:49:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by razormontana on 2026-11-28T00:49:44Z.


Independent native validation of the clean published stack at becdecfe8895548fc6329e572b44cba010757acc on #3040 962cdca84c402e0254cc1c6909bb82393164cd21. Windows 11 Pro build 22631, Core i7-10700K, RTX 3070 8 GB with NVIDIA 617.42, Rust 1.100.0 x64 MSVC. Windows SDK DXC 1.9.2602.17.

Tested

  • cargo test --offline --locked -j 1 -p xcl --lib --no-run --message-format=json-render-diagnostics succeeded. The native executable ran gpu_no_cross_half_matches_split_wave64, gpu_single_wave_matches_split_wave64, and gpu_rejected_shader_falls_back_to_split by exact name with --test-threads=1 --nocapture and the RTX 3070 selected.
  • 3 GPU tests passed, 0 failed, 0 ignored, 0 skipped. The eligible cases matched split-wave64 results, and the rejection fixture verified split fallback with matching HLSL GPU output. The 17 published CPU eligibility fixtures also passed. Three separate CPU-only probes verified tier selection, fallback, and compiler output.
  • The owned stack applied to main 6089122a. It had four content conflicts when checked against NVIDIA revision d1be8103.

Not tested

Retail, the game-data census or benchmark, GPU performance, or a reconciled NVIDIA port.

AI use

Codex GPT-6.2 ran the focused validation, checked the results, and prepared this report.

<!-- greyfinch-sync:ivall/xcl:comment:7231221092 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3042#issuecomment-7231221092). Originally posted by [razormontana](https://github.com/razormontana) on 2026-11-28T00:49:44Z. --- Independent native validation of the clean published stack at `becdecfe8895548fc6329e572b44cba010757acc` on #3040 `962cdca84c402e0254cc1c6909bb82393164cd21`. Windows 11 Pro build 22631, Core i7-10700K, RTX 3070 8 GB with NVIDIA 617.42, Rust 1.100.0 x64 MSVC. Windows SDK DXC 1.9.2602.17. **Tested** - `cargo test --offline --locked -j 1 -p xcl --lib --no-run --message-format=json-render-diagnostics` succeeded. The native executable ran `gpu_no_cross_half_matches_split_wave64`, `gpu_single_wave_matches_split_wave64`, and `gpu_rejected_shader_falls_back_to_split` by exact name with `--test-threads=1 --nocapture` and the RTX 3070 selected. - **3 GPU tests passed, 0 failed, 0 ignored, 0 skipped.** The eligible cases matched split-wave64 results, and the rejection fixture verified split fallback with matching HLSL GPU output. The 17 published CPU eligibility fixtures also passed. Three separate CPU-only probes verified tier selection, fallback, and compiler output. - The owned stack applied to main `6089122a`. It had four content conflicts when checked against NVIDIA revision `d1be8103`. **Not tested** Retail, the game-data census or benchmark, GPU performance, or a reconciled NVIDIA port. **AI use** Codex GPT-6.2 ran the focused validation, checked the results, and prepared this report.
JJAutoCompare commented 2026-11-28 01:20:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-28T01:20:42Z.


Tested

Clean becdecfe8895548fc6329e572b44cba010757acc on Intel Arc A770 (PCI 8086:56a0, driver 32.0.101.9175), Ryzen 7 3800X, Windows 11 25H2 build 26200.9974, Rust 1.100.1 MSVC debug, and DXC/DXIL 1.9.2602.17.

I reran the pinned stock executable with XCL_ADAPTER=A770 and <libtest.exe> --exact <test> --nocapture --test-threads=1 for each of these fixtures under gpu::recomp::wave_local::tests. The shared Arc lock covered all three processes. All native exits and the wrapper exit were 0, and the executable hash matched before, during and after the lock.

  • gpu_no_cross_half_matches_split_wave64 — Wave-local HLSL, Direct DXIL and per-lane DXIL each matched all 320 readback dwords from the split HLSL reference for each of four threadgroup shapes (64×1×1, 8×8×1, 48×1×1, 128×1×1).
  • gpu_single_wave_matches_split_wave64 — The same three backends matched the split HLSL reference's nonzero atomic count and sorted output values for groups of 32, 16 and 24 threads.
  • gpu_rejected_shader_falls_back_to_split — The rejected lane-40 read dispatched via split HLSL, matched all 192 reference dwords, and wrote 40 to all 64 output dwords. Direct DXIL reported no wave-local lowering, and the per-lane helper rejected the cross-half read. Those two DXIL checks were translation-only.

3 passed, 0 failed, 0 ignored, 0 runtime skips.

Not tested

Native wave64, GPU execution of the rejected DXIL cases, default policy or title-level backend selection, retail smoke, performance, and the full suite.

AI use

T3 Code through the Codex harness (gpt-6.2-sol) verified provenance and adapter selection, ran the stock fixtures and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7231598147 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3042#issuecomment-7231598147). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-28T01:20:42Z. --- **Tested** Clean `becdecfe8895548fc6329e572b44cba010757acc` on Intel Arc A770 (PCI `8086:56a0`, driver `32.0.101.9175`), Ryzen 7 3800X, Windows 11 25H2 build 26200.9974, Rust 1.100.1 MSVC debug, and DXC/DXIL 1.9.2602.17. I reran the pinned stock executable with `XCL_ADAPTER=A770` and `<libtest.exe> --exact <test> --nocapture --test-threads=1` for each of these fixtures under `gpu::recomp::wave_local::tests`. The shared Arc lock covered all three processes. All native exits and the wrapper exit were 0, and the executable hash matched before, during and after the lock. - `gpu_no_cross_half_matches_split_wave64` — Wave-local HLSL, Direct DXIL and per-lane DXIL each matched all 320 readback dwords from the split HLSL reference for each of four threadgroup shapes (`64×1×1`, `8×8×1`, `48×1×1`, `128×1×1`). - `gpu_single_wave_matches_split_wave64` — The same three backends matched the split HLSL reference's nonzero atomic count and sorted output values for groups of 32, 16 and 24 threads. - `gpu_rejected_shader_falls_back_to_split` — The rejected lane-40 read dispatched via split HLSL, matched all 192 reference dwords, and wrote `40` to all 64 output dwords. Direct DXIL reported no wave-local lowering, and the per-lane helper rejected the cross-half read. Those two DXIL checks were translation-only. **3 passed, 0 failed, 0 ignored, 0 runtime skips.** **Not tested** Native wave64, GPU execution of the rejected DXIL cases, default policy or title-level backend selection, retail smoke, performance, and the full suite. **AI use** T3 Code through the Codex harness (`gpt-6.2-sol`) verified provenance and adapter selection, ran the stock fixtures and wrote this report.
CharlyRien commented 2026-11-28 02:26:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by CharlyRien on 2026-11-28T02:26:46Z.


Test report for becdecf as it is (the PR's head, with #3040 under it; base f9a0cb8), on an RTX 3090, a 32-lane card.

Tested

  • RTX 3090 24 GB (Resizable BAR off), driver 616.56, Ryzen 9 5950X, 32 GB RAM, Windows 11 22631, Rust 1.100.0, debug for the suite, release for the smoke run.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 on becdecf (XCL_WAVE_LOCAL unset): 1486 passed, 0 failed, 47 ignored.
    • The PR's 22 wave_local tests: 22 passed, among them the three GPU ones (gpu_no_cross_half_matches_split_wave64, gpu_single_wave_matches_split_wave64, gpu_rejected_shader_falls_back_to_split), which also passed on the RTX 3070 and the Arc A770 reports above.
    • SKIPPED on this adapter: 25 lines. 21 are "no wave64" (8 with that reason alone, 13 from lower_dxil::tests with the part named, e.g. "f32 arithmetic, wave64: no wave64"); 3 are the per-lane form refusing f16 / packed f16 / f32-to-f16 conversions ("its #1426 semantics differ from the console's"); 1 is heap_window_out_of_memory_falls_back_to_the_switch_form ("no heap windows"). None of them is a wave_local test.
  • The retail title through scripts/smoke.ps1, 200 s, with the switch off (the default), below: 0 wave-local ( lines in the PR's log.

Regression run
main 6089122 and this head, same machine, same title, 200 s, the same scripted A presses (XCL_PRESS_A_AT), XCL_PREPARE=0 on both, each run with its own copy of the same shader cache. Both runs used main's scripts/smoke.ps1.

main:

xcl-smoke v1
commit: 6089122a1c96dff16e93b6fdf04c8ed20cfb6102
gpu: NVIDIA GeForce RTX 3090
title: 16b5e5d4
seconds: 200
exit: 0x0
frames shown: 1723 (PresentX 1723)
presents per 2 s (last 3): 0 0 2
device removals: 0
crashes: 0
peak commit: 29921 MB

this PR's head:

xcl-smoke v1
commit: becdecfe8895548fc6329e572b44cba010757acc
gpu: NVIDIA GeForce RTX 3090
title: 16b5e5d4
seconds: 200
exit: 0x0
frames shown: 1648 (PresentX 1648)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 35416 MB

Frames 95.6 % of main's, peak commit 118.4 % of main's, no device removal and no crash on this head. One run each.

Not tested

  • XCL_WAVE_LOCAL=1 in the title (frame times, image): this report covers the default only.
  • Native wave64 hardware, AMD, Intel.

AI use: Claude Code, model Claude Opus 5.5. It built both commits, ran the suite and the two smoke runs on the machine above, read the logs and wrote this. The person running these tests asked for this post.

<!-- greyfinch-sync:ivall/xcl:comment:7232367112 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3042#issuecomment-7232367112). Originally posted by [CharlyRien](https://github.com/CharlyRien) on 2026-11-28T02:26:46Z. --- Test report for `becdecf` as it is (the PR's head, with #3040 under it; base `f9a0cb8`), on an RTX 3090, a 32-lane card. **Tested** - RTX 3090 24 GB (Resizable BAR off), driver 616.56, Ryzen 9 5950X, 32 GB RAM, Windows 11 22631, Rust 1.100.0, debug for the suite, release for the smoke run. - `cargo test --workspace --no-fail-fast -- --test-threads=4` on `becdecf` (`XCL_WAVE_LOCAL` unset): 1486 passed, 0 failed, 47 ignored. - The PR's 22 `wave_local` tests: 22 passed, among them the three GPU ones (`gpu_no_cross_half_matches_split_wave64`, `gpu_single_wave_matches_split_wave64`, `gpu_rejected_shader_falls_back_to_split`), which also passed on the RTX 3070 and the Arc A770 reports above. - `SKIPPED` on this adapter: 25 lines. 21 are "no wave64" (8 with that reason alone, 13 from `lower_dxil::tests` with the part named, e.g. "f32 arithmetic, wave64: no wave64"); 3 are the per-lane form refusing f16 / packed f16 / f32-to-f16 conversions ("its #1426 semantics differ from the console's"); 1 is `heap_window_out_of_memory_falls_back_to_the_switch_form` ("no heap windows"). None of them is a `wave_local` test. - The retail title through `scripts/smoke.ps1`, 200 s, with the switch off (the default), below: 0 `wave-local (` lines in the PR's log. **Regression run** `main` `6089122` and this head, same machine, same title, 200 s, the same scripted A presses (`XCL_PRESS_A_AT`), `XCL_PREPARE=0` on both, each run with its own copy of the same shader cache. Both runs used `main`'s `scripts/smoke.ps1`. main: ``` xcl-smoke v1 commit: 6089122a1c96dff16e93b6fdf04c8ed20cfb6102 gpu: NVIDIA GeForce RTX 3090 title: 16b5e5d4 seconds: 200 exit: 0x0 frames shown: 1723 (PresentX 1723) presents per 2 s (last 3): 0 0 2 device removals: 0 crashes: 0 peak commit: 29921 MB ``` this PR's head: ``` xcl-smoke v1 commit: becdecfe8895548fc6329e572b44cba010757acc gpu: NVIDIA GeForce RTX 3090 title: 16b5e5d4 seconds: 200 exit: 0x0 frames shown: 1648 (PresentX 1648) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 35416 MB ``` Frames 95.6 % of `main`'s, peak commit 118.4 % of `main`'s, no device removal and no crash on this head. One run each. **Not tested** - `XCL_WAVE_LOCAL=1` in the title (frame times, image): this report covers the default only. - Native wave64 hardware, AMD, Intel. **AI use:** Claude Code, model Claude Opus 5.5. It built both commits, ran the suite and the two smoke runs on the machine above, read the logs and wrote this. The person running these tests asked for this post.
Aniseto commented 2026-11-28 09:01:02 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-28T09:01:02Z.


Ran the wave-local lowering tests at becdecfe on an NVIDIA Blackwell desktop part:

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 wave_local -- --test-threads=1
22 passed; 0 failed; 0 ignored; 0 measured; 1362 filtered out      (exit 0)

All 22 tests matching wave_local pass, including the three GPU differential tests (gpu_no_cross_half_matches_split_wave64, gpu_single_wave_matches_split_wave64 and the fallback case) on a genuine 32-lane adapter. I did not set XCL_WAVE_LOCAL=1 in a real session or run the optional retail benchmark. The thread has runs on RTX 3060, RTX 3090 and AMD, but no 5070 Ti.

Not tested: a title with XCL_WAVE_LOCAL=1, the XCL_SAMPLE_* benchmark, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data.

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

<!-- greyfinch-sync:ivall/xcl:comment:7236957106 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3042#issuecomment-7236957106). Originally posted by [Aniseto](https://github.com/Aniseto) on 2026-11-28T09:01:02Z. --- Ran the wave-local lowering tests at `becdecfe` on an NVIDIA Blackwell desktop part: 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 wave_local -- --test-threads=1 22 passed; 0 failed; 0 ignored; 0 measured; 1362 filtered out (exit 0) ``` All 22 tests matching `wave_local` pass, including the three GPU differential tests (`gpu_no_cross_half_matches_split_wave64`, `gpu_single_wave_matches_split_wave64` and the fallback case) on a genuine 32-lane adapter. I did not set `XCL_WAVE_LOCAL=1` in a real session or run the optional retail benchmark. The thread has runs on RTX 3060, RTX 3090 and AMD, but no 5070 Ti. Not tested: a title with `XCL_WAVE_LOCAL=1`, the `XCL_SAMPLE_*` benchmark, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data. AI-assisted (OpenCode), model: **DeepSeek V4.1 Flash Free** - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.
bmjask commented 2026-11-28 22:04:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-11-28T22:04:18Z.

Review: COMMENTED


Critical-review result: I found no concrete lowering defect in the wave-local wiring. The selected tier consistently disables split exchange, uses hardware wave32 sizing, zeros the upper ballot word, and separates translated-cache identity.

Because correctness depends on #3040 rejecting every cross-half dependency, please treat corpus differential validation against the existing split-wave64 path as the merge gate for this opt-in. Also rebase the current conflict without combining additional behavior changes.

Reviewed at becdecfe88 with Codex (GPT-5).

<!-- greyfinch-sync:ivall/xcl:review:6100275253 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3042#pullrequestreview-6100275253). Originally posted by [bmjask](https://github.com/bmjask) on 2026-11-28T22:04:18Z. **Review:** COMMENTED --- Critical-review result: I found no concrete lowering defect in the wave-local wiring. The selected tier consistently disables split exchange, uses hardware wave32 sizing, zeros the upper ballot word, and separates translated-cache identity. Because correctness depends on #3040 rejecting every cross-half dependency, please treat corpus differential validation against the existing split-wave64 path as the merge gate for this opt-in. Also rebase the current conflict without combining additional behavior changes. Reviewed at becdecfe8895548fc6329e572b44cba010757acc with Codex (GPT-5).
coolpersonnn commented 2026-11-28 23:41:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by coolpersonnn on 2026-11-28T23:41:32Z.


@bmjask Thanks for the review. Both items are addressed at 43d0c866:

  • Clean rebase: Rebased onto main (10373744, preserving its rodata, dispatch remapping, and atomic operand handling) atop #3040 (c56cfcdd) with no merge conflicts.
  • Retail corpus differential (retail_wave_local_buffer_differential, RTX 5090, release): Out of 1,154 wave64 compute shaders in the retail pack, 359 were accepted (340 NoCrossHalf, 19 SingleWave). All 31 shaders that produced observable writes to the seeded buffers matched split-wave64 HLSL with 0 mismatches (record 1d7d9f365982e397 matched once its synthetic buffer views were given disjoint ranges). 105 produced no observable writes with these inputs and 223 required image bindings (reported separately, not counted as output parity).
  • Smoke & GPU checks: All four wave-local GPU regressions passed, and paired 60 s retail smoke runs passed with 0 crashes/device removals (XCL_WAVE_LOCAL=1: 1,389 frames with 154 unique wave-local translations vs. default 1,382 and main 1,423; startup/loading covered, in-world rendering unverified). Direct/per-lane DXIL retail corpus parity and native wave64/AMD/Intel on the rebased head remain untested.

Full test counts and smoke blocks are in the updated PR description.

AI use: Codex (gpt-6.2-sol) resolved the rebase conflict, ran the corpus differential, workspace suite, and smoke checks, and updated the PR description. Antigravity (Gemini 4 Hydrogen) drafted and posted this reply from that session's recorded results.

<!-- greyfinch-sync:ivall/xcl:comment:7247599216 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3042#issuecomment-7247599216). Originally posted by [coolpersonnn](https://github.com/coolpersonnn) on 2026-11-28T23:41:32Z. --- @bmjask Thanks for the review. Both items are addressed at `43d0c866`: - **Clean rebase:** Rebased onto `main` (`10373744`, preserving its rodata, dispatch remapping, and atomic operand handling) atop #3040 (`c56cfcdd`) with no merge conflicts. - **Retail corpus differential (`retail_wave_local_buffer_differential`, RTX 5090, release):** Out of 1,154 wave64 compute shaders in the retail pack, **359** were accepted (**340** `NoCrossHalf`, **19** `SingleWave`). All **31** shaders that produced observable writes to the seeded buffers matched split-wave64 HLSL with **0 mismatches** (record `1d7d9f365982e397` matched once its synthetic buffer views were given disjoint ranges). **105** produced no observable writes with these inputs and **223** required image bindings (reported separately, not counted as output parity). - **Smoke & GPU checks:** All four wave-local GPU regressions passed, and paired 60 s retail smoke runs passed with 0 crashes/device removals (`XCL_WAVE_LOCAL=1`: 1,389 frames with 154 unique wave-local translations vs. default 1,382 and `main` 1,423; startup/loading covered, in-world rendering unverified). Direct/per-lane DXIL retail corpus parity and native wave64/AMD/Intel on the rebased head remain untested. Full test counts and smoke blocks are in the updated PR description. **AI use:** Codex (`gpt-6.2-sol`) resolved the rebase conflict, ran the corpus differential, workspace suite, and smoke checks, and updated the PR description. Antigravity (`Gemini 4 Hydrogen`) drafted and posted this reply from that session's recorded results.
throny commented 2026-11-30 19:42:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-30T19:42:35Z.


Measuring this in the world now: head a92f307d (release), RTX 4080, four alternating 600 s runs of the same save and inputs, XCL_WAVE_LOCAL=1 vs unset in the same build, presents/s after 240 s and a picture check (3×3 brightness grid as agreed on #505). Results here when done (about 1.5 h, after a run already on the GPU).

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7289817873 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3042#issuecomment-7289817873). Originally posted by [throny](https://github.com/throny) on 2026-11-30T19:42:35Z. --- Measuring this in the world now: head `a92f307d` (release), RTX 4080, four alternating 600 s runs of the same save and inputs, `XCL_WAVE_LOCAL=1` vs unset in the same build, presents/s after 240 s and a picture check (3×3 brightness grid as agreed on #505). Results here when done (about 1.5 h, after a run already on the GPU). AI use: Claude Code (Claude Opus 5.5).
throny commented 2026-11-30 23:27:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-30T23:27:21Z.


World result, as announced: head a92f307d (release, plus our local input-timing patch), RTX 4080 16 GB (621.40), same save and inputs, 600 s each, XCL_SPLIT_INDIRECT_ROUNDS=1. No device removal, crash or hang in any run.

run XCL_WAVE_LOCAL pipelines presents/s after 240 s
338 1 cold 1.86
339 unset warm 2.06
340 1 warm 2.10

(A fourth run, unset and cold, never reached the world within its time and is left out.) So the warm pair differs by about 2 %, which is within run-to-run noise at this frame rate: no measurable gain here, and no harm. The first run with the switch logged 212 wave-local lines, so the form was taken. The last frames of 339 and 340 are the same scene but at different instants, one somewhat darker; with one frame per run I can't say whether the form changes the picture. A GPU-time profile (#1766) of the wave64 programs is running next, which should say how much of the frame these programs take at all.

AI use: Claude Code (Claude Opus 5.5), runs made and read by a Claude Sonnet 5.5 sub-agent.

<!-- greyfinch-sync:ivall/xcl:comment:7295137126 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3042#issuecomment-7295137126). Originally posted by [throny](https://github.com/throny) on 2026-11-30T23:27:21Z. --- World result, as announced: head `a92f307d` (release, plus our local input-timing patch), RTX 4080 16 GB (621.40), same save and inputs, 600 s each, `XCL_SPLIT_INDIRECT_ROUNDS=1`. No device removal, crash or hang in any run. | run | `XCL_WAVE_LOCAL` | pipelines | presents/s after 240 s | |---|---|---|---| | 338 | 1 | cold | 1.86 | | 339 | unset | warm | 2.06 | | 340 | 1 | warm | 2.10 | (A fourth run, unset and cold, never reached the world within its time and is left out.) So the warm pair differs by about 2 %, which is within run-to-run noise at this frame rate: no measurable gain here, and no harm. The first run with the switch logged 212 wave-local lines, so the form was taken. The last frames of 339 and 340 are the same scene but at different instants, one somewhat darker; with one frame per run I can't say whether the form changes the picture. A GPU-time profile (#1766) of the wave64 programs is running next, which should say how much of the frame these programs take at all. AI use: Claude Code (Claude Opus 5.5), runs made and read by a Claude Sonnet 5.5 sub-agent.
Foniass commented 2026-12-01 09:24:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:24:43Z.


Triage (#1607) – head a92f307

This PR is stacked on #3040: its first commit (f197cb2, the wave-local eligibility analysis in recomp/wave_local.rs) is #3040's head, and only the top commit a92f307 (routing through emit.rs, mod.rs, pso.rs, kernel.rs, lower_dxil.rs, and the cache identity xcl-wave-local-1) belongs here. That is why it shares about 546 added lines with #3040. It is not a duplicate.
#2554 also removes the split-wave64 exchange cost for some compute programs, but it does that by a different mechanism (remap and a null guard) and is not the same change. The wave_local lowering is not on main. The branch conflicts with main and 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:7306662002 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3042#issuecomment-7306662002). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T09:24:43Z. --- **Triage (#1607)** – head a92f307 This PR is stacked on #3040: its first commit (f197cb2, the wave-local eligibility analysis in `recomp/wave_local.rs`) is #3040's head, and only the top commit a92f307 (routing through emit.rs, mod.rs, pso.rs, kernel.rs, lower_dxil.rs, and the cache identity `xcl-wave-local-1`) belongs here. That is why it shares about 546 added lines with #3040. It is not a duplicate. #2554 also removes the split-wave64 exchange cost for some compute programs, but it does that by a different mechanism (remap and a null guard) and is not the same change. The `wave_local` lowering is not on main. The branch conflicts with main and 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.
Foniass commented 2026-12-01 10:54:36 +00:00 (Migrated from github.com)

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


Review (head a92f307, diff read, not a merge-check; stacked on #3040, conflicts with main in kernel.rs, mod.rs, pso.rs):

Its own part is +521 / -30: about +402 in wave_local.rs (tests and enabled()) and +119 / -30 of runtime. With XCL_WAVE_LOCAL=1, each half of an eligible wave64 group runs as its own hardware wave32 ([WaveSize(32)]). numthreads, v0 and SV_GroupThreadID are unchanged, the upper ballot word is zero, and nothing is exchanged between halves.

  • The evidence covers the wrong backend. Compute goes through direct DXIL by default (kernel.rs routing(None) gives (true, true)). The retail differential (wave_local.rs ~1208-1295) checked only the HLSL form, while the direct form, the one the =1 title runs used (pso.rs ~1275), was checked on three synthetic shaders.

  • Cache identity has gaps in both directions.

    • With the switch on, the identity is the fixed tag "xcl-wave-local-1" (pso.rs ~373, ~664), but analyze depends on lane_masks.rs, which is only in PER_LANE_SOURCES. A change there leaves stale cached translations.
    • wave_local.rs is in TRANSLATOR_SOURCES (build.rs ~19), so any edit to it, mostly tests, wipes every user's cache even with the switch off.

    An id of its own, as per-lane has, fixes both.

  • No measured benefit. The 60 s smoke runs are capped (1707 vs 1703 frames), throny's 600 s world run is 2.10 vs 2.06 presents/s (noise), and the timing harness (~1033) has no posted numbers.

  • retail_wave_local_bench (~1301) asserts nothing and calls dxc::compile(...).unwrap() without a skip, so it panics without DXC. The retail differential and bench (~190 lines) could go to a test-only PR, or the bench could go.

  • After the rebase, the suite and both smoke runs need redoing.

Fine: off by default, with the cache identity unchanged when off. A rejected shader falls back to the split form, and a GPU test covers that. The GPU tests call skip_test, and native wave64 isn't affected.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7308899785 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3042#issuecomment-7308899785). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T10:54:36Z. --- Review (head a92f307, diff read, not a merge-check; stacked on #3040, conflicts with main in `kernel.rs`, `mod.rs`, `pso.rs`): Its own part is +521 / -30: about +402 in `wave_local.rs` (tests and `enabled()`) and +119 / -30 of runtime. With `XCL_WAVE_LOCAL=1`, each half of an eligible wave64 group runs as its own hardware wave32 (`[WaveSize(32)]`). `numthreads`, v0 and `SV_GroupThreadID` are unchanged, the upper ballot word is zero, and nothing is exchanged between halves. - **The evidence covers the wrong backend.** Compute goes through direct DXIL by default (`kernel.rs` `routing(None)` gives `(true, true)`). The retail differential (`wave_local.rs` ~1208-1295) checked only the HLSL form, while the direct form, the one the `=1` title runs used (`pso.rs` ~1275), was checked on three synthetic shaders. - **Cache identity has gaps in both directions.** - With the switch on, the identity is the fixed tag `"xcl-wave-local-1"` (`pso.rs` ~373, ~664), but `analyze` depends on `lane_masks.rs`, which is only in `PER_LANE_SOURCES`. A change there leaves stale cached translations. - `wave_local.rs` is in `TRANSLATOR_SOURCES` (`build.rs` ~19), so any edit to it, mostly tests, wipes every user's cache even with the switch off. An id of its own, as per-lane has, fixes both. - **No measured benefit.** The 60 s smoke runs are capped (1707 vs 1703 frames), throny's 600 s world run is 2.10 vs 2.06 presents/s (noise), and the timing harness (~1033) has no posted numbers. - `retail_wave_local_bench` (~1301) asserts nothing and calls `dxc::compile(...).unwrap()` without a skip, so it panics without DXC. The retail differential and bench (~190 lines) could go to a test-only PR, or the bench could go. - After the rebase, the suite and both smoke runs need redoing. Fine: off by default, with the cache identity unchanged when off. A rejected shader falls back to the split form, and a GPU test covers that. The GPU tests call `skip_test`, and native wave64 isn't affected. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
coolpersonnn commented 2026-12-01 14:27:12 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by coolpersonnn on 2026-12-01T14:27:12Z.


Closing: world testing showed no measurable speedup over main, and the branch now has significant conflicts and rework needed.

<!-- greyfinch-sync:ivall/xcl:comment:7314273647 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3042#issuecomment-7314273647). Originally posted by [coolpersonnn](https://github.com/coolpersonnn) on 2026-12-01T14:27:12Z. --- Closing: world testing showed no measurable speedup over main, and the branch now has significant conflicts and rework needed.

Pull request closed

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!3042
No description provided.