Recompiler: the FSSM header's wave32 flag decides a program's wave size #573

Manually merged
github merged 1 commit from gh-pr/573/head into gh-pr/573/base 2026-11-26 04:26:10 +00:00
Owner

@⁠throny on GitHub · 2026-11-24 01:56 UTC · original
throny:recompiler-wave-size-from-header → main · +112 −6 · 5 files · 1 commits · merged 2026-11-25 18:24 UTC

A wave32 console program that never writes EXEC was translated as wave64. detect_wave64 tells the wave size from the code (32-bit EXEC writes and no 64-bit ones mean wave32, anything else wave64), and such a program has nothing in its code to tell. Its cross-lane reads (v_readfirstlane, v_readlane, permutes) then span 64 threads instead of 32.

The FSSM header says which it is: bit 5 of the flags word at +0xD4. fssm_wave64 takes wave32 from the header and leaves everything else to detect_wave64, so only those programs change. No issue covers this; I found none for detect_wave64 or the wave size. #517 is adjacent (how wave64 VS / PS are classified for 32-lane GPUs) and touches other functions; the two do not conflict.

Measured on a retail shader pack (XCL_SAMPLE_RPF, 26 698 programs, with a temporary test that is not part of the PR; counts only):

  • the bit is set for all 2 608 programs the code shows to be wave32 (1 481 CS, 1 127 PS) and clear for all 24 036 the code takes for wave64;
  • 54 compute programs have the bit set and no EXEC write, so main translates them as wave64. 27 of them have cross-lane instructions (v_readfirstlane, v_readlane, permutes, LDS);
  • as wave32 all 54 translate completely and compile with DXC (54 of 54, cs_6_6); their HLSL differs from the wave64 translation in all 54 with split_wave64 (the form 32-lane GPUs get).

Where the flag is: the Leonida project's docs (GPL-3.0, no code taken) name this header bit; the numbers above are my own count on the pack with XCL's parser.

What is in it

  • crates/xcl/src/gpu/xbox.rs: Fssm::wave32 (version 0x101, the flags word, an unused 0xDEADBEEF field says nothing), the header comment, and the test wave_size_comes_from_the_header_flag.
  • crates/xcl/src/gpu/recomp/mod.rs: fssm_wave64.
  • crates/xcl/tests/gpu_compute_e2e.rs: console_compute_without_an_exec_write_has_the_wave_size_of_its_header, a compute program through the PSO hook on the GPU: 64 threads store v_readfirstlane of their thread id. With the flag, threads 32..63 read thread 32; without it they read thread 0. console_cs_flags sets the flags word in the test container.
  • crates/xcl/src/gpu/recomp/pso.rs: console_translation and console_mesh use it, and so do the direct DXIL paths from #1426 (direct_compute, direct_graphics and the direct branch of console_mesh), so both backends give an FSSM program the same wave size. crates/xcl/src/shaders.rs: the xcl shaders compile run that mirrors pso, and its --direct pass, use it.
  • Not changed: FSPX (driver) containers, which have no FSSM header, and the wave32 count in xcl shaders statistics (shaders.rs add has only the code).
  • docs/specs/2026-11-20-xcl-design.md line 340 ("Wave64/wave32 is detected from the code (detect_wave64)") is no longer the whole rule.

Tested

  • Windows 11 Pro 10.0.26300, NVIDIA GeForce RTX 4080 (driver 610.88, 32-lane waves), Intel i9-12900K, 64 GB; Rust 1.100.0 stable-x86_64-pc-windows-msvc; DXC 1.9.2602.17 (Windows SDK 10.0.26100.0); tests in debug, title runs in release.
  • cargo build --workspace && cargo test --workspace -- --test-threads=4 on b8b4135 (rebased on main bdda528): 1 129 passed, 0 failed, 46 ignored, first run. Earlier heads: 995 / 0 / 45 on aefabd8, 860 / 0 / 42 on 500fd5a, 715 / 0 / 41 on 09b1fb0.
  • SKIPPED on this adapter (24 lines): the wave64 GPU tests (no wave64, including the per-lane lower_dxil ones and two of its forms the per-lane path refuses), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows), pso_measurement_compiles_an_exact_synthetic_record (the driver cache cannot be disabled without Developer Mode).
  • Negative control: with fssm_wave64 returning detect_wave64(code) alone, wave_size_comes_from_the_header_flag fails (left: (true, true), right: (true, false); run on de5b510), and the GPU test fails at flags 0x20, thread 32 (left: (0, 32), right: (32, 32); run on the rebased tree).
  • The pack counts above.

Regression run

scripts/smoke.ps1, the newer retail title, release builds of both commits, warm shader cache, main first.

main:

xcl-smoke v1
commit: bdda528ee26cc2f5626eeb460213480c4176f813
gpu: NVIDIA GeForce RTX 4080
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1554 (PresentX 1554)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16383 MB

PR:

xcl-smoke v1
commit: b8b4135b7261c9b50cff1abf92a3b03cc2e8e6d2
gpu: NVIDIA GeForce RTX 4080
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1600 (PresentX 1600)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15471 MB

Not tested

  • That any of the 54 programs is built or run in those 60 s (the run reaches the title's menus): the regression run shows nothing broke, not that the fix is exercised in the title.
  • The results of the 54 retail programs on a GPU. The new GPU test shows what the flag changes for a program of this kind; that the flag is right for those 54 rests on the 26 644 programs where the code can tell, which support it but do not prove it.
  • The new GPU test on wave64 hardware (AMD): there the unflagged program runs as one native 64-lane wave, which should give the same expected values, but I could not run it.
  • The direct DXIL paths with XCL_DIRECT_DXIL=1 on a title (the suite ran, the title run used the default HLSL path).
  • AMD and wave64 hardware, other titles and packs, older FSSM versions (left to the code as before).

AI use

  • Claude Code (Claude Fable 5.2): the measurement, the change, the test, the first runs and this description. Claude Code (Claude Opus 5.5): the rebases onto c160d86, 80f4819 and bdda528 (conflicts in pso.rs), the direct-path changes, the reruns above and these updates. The user asked for the comparison with their earlier Leonida work and approved opening the PR.

🤖 Generated with Claude Code

**@⁠throny** on GitHub · 2026-11-24 01:56 UTC · [original](https://github.com/xcl-dev/xcl/pull/573) `throny:recompiler-wave-size-from-header` → `main` · +112 −6 · 5 files · 1 commits · merged 2026-11-25 18:24 UTC A wave32 console program that never writes EXEC was translated as wave64. `detect_wave64` tells the wave size from the code (32-bit EXEC writes and no 64-bit ones mean wave32, anything else wave64), and such a program has nothing in its code to tell. Its cross-lane reads (`v_readfirstlane`, `v_readlane`, permutes) then span 64 threads instead of 32. The FSSM header says which it is: bit 5 of the flags word at +0xD4. `fssm_wave64` takes wave32 from the header and leaves everything else to `detect_wave64`, so only those programs change. No issue covers this; I found none for `detect_wave64` or the wave size. #517 is adjacent (how wave64 VS / PS are classified for 32-lane GPUs) and touches other functions; the two do not conflict. **Measured** on a retail shader pack (`XCL_SAMPLE_RPF`, 26 698 programs, with a temporary test that is not part of the PR; counts only): - the bit is set for all 2 608 programs the code shows to be wave32 (1 481 CS, 1 127 PS) and clear for all 24 036 the code takes for wave64; - 54 compute programs have the bit set and no EXEC write, so `main` translates them as wave64. 27 of them have cross-lane instructions (`v_readfirstlane`, `v_readlane`, permutes, LDS); - as wave32 all 54 translate completely and compile with DXC (54 of 54, `cs_6_6`); their HLSL differs from the wave64 translation in all 54 with `split_wave64` (the form 32-lane GPUs get). Where the flag is: the Leonida project's docs (GPL-3.0, no code taken) name this header bit; the numbers above are my own count on the pack with XCL's parser. **What is in it** - `crates/xcl/src/gpu/xbox.rs`: `Fssm::wave32` (version 0x101, the flags word, an unused 0xDEADBEEF field says nothing), the header comment, and the test `wave_size_comes_from_the_header_flag`. - `crates/xcl/src/gpu/recomp/mod.rs`: `fssm_wave64`. - `crates/xcl/tests/gpu_compute_e2e.rs`: `console_compute_without_an_exec_write_has_the_wave_size_of_its_header`, a compute program through the PSO hook on the GPU: 64 threads store `v_readfirstlane` of their thread id. With the flag, threads 32..63 read thread 32; without it they read thread 0. `console_cs_flags` sets the flags word in the test container. - `crates/xcl/src/gpu/recomp/pso.rs`: `console_translation` and `console_mesh` use it, and so do the direct DXIL paths from #1426 (`direct_compute`, `direct_graphics` and the direct branch of `console_mesh`), so both backends give an FSSM program the same wave size. `crates/xcl/src/shaders.rs`: the `xcl shaders` compile run that mirrors `pso`, and its `--direct` pass, use it. - Not changed: FSPX (driver) containers, which have no FSSM header, and the wave32 count in `xcl shaders` statistics (`shaders.rs` `add` has only the code). - `docs/specs/2026-11-20-xcl-design.md` line 340 ("Wave64/wave32 is detected from the code (`detect_wave64`)") is no longer the whole rule. **Tested** - Windows 11 Pro 10.0.26300, NVIDIA GeForce RTX 4080 (driver 610.88, 32-lane waves), Intel i9-12900K, 64 GB; Rust 1.100.0 `stable-x86_64-pc-windows-msvc`; DXC 1.9.2602.17 (Windows SDK 10.0.26100.0); tests in debug, title runs in release. - `cargo build --workspace && cargo test --workspace -- --test-threads=4` on `b8b4135` (rebased on `main` `bdda528`): 1 129 passed, 0 failed, 46 ignored, first run. Earlier heads: 995 / 0 / 45 on `aefabd8`, 860 / 0 / 42 on `500fd5a`, 715 / 0 / 41 on `09b1fb0`. - `SKIPPED` on this adapter (24 lines): the wave64 GPU tests (no wave64, including the per-lane `lower_dxil` ones and two of its forms the per-lane path refuses), `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows), `pso_measurement_compiles_an_exact_synthetic_record` (the driver cache cannot be disabled without Developer Mode). - Negative control: with `fssm_wave64` returning `detect_wave64(code)` alone, `wave_size_comes_from_the_header_flag` fails (`left: (true, true)`, `right: (true, false)`; run on `de5b510`), and the GPU test fails at `flags 0x20, thread 32` (`left: (0, 32)`, `right: (32, 32)`; run on the rebased tree). - The pack counts above. **Regression run** `scripts/smoke.ps1`, the newer retail title, release builds of both commits, warm shader cache, `main` first. main: ``` xcl-smoke v1 commit: bdda528ee26cc2f5626eeb460213480c4176f813 gpu: NVIDIA GeForce RTX 4080 title: 21222967 seconds: 60 exit: 0x0 frames shown: 1554 (PresentX 1554) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16383 MB ``` PR: ``` xcl-smoke v1 commit: b8b4135b7261c9b50cff1abf92a3b03cc2e8e6d2 gpu: NVIDIA GeForce RTX 4080 title: 21222967 seconds: 60 exit: 0x0 frames shown: 1600 (PresentX 1600) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15471 MB ``` **Not tested** - That any of the 54 programs is built or run in those 60 s (the run reaches the title's menus): the regression run shows nothing broke, not that the fix is exercised in the title. - The results of the 54 retail programs on a GPU. The new GPU test shows what the flag changes for a program of this kind; that the flag is right for those 54 rests on the 26 644 programs where the code can tell, which support it but do not prove it. - The new GPU test on wave64 hardware (AMD): there the unflagged program runs as one native 64-lane wave, which should give the same expected values, but I could not run it. - The direct DXIL paths with `XCL_DIRECT_DXIL=1` on a title (the suite ran, the title run used the default HLSL path). - AMD and wave64 hardware, other titles and packs, older FSSM versions (left to the code as before). **AI use** - Claude Code (Claude Fable 5.2): the measurement, the change, the test, the first runs and this description. Claude Code (Claude Opus 5.5): the rebases onto `c160d86`, `80f4819` and `bdda528` (conflicts in `pso.rs`), the direct-path changes, the reruns above and these updates. The user asked for the comparison with their earlier Leonida work and approved opening the PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
detect_wave64 tells the wave size from the code: 32-bit EXEC writes and no
64-bit ones mean wave32, anything else wave64. A wave32 program that never
writes EXEC has nothing in its code to tell, so it was translated as wave64:
its cross-lane reads (v_readfirstlane, v_readlane, permutes) then span 64
threads instead of 32.

The FSSM header has the answer: bit 5 of the flags word at +0xD4. Measured
on a retail shader pack (26 698 programs): the bit is set for all 2 608
programs the code shows to be wave32 and clear for all 24 036 the code takes
for wave64, except 54 compute programs with the bit set and no EXEC write in
their code. 27 of those 54 have cross-lane instructions (v_readfirstlane,
v_readlane, permutes, LDS). As wave32 all 54
translate completely and compile with DXC.

fssm_wave64 takes wave32 from the header and leaves everything else to
detect_wave64, so only those programs change. An unused field (0xDEADBEEF)
and other FSSM versions say nothing.

A compute program through the PSO hook (gpu_compute_e2e) shows the effect:
64 threads store v_readfirstlane of their thread id; with the flag threads
32..63 read thread 32, without it they read thread 0.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:26:08 +00:00
github manually merged commit b8b4135b72 into gh-pr/573/base 2026-11-26 04:26:10 +00:00
Author
Owner

@⁠CryingLaughing on GitHub · 2026-11-24 02:05 UTC · original

I checked the GPU behavior called out under Not tested on exact head de5b51027922d550a16a875677b4387ac0cb0467. Two synthetic FSSM containers carried identical 64-thread compute code with no EXEC writes. The containers differed only in the FSSM wave32 flag. Each invocation stored its V_READFIRSTLANE_B32 result in its own output slot through the real XCL PSO path.

FSSM flags Output slots 0–31 Output slots 32–63
0x00, code-only detection selects split wave64 0 0
0x20, header selects wave32 0 32

Tested

  • RTX 4080, NVIDIA driver 621.01, Core i5-13600K, Windows 11 25H2 build 26200.9974, Rust 1.100.0 MSVC x64, DXC 1.8.2502.11, debug. XCL_ADAPTER=4080, XCL_REQUIRE_GPU=1, all XCL_SAMPLE_* variables unset. D3D12 reported 32 hardware lanes.
  • With the local diagnostic in crates/xcl/tests/gpu_compute_e2e.rs, cargo test -p xcl --test gpu_compute_e2e --locked -j 4 fssm_wave32_flag_controls_compute_cross_lane_reads -- --show-output --test-threads=1 passed 1/1. Both PSOs registered as translated, all 128 output words matched, and the canaries before and after each output were intact.
  • On the clean head, cargo test -p xcl --lib --locked -j 4 wave_size_comes_from_the_header_flag -- --show-output passed 1/1. cargo build --workspace --locked -j 4 passed. cargo test --workspace --locked -j 4 -- --test-threads=4 --show-output reported 681 passed, 0 failed, 41 ignored, including opt-in game-data tests that returned early and four explicit skips.
  • SKIPPED for native wave64: gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware. SKIPPED for D3D12 debug-layer availability: test_title_draws_with_a_root_signature_under_the_debug_layer and uploads_start_from_each_subresources_state.

Not tested

  • Retail shaders, graphics stages, native wave64, other adapters, or release builds.

AI use

  • OpenAI Codex (GPT-6 family, exact variant unavailable) wrote the local diagnostic, ran the tests, and drafted this report.
**@⁠CryingLaughing** on GitHub · 2026-11-24 02:05 UTC · [original](https://github.com/xcl-dev/xcl/pull/573#issuecomment-7119751453) I checked the GPU behavior called out under **Not tested** on exact head `de5b51027922d550a16a875677b4387ac0cb0467`. Two synthetic FSSM containers carried identical 64-thread compute code with no EXEC writes. The containers differed only in the FSSM wave32 flag. Each invocation stored its `V_READFIRSTLANE_B32` result in its own output slot through the real XCL PSO path. | FSSM flags | Output slots 0–31 | Output slots 32–63 | | --- | --- | --- | | `0x00`, code-only detection selects split wave64 | `0` | `0` | | `0x20`, header selects wave32 | `0` | `32` | **Tested** - RTX 4080, NVIDIA driver 621.01, Core i5-13600K, Windows 11 25H2 build 26200.9974, Rust 1.100.0 MSVC x64, DXC 1.8.2502.11, debug. `XCL_ADAPTER=4080`, `XCL_REQUIRE_GPU=1`, all `XCL_SAMPLE_*` variables unset. D3D12 reported 32 hardware lanes. - With the local diagnostic in `crates/xcl/tests/gpu_compute_e2e.rs`, `cargo test -p xcl --test gpu_compute_e2e --locked -j 4 fssm_wave32_flag_controls_compute_cross_lane_reads -- --show-output --test-threads=1` passed 1/1. Both PSOs registered as translated, all 128 output words matched, and the canaries before and after each output were intact. - On the clean head, `cargo test -p xcl --lib --locked -j 4 wave_size_comes_from_the_header_flag -- --show-output` passed 1/1. `cargo build --workspace --locked -j 4` passed. `cargo test --workspace --locked -j 4 -- --test-threads=4 --show-output` reported 681 passed, 0 failed, 41 ignored, including opt-in game-data tests that returned early and four explicit skips. - `SKIPPED` for native wave64: `gpu_geometry_wave32_prefix_count_over_a_mask` and `gpu_wave32_program_in_wave64_hardware`. `SKIPPED` for D3D12 debug-layer availability: `test_title_draws_with_a_root_signature_under_the_debug_layer` and `uploads_start_from_each_subresources_state`. **Not tested** - Retail shaders, graphics stages, native wave64, other adapters, or release builds. **AI use** - OpenAI Codex (GPT-6 family, exact variant unavailable) wrote the local diagnostic, ran the tests, and drafted this report.
Author
Owner

@⁠MesshM on GitHub · 2026-11-24 02:06 UTC · original

Test run and review of de5b51027922d550a16a875677b4387ac0cb0467 on AMD RDNA4 (native wave64). The branch is based on 508a0c7, so I merged it onto current main 9ce2070 locally (clean merge) and tested that tree.

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200, Rust 1.100.0 stable-x86_64-pc-windows-msvc, debug
  • .\scripts\test.ps1 (cargo build --workspace + cargo test --workspace -- --test-threads=4) on the merge: 685 passed, 0 failed, 41 ignored, exit code 0; xcl lib tests 645 passed, 0 failed, 21 ignored
  • 0 SKIPPED; wave_size_comes_from_the_header_flag passes
  • with Fssm::wave32 changed to return false (not committed), the test fails (left: (false, true), right: (true, false)), so it does pin the header flag

Review

  • The flag is read at +0xD4 of the FSSM bytes, the same base parse uses for version (+4) and the code offset/size (+0xC0/+0xC8), and only for version 0x101 and not 0xDEADBEEF.
  • Every runtime path that translates a console FSSM now goes through fssm_wave64: console_translation (VS/PS/CS), console_mesh, and the pack precompile in shaders.rs. The remaining detect_wave64 call in console_translation is the FSPX (driver container) branch, which has no FSSM header, so that one is right as it is.
  • Stale translations are not a concern: the on-disk translation cache (pso::translated) stores the XCL binary's hash in each file, so a new build misses, and the DXC cache is keyed by the HLSL.
  • Two non-runtime paths still decide from the code alone although they have the Fssm at hand: xcl shaders --recomp's statistics (shaders.rs, self.rc.add(...) → detect_wave64 in add, which also counts wave32) and the per-shader dump in gpu/shader.rs (recompile). Their wave32 counts and dumped HLSL will differ from what the runtime now translates for the 54 programs. Not a blocker; passing the FSSM (or the flag) there would keep the tools in step, in this PR or a follow-up.

Not tested: no retail title or regression run (I have no unpacked game), so the 54 programs' behaviour was not seen here; no XCL_SAMPLE_* tests, release build; the PR's head on its old base was not run, only its merge onto main.

Run and review by Claude Code (Claude Opus 5.5) on this machine; each point was checked against the code.

**@⁠MesshM** on GitHub · 2026-11-24 02:06 UTC · [original](https://github.com/xcl-dev/xcl/pull/573#issuecomment-7119759747) Test run and review of `de5b51027922d550a16a875677b4387ac0cb0467` on AMD RDNA4 (native wave64). The branch is based on `508a0c7`, so I merged it onto current `main` `9ce2070` locally (clean merge) and tested that tree. **Tested** - AMD Radeon RX 9060 XT 16 GB (RDNA4), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200, Rust 1.100.0 `stable-x86_64-pc-windows-msvc`, debug - `.\scripts\test.ps1` (`cargo build --workspace` + `cargo test --workspace -- --test-threads=4`) on the merge: **685 passed, 0 failed, 41 ignored**, exit code 0; `xcl` lib tests 645 passed, 0 failed, 21 ignored - **0 `SKIPPED`**; `wave_size_comes_from_the_header_flag` passes - with `Fssm::wave32` changed to return `false` (not committed), the test fails (`left: (false, true)`, `right: (true, false)`), so it does pin the header flag **Review** - The flag is read at +0xD4 of the FSSM bytes, the same base `parse` uses for `version` (+4) and the code offset/size (+0xC0/+0xC8), and only for version 0x101 and not 0xDEADBEEF. - Every runtime path that translates a console FSSM now goes through `fssm_wave64`: `console_translation` (VS/PS/CS), `console_mesh`, and the pack precompile in `shaders.rs`. The remaining `detect_wave64` call in `console_translation` is the FSPX (driver container) branch, which has no FSSM header, so that one is right as it is. - Stale translations are not a concern: the on-disk translation cache (`pso::translated`) stores the XCL binary's hash in each file, so a new build misses, and the DXC cache is keyed by the HLSL. - Two non-runtime paths still decide from the code alone although they have the `Fssm` at hand: `xcl shaders --recomp`'s statistics (`shaders.rs`, `self.rc.add(...)` → `detect_wave64` in `add`, which also counts `wave32`) and the per-shader dump in `gpu/shader.rs` (`recompile`). Their wave32 counts and dumped HLSL will differ from what the runtime now translates for the 54 programs. Not a blocker; passing the FSSM (or the flag) there would keep the tools in step, in this PR or a follow-up. **Not tested:** no retail title or regression run (I have no unpacked game), so the 54 programs' behaviour was not seen here; no `XCL_SAMPLE_*` tests, release build; the PR's head on its old base was not run, only its merge onto `main`. Run and review by Claude Code (Claude Opus 5.5) on this machine; each point was checked against the code.
Author
Owner

@⁠ghost on GitHub · 2026-11-24 02:06 UTC · original

Wave64 hardware run, since Not tested lists it: de5b510 merged onto main 9ce2070 (clean merge): pass. AMD Radeon RX 9060 XT (RDNA4, native 64-lane waves), driver 32.0.32029.2010; Ryzen 7 5800X3D; Windows 11 Pro 26200; Rust 1.100.0 MSVC; DXC 1.9.2602.17; debug.

  • .\scripts\test.ps1: 685 passed, 0 failed, 41 ignored; no SKIPPED GPU tests (the wave64 GPU tests run on this adapter).
  • cargo test -p xcl --lib wave_size_comes_from: wave_size_comes_from_the_header_flag passes.

AI use

  • Claude Code (Claude Opus 5.5) ran the commands and wrote this report from the logs; I checked it before posting.
**@⁠ghost** on GitHub · 2026-11-24 02:06 UTC · [original](https://github.com/xcl-dev/xcl/pull/573#issuecomment-7119762194) Wave64 hardware run, since **Not tested** lists it: `de5b510` merged onto `main` `9ce2070` (clean merge): **pass**. AMD Radeon RX 9060 XT (RDNA4, native 64-lane waves), driver 32.0.32029.2010; Ryzen 7 5800X3D; Windows 11 Pro 26200; Rust 1.100.0 MSVC; DXC 1.9.2602.17; debug. - `.\scripts\test.ps1`: 685 passed, 0 failed, 41 ignored; no `SKIPPED` GPU tests (the wave64 GPU tests run on this adapter). - `cargo test -p xcl --lib wave_size_comes_from`: `wave_size_comes_from_the_header_flag` passes. **AI use** - Claude Code (Claude Opus 5.5) ran the commands and wrote this report from the logs; I checked it before posting.
Author
Owner

@⁠WebIdentity1 on GitHub · 2026-11-24 02:06 UTC · original

Complementing the RTX 4080 report above with native AMD wave64, an Ampere run, V_READLANE_B32 as well as V_READFIRSTLANE_B32, and an old-selection negative control on de5b51027922d550a16a875677b4387ac0cb0467, with the synthetic fixture below appended to gpu/recomp/tests.rs.

The fixture takes the real console_to_dxil_in path, then dispatches one 64-thread group. The program never writes EXEC. Each thread stores V_READFIRSTLANE_B32(v0) and V_READLANE_B32(v0, 31), where v0 is the group thread ID. Expected wave32 results are (0,31) for threads 0–31 and (32,63) for threads 32–63; wave64 expects (0,31) throughout.

Tested

  • Windows 10 Home 19045, Ryzen 7 7800X3D, Rust 1.98.1 MSVC, debug, SDK DXC 1.8.2502.11, Agility 1.620.2. RTX 3090 driver 591.74 and AMD Radeon integrated graphics driver 32.0.21030.2001.
  • cargo test --locked -p xcl --lib gpu_fssm_wave32_flag_scopes_cross_lane_reads -- --nocapture --test-threads=1, separately with XCL_ADAPTER=NVIDIA GeForce RTX 3090 / XCL_REQUIRE_GPU=mesh, and XCL_ADAPTER=AMD Radeon(TM) Graphics / XCL_REQUIRE_GPU=wave64; forced split variable unset.
Runtime selection RTX 3090 AMD integrated
PR head + fixture 1 passed / 0 failed / 0 ignored; no skips 1 passed / 0 failed / 0 ignored; no skips
Same tree/fixture, only pso.rs restored from parent 508a0c7 0 passed / 1 failed / 0 ignored; no skips 0 passed / 1 failed / 0 ignored; no skips

Both old-selection runs produce 64 mismatches out of 128 readbacks with flags 0x20; the upper 32 threads read the first wave's values. Both PR runs produce zero. The flags=0 wave64 control produces zero mismatches in all four runs (split wave64 on NVIDIA, native wave64 on AMD).

  • cargo build --locked --workspace: passed. Four-thread workspace attempt (cargo test --locked --workspace --no-fail-fast -- --test-threads=4 --show-output) was incomplete, stopped by a 180 s bound. The new fixture passed, but gpu_uma_import_check_at_init, large_heaps_get_shared_pages_as_used, slots_copy_and_release and copy_descriptors_remaps_xbox_extra_cbv_srv_uav_to_pc_enum stalled. Log retained; no completed counts claimed. This resembles the existing #343/#344 interference reports, but I did not establish the cause here.
  • Separate serial diagnostic on the same tree (cargo test --locked --workspace --no-fail-fast -- --test-threads=1 --show-output): 681 passed / 1 failed / 41 ignored. Sole failure: gpu_clamp_and_omod_per_instruction, also seen on parent 508a0c7 here. Four explicit skips: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware (no native wave64); test_title_draws_with_a_root_signature_under_the_debug_layer, uploads_start_from_each_subresources_state (no debug layer). Sample inputs unset; system XGameRuntime comparison unavailable. Early-return skips remain included in Rust's pass counts. Full-suite recompiler tests selected NVIDIA; some default-device fixtures used AMD. This is not a passing four-thread suite claim.

Not tested
Retail shaders/titles, VS/PS/mesh execution or older FSSM versions. This proves the GPU consequence for the chosen synthetic header; it does not independently establish the bit's format meaning or verify the 54 retail programs in the description. No change to your runtime code is proposed here.

AI use
Codex (GPT-6) wrote the fixture, ran native Windows tests and prepared the report.

Synthetic fixture, using existing test helpers (38 lines)
#[test]
fn gpu_fssm_wave32_flag_scopes_cross_lane_reads() {
    if !gpu_ready() {
        return;
    }
    use crate::gpu::xbox::tests::{fssm, sample};
    let code = prog(&[
        ("V_READFIRSTLANE_B32", "ENC_VOP1", &[("VDST", 8), ("SRC0", V)], None),
        ("V_READLANE_B32", "ENC_VOP3", &[("VDST", 9), ("SRC0", V), ("SRC1", 159)], None),
        ("V_MOV_B32", "ENC_VOP1", &[("VDST", 4), ("SRC0", 8)], None),
        ("V_MOV_B32", "ENC_VOP1", &[("VDST", 5), ("SRC0", 9)], None),
        ("V_LSHLREV_B32", "ENC_VOP2", &[("VDST", 2), ("SRC0", 131), ("VSRC1", 0)], None),
        ("V_MOV_B32", "ENC_VOP1", &[("VDST", 3), ("SRC0", 128)], None),
        ("GLOBAL_STORE_DWORDX2", "ENC_FLAT_GLBL", &[("ADDR", 2), ("DATA", 4), ("SADDR", 0x7D)], None),
    ]);
    assert!(super::detect_wave64(&code), "no EXEC write identifies this as wave32");
    for (flags, lanes) in [(0u32, 64usize), (0x20, 32)] {
        let mut f = fssm(&code, &[(6, 5)]);
        for (offset, value) in [(0xD4, flags), (0x138, 0), (0x13C, 64), (0x140, 1), (0x144, 1)] {
            f[offset..offset + 4].copy_from_slice(&value.to_le_bytes());
        }
        let blob = sample(5, &[f]);
        let shader = super::pso::console_to_dxil_in(&blob, super::pso::Stage::Compute, 0, runner::split_wave64(), 1).unwrap();
        let out = runner::dispatch(&shader.dxil, [1, 1, 1], &[0; 128], &[0xDEAD_BEEF; 128]).unwrap();
        let mut bad = Vec::new();
        for tid in 0..64usize {
            let first = (tid / lanes * lanes) as u32;
            for (component, want) in [(0, first), (1, first + 31)] {
                let got = out[tid * 2 + component];
                if got != want {
                    bad.push(format!("thread {tid} component {component}: {got}, want {want}"));
                }
            }
        }
        println!("FSSM flags={flags:#x}: 128 cross-lane readbacks checked, {} mismatches", bad.len());
        assert!(bad.is_empty(), "flags={flags:#x}: {}", bad.join("; "));
    }
}
**@⁠WebIdentity1** on GitHub · 2026-11-24 02:06 UTC · [original](https://github.com/xcl-dev/xcl/pull/573#issuecomment-7119768762) Complementing the RTX 4080 report above with native AMD wave64, an Ampere run, `V_READLANE_B32` as well as `V_READFIRSTLANE_B32`, and an old-selection negative control on `de5b51027922d550a16a875677b4387ac0cb0467`, with the synthetic fixture below appended to `gpu/recomp/tests.rs`. The fixture takes the real `console_to_dxil_in` path, then dispatches one 64-thread group. The program never writes EXEC. Each thread stores `V_READFIRSTLANE_B32(v0)` and `V_READLANE_B32(v0, 31)`, where v0 is the group thread ID. Expected wave32 results are `(0,31)` for threads 0–31 and `(32,63)` for threads 32–63; wave64 expects `(0,31)` throughout. **Tested** - Windows 10 Home 19045, Ryzen 7 7800X3D, Rust 1.98.1 MSVC, debug, SDK DXC 1.8.2502.11, Agility 1.620.2. RTX 3090 driver 591.74 and AMD Radeon integrated graphics driver 32.0.21030.2001. - `cargo test --locked -p xcl --lib gpu_fssm_wave32_flag_scopes_cross_lane_reads -- --nocapture --test-threads=1`, separately with `XCL_ADAPTER=NVIDIA GeForce RTX 3090` / `XCL_REQUIRE_GPU=mesh`, and `XCL_ADAPTER=AMD Radeon(TM) Graphics` / `XCL_REQUIRE_GPU=wave64`; forced split variable unset. | Runtime selection | RTX 3090 | AMD integrated | |---|---|---| | PR head + fixture | 1 passed / 0 failed / 0 ignored; no skips | 1 passed / 0 failed / 0 ignored; no skips | | Same tree/fixture, only `pso.rs` restored from parent `508a0c7` | 0 passed / 1 failed / 0 ignored; no skips | 0 passed / 1 failed / 0 ignored; no skips | Both old-selection runs produce **64 mismatches out of 128 readbacks** with flags `0x20`; the upper 32 threads read the first wave's values. Both PR runs produce zero. The flags=0 wave64 control produces zero mismatches in all four runs (split wave64 on NVIDIA, native wave64 on AMD). - `cargo build --locked --workspace`: passed. Four-thread workspace attempt (`cargo test --locked --workspace --no-fail-fast -- --test-threads=4 --show-output`) was **incomplete**, stopped by a 180 s bound. The new fixture passed, but `gpu_uma_import_check_at_init`, `large_heaps_get_shared_pages_as_used`, `slots_copy_and_release` and `copy_descriptors_remaps_xbox_extra_cbv_srv_uav_to_pc_enum` stalled. Log retained; no completed counts claimed. This resembles the existing #343/#344 interference reports, but I did not establish the cause here. - Separate serial diagnostic on the same tree (`cargo test --locked --workspace --no-fail-fast -- --test-threads=1 --show-output`): **681 passed / 1 failed / 41 ignored**. Sole failure: `gpu_clamp_and_omod_per_instruction`, also seen on parent `508a0c7` here. Four explicit skips: `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` (no native wave64); `test_title_draws_with_a_root_signature_under_the_debug_layer`, `uploads_start_from_each_subresources_state` (no debug layer). Sample inputs unset; system XGameRuntime comparison unavailable. Early-return skips remain included in Rust's pass counts. Full-suite recompiler tests selected NVIDIA; some default-device fixtures used AMD. This is not a passing four-thread suite claim. **Not tested** Retail shaders/titles, VS/PS/mesh execution or older FSSM versions. This proves the GPU consequence for the chosen synthetic header; it does not independently establish the bit's format meaning or verify the 54 retail programs in the description. No change to your runtime code is proposed here. **AI use** Codex (GPT-6) wrote the fixture, ran native Windows tests and prepared the report. <details> <summary>Synthetic fixture, using existing test helpers (38 lines)</summary> ```rust #[test] fn gpu_fssm_wave32_flag_scopes_cross_lane_reads() { if !gpu_ready() { return; } use crate::gpu::xbox::tests::{fssm, sample}; let code = prog(&[ ("V_READFIRSTLANE_B32", "ENC_VOP1", &[("VDST", 8), ("SRC0", V)], None), ("V_READLANE_B32", "ENC_VOP3", &[("VDST", 9), ("SRC0", V), ("SRC1", 159)], None), ("V_MOV_B32", "ENC_VOP1", &[("VDST", 4), ("SRC0", 8)], None), ("V_MOV_B32", "ENC_VOP1", &[("VDST", 5), ("SRC0", 9)], None), ("V_LSHLREV_B32", "ENC_VOP2", &[("VDST", 2), ("SRC0", 131), ("VSRC1", 0)], None), ("V_MOV_B32", "ENC_VOP1", &[("VDST", 3), ("SRC0", 128)], None), ("GLOBAL_STORE_DWORDX2", "ENC_FLAT_GLBL", &[("ADDR", 2), ("DATA", 4), ("SADDR", 0x7D)], None), ]); assert!(super::detect_wave64(&code), "no EXEC write identifies this as wave32"); for (flags, lanes) in [(0u32, 64usize), (0x20, 32)] { let mut f = fssm(&code, &[(6, 5)]); for (offset, value) in [(0xD4, flags), (0x138, 0), (0x13C, 64), (0x140, 1), (0x144, 1)] { f[offset..offset + 4].copy_from_slice(&value.to_le_bytes()); } let blob = sample(5, &[f]); let shader = super::pso::console_to_dxil_in(&blob, super::pso::Stage::Compute, 0, runner::split_wave64(), 1).unwrap(); let out = runner::dispatch(&shader.dxil, [1, 1, 1], &[0; 128], &[0xDEAD_BEEF; 128]).unwrap(); let mut bad = Vec::new(); for tid in 0..64usize { let first = (tid / lanes * lanes) as u32; for (component, want) in [(0, first), (1, first + 31)] { let got = out[tid * 2 + component]; if got != want { bad.push(format!("thread {tid} component {component}: {got}, want {want}")); } } } println!("FSSM flags={flags:#x}: 128 cross-lane readbacks checked, {} mismatches", bad.len()); assert!(bad.is_empty(), "flags={flags:#x}: {}", bad.join("; ")); } } ``` </details>
Author
Owner

@⁠MichaelL401 on GitHub · 2026-11-24 03:43 UTC · original

Test report on NVIDIA (wave32-only), commit de5b51027922d550a16a875677b4387ac0cb0467

Tested

  • GPU: NVIDIA GeForce RTX 5080 (16 GB), driver 621.24; CPU: Ryzen 9 9950X3D, 64 GB
  • Windows 11 build 26300; Rust 1.100.0 (stable-x86_64-pc-windows-msvc), debug build; DXC 1.9.2609.5
  • .\scripts\test.ps1 (cargo test --workspace -- --test-threads=4): 681 passed, 0 failed, 41 ignored
  • SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware – the same two as on main on this card
  • The split-wave64 GPU tests (gpu_split_wave64_*, gpu_wave64_ps_*, gpu_wave64_vs_*, console_wave64_compute_through_the_pso_hook_dispatch_and_read_back) pass

Not tested

  • No smoke / regression run (this is a test-suite report only).
  • No XCL_SAMPLE_* set: game-data tests passed without running anything.

AI use

  • Tests run by me; report drafted by Claude (Claude Opus 5.5) from my log, checked by me.
**@⁠MichaelL401** on GitHub · 2026-11-24 03:43 UTC · [original](https://github.com/xcl-dev/xcl/pull/573#issuecomment-7121359865) **Test report on NVIDIA (wave32-only), commit de5b51027922d550a16a875677b4387ac0cb0467** **Tested** - GPU: NVIDIA GeForce RTX 5080 (16 GB), driver 621.24; CPU: Ryzen 9 9950X3D, 64 GB - Windows 11 build 26300; Rust 1.100.0 (stable-x86_64-pc-windows-msvc), debug build; DXC 1.9.2609.5 - `.\scripts\test.ps1` (`cargo test --workspace -- --test-threads=4`): **681 passed, 0 failed, 41 ignored** - SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` – the same two as on main on this card - The split-wave64 GPU tests (`gpu_split_wave64_*`, `gpu_wave64_ps_*`, `gpu_wave64_vs_*`, `console_wave64_compute_through_the_pso_hook_dispatch_and_read_back`) pass **Not tested** - No smoke / regression run (this is a test-suite report only). - No `XCL_SAMPLE_*` set: game-data tests passed without running anything. **AI use** - Tests run by me; report drafted by Claude (Claude Opus 5.5) from my log, checked by me.
Author
Owner

@⁠raylitebull on GitHub · 2026-11-24 10:40 UTC · original

Code/CI review only (not independently runtime-tested by me): clean merge and PR description green (just awaiting CI workflow approval). Uses the FSSM header's wave32 flag to determine program wave size with compute e2e test coverage. Recommend approving CI and merging, @⁠ivall.

**@⁠raylitebull** on GitHub · 2026-11-24 10:40 UTC · [original](https://github.com/xcl-dev/xcl/pull/573#issuecomment-7129090326) Code/CI review only (not independently runtime-tested by me): clean merge and `PR description` green (just awaiting CI workflow approval). Uses the FSSM header's `wave32` flag to determine program wave size with compute e2e test coverage. Recommend approving CI and merging, @⁠ivall.
Author
Owner

@⁠throny on GitHub · 2026-11-24 18:44 UTC · original

Rebased onto main c160d86 (now 500fd5a): #1426 conflicted in console_mesh. Besides resolving that, the direct DXIL paths #1426 added (direct_compute, direct_graphics, the direct branch of console_mesh) now take the wave size from fssm_wave64 too, so both backends agree on an FSSM program. Suite 860 / 0 / 42 and a new smoke pair are in the description; the earlier AMD confirmations were on 09b1fb0.

AI use: Claude Code (Claude Opus 5.5).

**@⁠throny** on GitHub · 2026-11-24 18:44 UTC · [original](https://github.com/xcl-dev/xcl/pull/573#issuecomment-7141080503) Rebased onto `main` `c160d86` (now `500fd5a`): #1426 conflicted in `console_mesh`. Besides resolving that, the direct DXIL paths #1426 added (`direct_compute`, `direct_graphics`, the direct branch of `console_mesh`) now take the wave size from `fssm_wave64` too, so both backends agree on an FSSM program. Suite 860 / 0 / 42 and a new smoke pair are in the description; the earlier AMD confirmations were on `09b1fb0`. AI use: Claude Code (Claude Opus 5.5).
Author
Owner

@⁠nnonno91 on GitHub · 2026-11-24 18:51 UTC · original

Independent AMD test of both compute backends at 500fd5aa026203a017b7efe60d716fa2bdc1399c.

Tested

  • AMD Radeon(TM) Graphics (Ryzen 7 9800X3D integrated GPU, driver 32.0.21042.62), Windows 11 25H2 build 26200.9974, Rust 1.100.0 MSVC, SDK DXC 1.8.2502.11, debug. XCL_ADAPTER='AMD Radeon'; the probe required native wave64 and the real D3D12 backend.
  • cargo build --workspace --locked passed. cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --show-output reported 860 passed, 0 failed, 42 ignored, with one GPU skip included in the pass count (heap_window_out_of_memory_falls_back_to_the_switch_form, heap windows off). Both new in-tree tests and the bundled title test passed.
  • cargo test --locked -p xcl --test fssm_wave_probe -- --exact fssm_wave_size_through_both_compilers --nocapture --test-threads=1 ran a temporary adaptation of the in-tree PSO-hook test. I ran it in separate processes with XCL_DIRECT_DXIL=0 and =1 at the PR head and base c160d86ef2efe3a07e4dfb473e4fa72eafb413c0, with XCL_TRANSLATED_CACHE=0, XCL_PSO_DISK_CACHE=0, and separate DXIL caches. Each of the four runs passed, with 0 ignored and 0 skips.

The two synthetic containers held identical compute code with no EXEC writes and varied only the FSSM wave32 flag. All 64 output records per container were checked through the real D3D12 pipeline. Threads 0–31 returned first-lane ID 0 in every run.

Build and compiler First-lane ID for threads 32–63, flag clear First-lane ID for threads 32–63, flag set
Base, HLSL 0 0
Base, direct DXIL 0 0
PR, HLSL 0 32
PR, direct DXIL 0 32

The compiler counters confirmed 2 direct compute translations and 0 HLSL fallbacks in each direct run. The GPU readback also checked each output's own thread ID.

Not tested

Retail shaders or titles, graphics and mesh paths, other adapters, or performance.

AI use

OpenAI Codex (GPT-6 family, exact variant unavailable) adapted the temporary probe, ran the checks, and drafted the report.

**@⁠nnonno91** on GitHub · 2026-11-24 18:51 UTC · [original](https://github.com/xcl-dev/xcl/pull/573#issuecomment-7141250747) Independent AMD test of both compute backends at `500fd5aa026203a017b7efe60d716fa2bdc1399c`. **Tested** - AMD Radeon(TM) Graphics (Ryzen 7 9800X3D integrated GPU, driver 32.0.21042.62), Windows 11 25H2 build 26200.9974, Rust 1.100.0 MSVC, SDK DXC 1.8.2502.11, debug. `XCL_ADAPTER='AMD Radeon'`; the probe required native wave64 and the real D3D12 backend. - `cargo build --workspace --locked` passed. `cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --show-output` reported **860 passed, 0 failed, 42 ignored**, with one GPU skip included in the pass count (`heap_window_out_of_memory_falls_back_to_the_switch_form`, heap windows off). Both new in-tree tests and the bundled title test passed. - `cargo test --locked -p xcl --test fssm_wave_probe -- --exact fssm_wave_size_through_both_compilers --nocapture --test-threads=1` ran a temporary adaptation of the in-tree PSO-hook test. I ran it in separate processes with `XCL_DIRECT_DXIL=0` and `=1` at the PR head and base `c160d86ef2efe3a07e4dfb473e4fa72eafb413c0`, with `XCL_TRANSLATED_CACHE=0`, `XCL_PSO_DISK_CACHE=0`, and separate DXIL caches. Each of the four runs passed, with 0 ignored and 0 skips. The two synthetic containers held identical compute code with no EXEC writes and varied only the FSSM wave32 flag. All 64 output records per container were checked through the real D3D12 pipeline. Threads 0–31 returned first-lane ID `0` in every run. | Build and compiler | First-lane ID for threads 32–63, flag clear | First-lane ID for threads 32–63, flag set | | --- | ---: | ---: | | Base, HLSL | 0 | 0 | | Base, direct DXIL | 0 | 0 | | PR, HLSL | 0 | 32 | | PR, direct DXIL | 0 | 32 | The compiler counters confirmed **2 direct compute translations and 0 HLSL fallbacks** in each direct run. The GPU readback also checked each output's own thread ID. **Not tested** Retail shaders or titles, graphics and mesh paths, other adapters, or performance. **AI use** OpenAI Codex (GPT-6 family, exact variant unavailable) adapted the temporary probe, ran the checks, and drafted the report.
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 05:42 UTC · original

PR #573 — Intel Arc A770 compatibility

Tested

  • Clean detached head b8b4135b7261c9b50cff1abf92a3b03cc2e8e6d2. PR #573 remained open at that SHA before and after the run, with no prior Intel Arc result in the PR discussion.
  • STOR-WINLAB, Intel Arc A770 driver 32.0.101.9175, AMD Ryzen 7 3800X, Windows 11 Enterprise Evaluation 25H2 x64 build 26200.9974, Rust and Cargo 1.100.0 (x86_64-pc-windows-msvc), DXC and DXIL 1.9.2609.5, unoptimized test profile.
  • cargo test --locked -p xcl --test gpu_compute_e2e --no-run exited 0 outside the Arc mutex.
  • Under Invoke-ArcTest.ps1 with XCL_ADAPTER=A770 and pinned XCL_DXC_DIR, ran the prebuilt gpu_compute_e2e binary in separate processes for each backend with console_compute_without_an_exec_write_has_the_wave_size_of_its_header --exact --nocapture --test-threads=1:
Backend Passed Failed Ignored GPU skips Filtered out Time
HLSL/DXC (XCL_DIRECT_DXIL=0) 1 0 0 0 4 1.07 s
Direct DXIL (XCL_DIRECT_DXIL=1) 1 0 0 0 4 0.54 s
  • Each backend checked 128 (first-lane value, thread ID) pairs through the real D3D12.X compute pipeline: FSSM flags 0x00 returned 0 for all 64 threads under split wave64; flags 0x20 returned 0 for threads 0–31 and 32 for threads 32–63 under wave32. Both Direct DXIL shaders ran with zero HLSL fallbacks.

Not tested

Native wave64, other adapters, graphics stages, other FSSM versions, release builds, the full workspace suite, and retail or main-vs-PR smoke runs.

AI use

T3 Code / Codex (gpt-6.2-sol) ran the fixture, verified the logs, and wrote this report. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against direct-0.stdout.log and direct-1.stdout.log and published.

**@⁠JJAutoCompare** on GitHub · 2026-11-25 05:42 UTC · [original](https://github.com/xcl-dev/xcl/pull/573#issuecomment-7154063487) # PR #573 — Intel Arc A770 compatibility **Tested** - Clean detached head `b8b4135b7261c9b50cff1abf92a3b03cc2e8e6d2`. PR #573 remained open at that SHA before and after the run, with no prior Intel Arc result in the PR discussion. - STOR-WINLAB, Intel Arc A770 driver `32.0.101.9175`, AMD Ryzen 7 3800X, Windows 11 Enterprise Evaluation 25H2 x64 build `26200.9974`, Rust and Cargo `1.100.0` (`x86_64-pc-windows-msvc`), DXC and DXIL `1.9.2609.5`, unoptimized test profile. - `cargo test --locked -p xcl --test gpu_compute_e2e --no-run` exited `0` outside the Arc mutex. - Under `Invoke-ArcTest.ps1` with `XCL_ADAPTER=A770` and pinned `XCL_DXC_DIR`, ran the prebuilt `gpu_compute_e2e` binary in separate processes for each backend with `console_compute_without_an_exec_write_has_the_wave_size_of_its_header --exact --nocapture --test-threads=1`: | Backend | Passed | Failed | Ignored | GPU skips | Filtered out | Time | |---|---:|---:|---:|---:|---:|---:| | HLSL/DXC (`XCL_DIRECT_DXIL=0`) | 1 | 0 | 0 | 0 | 4 | 1.07 s | | Direct DXIL (`XCL_DIRECT_DXIL=1`) | 1 | 0 | 0 | 0 | 4 | 0.54 s | - Each backend checked 128 `(first-lane value, thread ID)` pairs through the real D3D12.X compute pipeline: FSSM flags `0x00` returned `0` for all 64 threads under split wave64; flags `0x20` returned `0` for threads 0–31 and `32` for threads 32–63 under wave32. Both Direct DXIL shaders ran with zero HLSL fallbacks. **Not tested** Native wave64, other adapters, graphics stages, other FSSM versions, release builds, the full workspace suite, and retail or main-vs-PR smoke runs. **AI use** T3 Code / Codex (`gpt-6.2-sol`) ran the fixture, verified the logs, and wrote this report. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against `direct-0.stdout.log` and `direct-1.stdout.log` and published.
Author
Owner

@⁠raylitebull on GitHub · 2026-11-25 10:46 UTC · original

b8b4135 is MERGEABLE/CLEAN with green CI.

Needs an exact-head AMD GPU verification pass on b8b4135 (previous AMD runs were on pre-rebase commits) before merge.

**@⁠raylitebull** on GitHub · 2026-11-25 10:46 UTC · [original](https://github.com/xcl-dev/xcl/pull/573#issuecomment-7160164255) `b8b4135` is `MERGEABLE/CLEAN` with green CI. Needs an exact-head AMD GPU verification pass on `b8b4135` (previous AMD runs were on pre-rebase commits) before merge.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 13:18 UTC · original

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

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 13:18 UTC · [original](https://github.com/xcl-dev/xcl/pull/573#issuecomment-7163588476) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
Author
Owner

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

Independent test report for head b8b4135b7261c9b50cff1abf92a3b03cc2e8e6d2 on an AMD Radeon RX 6600 (8 GB VRAM, RDNA2, native wave64).

Tested

  • Hardware: AMD Radeon RX 6600 (8146 MiB VRAM, RDNA2, native wave64 + mesh shaders, 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 -- wave --test-threads=4: 53 passed, 0 failed, 3 ignored (0 skipped).

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 #573 (b8b4135):

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

Not tested: full workspace test suite on this head, NVIDIA/Intel GPUs, Linux/Wine, or world load past the 60 s smoke window.

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:45 UTC · [original](https://github.com/xcl-dev/xcl/pull/573#issuecomment-7168473353) Independent test report for head `b8b4135b7261c9b50cff1abf92a3b03cc2e8e6d2` on an **AMD Radeon RX 6600** (8 GB VRAM, RDNA2, native wave64). **Tested** - Hardware: AMD Radeon RX 6600 (8146 MiB VRAM, RDNA2, native wave64 + mesh shaders, 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 -- wave --test-threads=4`: **53 passed, 0 failed, 3 ignored** (`0` skipped). **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 `#573` (`b8b4135`): ``` xcl-smoke v1 commit: b8b4135b7261c9b50cff1abf92a3b03cc2e8e6d2 gpu: AMD Radeon RX 6600 title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1475 (PresentX 1475) presents per 2 s (last 3): 60 60 15 device removals: 0 crashes: 0 peak commit: 18905 MB ``` **Not tested:** full workspace test suite on this head, NVIDIA/Intel GPUs, Linux/Wine, or world load past the 60 s smoke window. **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

@⁠oni-swr on GitHub · 2026-11-25 18:05 UTC · original

AMD RX 7800 XT run of b8b4135b7261c9b50cff1abf92a3b03cc2e8e6d2 (PR head, as-is).

Tested

  • AMD Radeon RX 7800 XT 16 GB (RDNA3, native 64-lane waves), driver 32.0.31035.1003; Ryzen 7 5700X3D; Windows 11 Pro 26200; Rust 1.100.0 MSVC; Windows SDK DXC; debug build
  • cargo test --workspace --no-fail-fast -- --test-threads=4: lib 1078 passed, 1 failed, 26 ignored; every other test binary passed, including gpu_compute_e2e. The new gpu::xbox::tests::wave_size_comes_from_the_header_flag and console_compute_without_an_exec_write_has_the_wave_size_of_its_header passed.
  • The 1 failure: gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 fails (seed 722: res[30] = 0x1, CPU 0x7fffffff); it fails the same way on main in my run, so it is not caused by this PR.
  • main (origin/main 68a284a596bd558b6bd9db6eedda6d6aa178c360) in the same setup: 1218 passed, 2 failed (the fuzz test and lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier).

Not tested

  • scripts/smoke.ps1 regression run on a real title, so the runtime-change requirement is not met by this report.
  • NVIDIA, Intel (other reports cover them), other AMD generations.

AI use

  • Test report written and run by Claude Code (Claude Sonnet 5.5); no code changed.
**@⁠oni-swr** on GitHub · 2026-11-25 18:05 UTC · [original](https://github.com/xcl-dev/xcl/pull/573#issuecomment-7170415614) AMD RX 7800 XT run of `b8b4135b7261c9b50cff1abf92a3b03cc2e8e6d2` (PR head, as-is). **Tested** - AMD Radeon RX 7800 XT 16 GB (RDNA3, native 64-lane waves), driver 32.0.31035.1003; Ryzen 7 5700X3D; Windows 11 Pro 26200; Rust 1.100.0 MSVC; Windows SDK DXC; debug build - `cargo test --workspace --no-fail-fast -- --test-threads=4`: lib **1078 passed, 1 failed, 26 ignored**; every other test binary passed, including `gpu_compute_e2e`. The new `gpu::xbox::tests::wave_size_comes_from_the_header_flag` and `console_compute_without_an_exec_write_has_the_wave_size_of_its_header` passed. - The 1 failure: `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` fails (seed 722: `res[30] = 0x1, CPU 0x7fffffff`); it fails the same way on `main` in my run, so it is not caused by this PR. - `main` (`origin/main` `68a284a596bd558b6bd9db6eedda6d6aa178c360`) in the same setup: 1218 passed, 2 failed (the fuzz test and `lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier`). **Not tested** - `scripts/smoke.ps1` regression run on a real title, so the runtime-change requirement is not met by this report. - NVIDIA, Intel (other reports cover them), other AMD generations. **AI use** - Test report written and run by Claude Code (Claude Sonnet 5.5); no code changed.
This discussion has been locked. Commenting is limited to contributors.
No description provided.