Tests: verify direct DXIL vs HLSL GPU parity for wave, LDS atomic, and MIMG ops #1778

Open
github-bot wants to merge 2 commits from github-bot/gh-1778 into main AGit
Owner

@⁠thiagocalile on GitHub · 2026-11-24 20:35 UTC · original
thiagocalile:tests-dxil-hlsl-gpu-parity → main · +333 −0 · 1 files · 2 commits · open

Adds GPU differential parity tests between the direct RDNA2 → DXIL translator (xcl::gpu::dxil::kernel) and the HLSL + DXC path (xcl::gpu::recomp) across native wave64, split wave64, and wave32. Covers cross-lane/DPP wave ops, LDS atomics + barriers, and MIMG texture ops + 32-bit image atomics. No runtime or recompiler source files are changed.

What is in it

  • crates/xcl/tests/gpu_dxil_parity.rs (new integration test, 333 lines):
    • direct_dxil_cross_lane_and_dpp_parity: asserts bit-exact SGPR/VGPR parity between direct DXIL (validated by dxil.dll) and HLSL+DXC for v_readlane_b32 (low and high half), v_readfirstlane_b32 under divergent EXEC, v_writelane_b32, ds_swizzle_b32 (quad reverse and XOR-1), ds_bpermute_b32, v_permlane16_b32 (default and FI/BC), v_permlanex16_b32, and VOP1_VOP_DPP16 / VOP1_VOP_DPP8.
    • direct_dxil_lds_atomics_and_barrier_parity: asserts bit-exact VGPR parity for per-lane and multi-lane contention LDS atomics (add, sub, and, or, xor, umin/umax, smin/smax, wrxchg, cmpst, inc, dec), s_barrier, and divergent EXEC masking.
    • direct_dxil_mimg_image_ops_and_atomics_parity: asserts bit-exact VGPR and UAV texture readback parity for image_load, image_store, image_gather4_lz, and 32-bit image_atomic_* (add, sub, and, or, xor, swap GLC=1/0, inc, dec, cmpswap, smin, smax, and 1×1 contention).

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 -p xcl --test gpu_dxil_parity -- --nocapture: 3 passed, 0 failed, 0 ignored (0.45s; native wave64, split wave64, and wave32 all executed on hardware).
  • XCL_ADAPTER=radeon cargo test --workspace --no-fail-fast -- --test-threads=4: 889 passed, 3 failed, 42 ignored.
    • The 3 failures are pre-existing on main (b9b6ea6) on this RX 6600 (placed_title_textures_share_vram_and_preserve_pixels: 3D mip subresource mismatch, plus 2 mutex-poison cascades transitions_apply_when_their_list_is_submitted and d32s8_targets_take_their_own_size_of_video_memory; tracked by #1028).
    • SKIPPED (not counted as coverage): heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows, shaders::tests::pso_measurement_compiles_an_exact_synthetic_record: cannot disable the driver cache (0x887A002D) (plus D3D12 debug-layer tests skip because d3d12SDKLayers.dll is not installed).

Not tested

  • NVIDIA / Intel GPUs, D3D12 debug layer, retail title smoke run (test-only PR; no runtime code changed).

AI use

  • Antigravity (Gemini 4 Neon) wrote crates/xcl/tests/gpu_dxil_parity.rs, ran the targeted and full workspace test suites on my RX 6600, and drafted this PR description; I reviewed the diff and test output before opening the PR.
**@⁠thiagocalile** on GitHub · 2026-11-24 20:35 UTC · [original](https://github.com/xcl-dev/xcl/pull/1778) `thiagocalile:tests-dxil-hlsl-gpu-parity` → `main` · +333 −0 · 1 files · 2 commits · open Adds GPU differential parity tests between the direct RDNA2 → DXIL translator (`xcl::gpu::dxil::kernel`) and the HLSL + DXC path (`xcl::gpu::recomp`) across native wave64, split wave64, and wave32. Covers cross-lane/DPP wave ops, LDS atomics + barriers, and MIMG texture ops + 32-bit image atomics. No runtime or recompiler source files are changed. **What is in it** - `crates/xcl/tests/gpu_dxil_parity.rs` (new integration test, 333 lines): - `direct_dxil_cross_lane_and_dpp_parity`: asserts bit-exact SGPR/VGPR parity between direct DXIL (validated by `dxil.dll`) and HLSL+DXC for `v_readlane_b32` (low and high half), `v_readfirstlane_b32` under divergent `EXEC`, `v_writelane_b32`, `ds_swizzle_b32` (quad reverse and XOR-1), `ds_bpermute_b32`, `v_permlane16_b32` (default and `FI`/`BC`), `v_permlanex16_b32`, and `VOP1_VOP_DPP16` / `VOP1_VOP_DPP8`. - `direct_dxil_lds_atomics_and_barrier_parity`: asserts bit-exact VGPR parity for per-lane and multi-lane contention LDS atomics (`add`, `sub`, `and`, `or`, `xor`, `umin`/`umax`, `smin`/`smax`, `wrxchg`, `cmpst`, `inc`, `dec`), `s_barrier`, and divergent `EXEC` masking. - `direct_dxil_mimg_image_ops_and_atomics_parity`: asserts bit-exact VGPR and UAV texture readback parity for `image_load`, `image_store`, `image_gather4_lz`, and 32-bit `image_atomic_*` (`add`, `sub`, `and`, `or`, `xor`, `swap` `GLC=1`/`0`, `inc`, `dec`, `cmpswap`, `smin`, `smax`, and 1×1 contention). **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 -p xcl --test gpu_dxil_parity -- --nocapture`: **3 passed, 0 failed, 0 ignored** (`0.45s`; native wave64, split wave64, and wave32 all executed on hardware). - `XCL_ADAPTER=radeon cargo test --workspace --no-fail-fast -- --test-threads=4`: **889 passed, 3 failed, 42 ignored**. - The 3 failures are pre-existing on `main` (`b9b6ea6`) on this RX 6600 (`placed_title_textures_share_vram_and_preserve_pixels`: 3D mip subresource mismatch, plus 2 mutex-poison cascades `transitions_apply_when_their_list_is_submitted` and `d32s8_targets_take_their_own_size_of_video_memory`; tracked by #1028). - `SKIPPED` (not counted as coverage): `heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows`, `shaders::tests::pso_measurement_compiles_an_exact_synthetic_record: cannot disable the driver cache (0x887A002D)` (plus D3D12 debug-layer tests skip because `d3d12SDKLayers.dll` is not installed). **Not tested** - NVIDIA / Intel GPUs, D3D12 debug layer, retail title smoke run (test-only PR; no runtime code changed). **AI use** - Antigravity (Gemini 4 Neon) wrote `crates/xcl/tests/gpu_dxil_parity.rs`, ran the targeted and full workspace test suites on my RX 6600, and drafted this PR description; I reviewed the diff and test output before opening the PR.
Add integration test crates/xcl/tests/gpu_dxil_parity.rs comparing the
direct RDNA2 -> DXIL translator against HLSL + DXC on the GPU across
native wave64, split wave64, and wave32:

- direct_dxil_cross_lane_and_dpp_parity: v_readlane_b32 (low/high half),
  v_readfirstlane_b32 (under divergent EXEC), v_writelane_b32,
  ds_swizzle_b32 (quad reverse and XOR-1), ds_bpermute_b32,
  v_permlane16_b32 (default and FI/BC), v_permlanex16_b32, and
  VOP1_VOP_DPP16 / VOP1_VOP_DPP8.
- direct_dxil_lds_atomics_and_barrier_parity: per-lane and multi-lane
  contention LDS atomics (add, sub, and, or, xor, umin/umax, smin/smax,
  wrxchg, cmpst, inc, dec), s_barrier, and divergent EXEC masking.
- direct_dxil_mimg_image_ops_and_atomics_parity: image_load, image_store,
  image_gather4_lz, and 32-bit image_atomic_* (add, sub, and, or, xor,
  swap GLC=1/0, inc, dec, cmpswap, smin, smax, contention) checking both
  VGPRs and UAV texture readbacks byte-for-byte.

Assisted-by: Antigravity (Gemini 4 Neon)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:04:44 +00:00
Author
Owner

@⁠Ctrl-Alt-Haze on GitHub · 2026-11-24 21:20 UTC · original

Tested (head b20b9577231644606e0bf2b65eb7b50e3970b32a, NVIDIA GeForce RTX 5070 Ti, driver 32.0.16.2135, Wave32, AMD Ryzen 9 5950X, Windows 11 Build 26340, rustc 1.99.1, DXC 1.8.2502.11, debug, synthetic tests only):

  • .\scripts\test.ps1 (cargo build --workspace + cargo test --workspace -- --test-threads=4): 866 passed, 2 failed, 26 ignored (fail-fast stopped at tests\gpu_dxil_parity.rs before remaining integration test binaries ran; SKIPPED GPU tests seen: 2 (no wave64) — gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware; 1 (no heap windows) — heap_window_out_of_memory_falls_back_to_the_switch_form).

tests\gpu_dxil_parity.rs (1 passed, 2 failed):

  • direct_dxil_cross_lane_and_dpp_parity: ok
  • direct_dxil_lds_atomics_and_barrier_parity: FAILED at crates\xcl\tests\gpu_dxil_parity.rs:83:89:
    lds_atomics_and_barrier/split-w64: run direct: CreateComputePipelineState: Not enough memory resources are available to complete this operation. (0x8007000E)
  • direct_dxil_mimg_image_ops_and_atomics_parity: FAILED at crates\xcl\tests\gpu_dxil_parity.rs:90:17:
    mimg_ops_and_atomics/wave32: lane 0 v7: left: 0, right: 1065353216 (1.0f32 in the 4th component of IMAGE_LOAD DMASK 0xF)

AI use: Antigravity (Google DeepMind; exact model version not exposed to agent) ran the test suite and extracted the log results.

**@⁠Ctrl-Alt-Haze** on GitHub · 2026-11-24 21:20 UTC · [original](https://github.com/xcl-dev/xcl/pull/1778#issuecomment-7144803548) **Tested** (head `b20b9577231644606e0bf2b65eb7b50e3970b32a`, NVIDIA GeForce RTX 5070 Ti, driver 32.0.16.2135, Wave32, AMD Ryzen 9 5950X, Windows 11 Build 26340, `rustc 1.99.1`, DXC `1.8.2502.11`, debug, synthetic tests only): - `.\scripts\test.ps1` (`cargo build --workspace` + `cargo test --workspace -- --test-threads=4`): **866 passed, 2 failed, 26 ignored** (fail-fast stopped at `tests\gpu_dxil_parity.rs` before remaining integration test binaries ran; `SKIPPED` GPU tests seen: `2 (no wave64)` — `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`; `1 (no heap windows)` — `heap_window_out_of_memory_falls_back_to_the_switch_form`). `tests\gpu_dxil_parity.rs` (`1 passed, 2 failed`): - `direct_dxil_cross_lane_and_dpp_parity`: ok - `direct_dxil_lds_atomics_and_barrier_parity`: FAILED at `crates\xcl\tests\gpu_dxil_parity.rs:83:89`: `lds_atomics_and_barrier/split-w64: run direct: CreateComputePipelineState: Not enough memory resources are available to complete this operation. (0x8007000E)` - `direct_dxil_mimg_image_ops_and_atomics_parity`: FAILED at `crates\xcl\tests\gpu_dxil_parity.rs:90:17`: `mimg_ops_and_atomics/wave32: lane 0 v7: left: 0, right: 1065353216` (`1.0f32` in the 4th component of `IMAGE_LOAD` `DMASK 0xF`) AI use: Antigravity (Google DeepMind; exact model version not exposed to agent) ran the test suite and extracted the log results.
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-24 22:21 UTC · original

Another RTX 5070 Ti, to help split the two failures above by GPU, driver and DXC. Same head b20b957.

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only), driver 616.64 (32.0.16.1664, older than @⁠Ctrl-Alt-Haze's 32.0.16.2135), Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug.
  • cargo test -p xcl --test gpu_dxil_parity -- --test-threads=1, 5 runs alone on the machine: 2 passed, 1 failed every time (plus the same failure in 2 full-suite runs).
    • direct_dxil_lds_atomics_and_barrier_parity fails 7 of 7, the same way as above: lds_atomics_and_barrier/split-w64: run direct: CreateComputePipelineState: ... (0x8007000E).
    • direct_dxil_mimg_image_ops_and_atomics_parity passes 7 of 7.
    • direct_dxil_cross_lane_and_dpp_parity passes.
  • Same head on the AMD Radeon iGPU of the 9800X3D (RDNA2, native wave64, XCL_ADAPTER=radeon): all 3 pass; full suite 892 passed, 0 failed, 42 ignored.

So on this card the split-w64 LDS E_OUTOFMEMORY happens with DXC 1.9 and an older driver too. It looks tied to the RTX 5070 Ti (Blackwell) rather than DXC 1.8 or driver 621.35, while the RTX 3060 above passes it. The IMAGE_LOAD alpha mismatch does not happen here, so that one may be the newer driver.

Not tested

  • Driver 621.35 on this card, a release build.

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-24 22:21 UTC · [original](https://github.com/xcl-dev/xcl/pull/1778#issuecomment-7146123852) Another RTX 5070 Ti, to help split the two failures above by GPU, driver and DXC. Same head `b20b957`. **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only), driver 616.64 (32.0.16.1664, older than @⁠Ctrl-Alt-Haze's 32.0.16.2135), Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug. - `cargo test -p xcl --test gpu_dxil_parity -- --test-threads=1`, 5 runs alone on the machine: **2 passed, 1 failed** every time (plus the same failure in 2 full-suite runs). - `direct_dxil_lds_atomics_and_barrier_parity` fails 7 of 7, the same way as above: `lds_atomics_and_barrier/split-w64: run direct: CreateComputePipelineState: ... (0x8007000E)`. - `direct_dxil_mimg_image_ops_and_atomics_parity` passes 7 of 7. - `direct_dxil_cross_lane_and_dpp_parity` passes. - Same head on the AMD Radeon iGPU of the 9800X3D (RDNA2, native wave64, `XCL_ADAPTER=radeon`): all 3 pass; full suite 892 passed, 0 failed, 42 ignored. So on this card the `split-w64` LDS `E_OUTOFMEMORY` happens with DXC 1.9 and an older driver too. It looks tied to the RTX 5070 Ti (Blackwell) rather than DXC 1.8 or driver 621.35, while the RTX 3060 above passes it. The `IMAGE_LOAD` alpha mismatch does not happen here, so that one may be the newer driver. **Not tested** - Driver 621.35 on this card, a release build. **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Author
Owner

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

Independent Windows 11 + 8 GB Ampere (wave32) --release verification of exact head b20b9577231644606e0bf2b65eb7b50e3970b32a (merge-base b9b6ea6): all 3 new parity tests pass on RTX 3060 Ti with driver 621.01 and DXC 1.9.2602.17.

This adds a data point between the RTX 5070 Ti (621.35, DXC 1.8.2502.11) failure and the RTX 3060 (610.88, DXC 1.9.2602.17, debug) pass above: on the 621.xx driver branch (621.01) paired with Ampere + DXC 1.9.2602.17 (--release), both wave32 and split-w64 pass cleanly.

Tested

  • Hardware / toolchain: Windows 11 Build 26200, AMD Ryzen 5 5500, 31.8 GB RAM, NVIDIA GeForce RTX 3060 Ti (8024 MiB VRAM, Ampere, wave32 only), driver 32.0.16.2101 (621.01), rustc 1.100.0 (0ef1bc386 2026-11-09) (x86_64-pc-windows-msvc), DXC 1.9.2602.17 (21d28f72) / dxil.dll 1.9.2602.17, --release.
  • Targeted (cargo test -p xcl --test gpu_dxil_parity --release -- --nocapture --test-threads=1): 3 passed, 0 failed, 0 ignored (0.99 s, 0 SKIPPED; native-w64 omitted on wave32):
    • direct_dxil_cross_lane_and_dpp_parity — ok
    • direct_dxil_lds_atomics_and_barrier_parity — ok
    • direct_dxil_mimg_image_ops_and_atomics_parity — ok
  • Full workspace suite (cargo test --workspace --release --no-fail-fast -- --test-threads=4 --nocapture): 892 passed, 0 failed, 42 ignored (+3 over merge-base b9b6ea6's 889/0/42). Expected host SKIPPED lines: 2 wave64 (gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware), 1 driver cache disable (pso_measurement_compiles_an_exact_synthetic_record), 2 D3D12 debug layer (test_title_draws_with_a_root_signature_under_the_debug_layer, uploads_start_from_each_subresources_state), 1 heap windows (heap_window_out_of_memory_falls_back_to_the_switch_form).

Not tested: native wave64, DXC 1.8.2502.11, Blackwell/AMD/Intel GPUs, debug build, or retail title smoke (test-only PR).

AI use: Antigravity (Gemini 4 Neon) built and ran the --release targeted and workspace test suites locally and drafted this report from the captured logs.

**@⁠LocranKing** on GitHub · 2026-11-24 22:24 UTC · [original](https://github.com/xcl-dev/xcl/pull/1778#issuecomment-7146185188) Independent Windows 11 + 8 GB Ampere (wave32) `--release` verification of exact head `b20b9577231644606e0bf2b65eb7b50e3970b32a` (merge-base `b9b6ea6`): **all 3 new parity tests pass on RTX 3060 Ti with driver `621.01` and DXC `1.9.2602.17`**. This adds a data point between the RTX 5070 Ti (`621.35`, DXC `1.8.2502.11`) failure and the RTX 3060 (`610.88`, DXC `1.9.2602.17`, debug) pass above: on the `621.xx` driver branch (`621.01`) paired with Ampere + DXC `1.9.2602.17` (`--release`), both `wave32` and `split-w64` pass cleanly. **Tested** - **Hardware / toolchain:** Windows 11 Build `26200`, AMD Ryzen 5 5500, 31.8 GB RAM, NVIDIA GeForce RTX 3060 Ti (8024 MiB VRAM, Ampere, wave32 only), driver `32.0.16.2101` (`621.01`), `rustc 1.100.0 (0ef1bc386 2026-11-09)` (`x86_64-pc-windows-msvc`), DXC `1.9.2602.17 (21d28f72)` / `dxil.dll 1.9.2602.17`, `--release`. - **Targeted (`cargo test -p xcl --test gpu_dxil_parity --release -- --nocapture --test-threads=1`):** **3 passed, 0 failed, 0 ignored** (`0.99 s`, `0 SKIPPED`; `native-w64` omitted on wave32): - `direct_dxil_cross_lane_and_dpp_parity` — `ok` - `direct_dxil_lds_atomics_and_barrier_parity` — `ok` - `direct_dxil_mimg_image_ops_and_atomics_parity` — `ok` - **Full workspace suite (`cargo test --workspace --release --no-fail-fast -- --test-threads=4 --nocapture`):** **892 passed, 0 failed, 42 ignored** (`+3` over merge-base `b9b6ea6`'s `889/0/42`). Expected host `SKIPPED` lines: `2` wave64 (`gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`), `1` driver cache disable (`pso_measurement_compiles_an_exact_synthetic_record`), `2` D3D12 debug layer (`test_title_draws_with_a_root_signature_under_the_debug_layer`, `uploads_start_from_each_subresources_state`), `1` heap windows (`heap_window_out_of_memory_falls_back_to_the_switch_form`). **Not tested:** native wave64, DXC `1.8.2502.11`, Blackwell/AMD/Intel GPUs, debug build, or retail title smoke (test-only PR). **AI use:** Antigravity (`Gemini 4 Neon`) built and ran the `--release` targeted and workspace test suites locally and drafted this report from the captured logs.
Author
Owner

@⁠PHeitor1 on GitHub · 2026-11-24 22:49 UTC · original

On the lds_atomics_and_barrier/split-w64 0x8007000E (RTX 5070 Ti reports above): it fails 3 of 3 here too, on an RTX 5060 Ti (NVIDIA 621.24, DXC 1.9.2602.17, debug, this PR's test file at b20b957 on main 689f2db). The trigger is the LDS subtract: the driver refuses a pipeline with a groupshared atomic add of a negated, non-constant value, also in a few lines of plain HLSL compiled by DXC. With ds_sub_u32 translated as a compare-exchange loop, the test passes 3 of 3 here. Details and the patch: #1679 and #1679

So it is not something this PR's test does wrong.

direct_dxil_mimg_image_ops_and_atomics_parity also fails here, with and without that patch (wave32: lane 0 v7, 0 against 1.0), as on the 5070 Ti with 32.0.16.2135. I have not looked into that one.

Not tested: the whole suite of this PR, another driver or GPU.

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

**@⁠PHeitor1** on GitHub · 2026-11-24 22:49 UTC · [original](https://github.com/xcl-dev/xcl/pull/1778#issuecomment-7146685170) On the `lds_atomics_and_barrier/split-w64` `0x8007000E` (RTX 5070 Ti reports above): it fails 3 of 3 here too, on an RTX 5060 Ti (NVIDIA 621.24, DXC 1.9.2602.17, debug, this PR's test file at `b20b957` on `main` `689f2db`). The trigger is the LDS subtract: the driver refuses a pipeline with a groupshared atomic add of a negated, non-constant value, also in a few lines of plain HLSL compiled by DXC. With `ds_sub_u32` translated as a compare-exchange loop, the test passes 3 of 3 here. Details and the patch: https://git.gtahub.st/github/xcl-dev--xcl/pulls/1679 and https://git.gtahub.st/github/xcl-dev--xcl/pulls/1679 So it is not something this PR's test does wrong. `direct_dxil_mimg_image_ops_and_atomics_parity` also fails here, with and without that patch (`wave32: lane 0 v7`, 0 against 1.0), as on the 5070 Ti with 32.0.16.2135. I have not looked into that one. **Not tested:** the whole suite of this PR, another driver or GPU. _Run and written with Claude Code (Claude Opus 5.5)._
Author
Owner

@⁠vitor127wt on GitHub · 2026-11-24 22:56 UTC · original

All three new parity tests passed on an RTX 5070 Ti under Proton at the exact PR head b20b9577231644606e0bf2b65eb7b50e3970b32a.

Exact test Result
direct_dxil_cross_lane_and_dpp_parity Pass, 1.60 s
direct_dxil_lds_atomics_and_barrier_parity Pass, 1.00 s
direct_dxil_mimg_image_ops_and_atomics_parity Pass, 1.06 s

3 passed, 0 failed, 0 ignored, 0 skipped. Each run filtered out the other two tests. The adapter exposed 32-lane subgroups, so these tests covered wave32 and split wave64. This adds a Proton data point for the Windows reports above.

cargo test --locked --target x86_64-pc-windows-gnullvm -p xcl --test gpu_dxil_parity --no-run --message-format=json -j 3
wine <gpu_dxil_parity.exe> <exact-test> --exact --test-threads=1 --nocapture

RTX 5070 Ti (16 GB, driver 620.73.04), Ryzen 7 9700X, 32 GB DDR5, CachyOS 7.3.5-2-cachyos, Proton Experimental experimental-11.0-20261112-x86_64, vkd3d-proton ec20719452e9, dxil-spirv 7c048638ab59, Rust 1.100.0, LLVM-MinGW 20261117, DXC 1.9.2609.5. One fresh Wine prefix per test.

AI use — OpenAI Codex (GPT-6, exact variant unavailable) ran the tests and drafted this report.

**@⁠vitor127wt** on GitHub · 2026-11-24 22:56 UTC · [original](https://github.com/xcl-dev/xcl/pull/1778#issuecomment-7146829253) All three new parity tests passed on an RTX 5070 Ti under Proton at the exact PR head `b20b9577231644606e0bf2b65eb7b50e3970b32a`. | Exact test | Result | | --- | --- | | `direct_dxil_cross_lane_and_dpp_parity` | Pass, 1.60 s | | `direct_dxil_lds_atomics_and_barrier_parity` | Pass, 1.00 s | | `direct_dxil_mimg_image_ops_and_atomics_parity` | Pass, 1.06 s | 3 passed, 0 failed, 0 ignored, 0 skipped. Each run filtered out the other two tests. The adapter exposed 32-lane subgroups, so these tests covered wave32 and split wave64. This adds a Proton data point for the Windows reports above. ```sh cargo test --locked --target x86_64-pc-windows-gnullvm -p xcl --test gpu_dxil_parity --no-run --message-format=json -j 3 wine <gpu_dxil_parity.exe> <exact-test> --exact --test-threads=1 --nocapture ``` RTX 5070 Ti (16 GB, driver 620.73.04), Ryzen 7 9700X, 32 GB DDR5, CachyOS 7.3.5-2-cachyos, Proton Experimental `experimental-11.0-20261112-x86_64`, vkd3d-proton `ec20719452e9`, dxil-spirv `7c048638ab59`, Rust 1.100.0, LLVM-MinGW 20261117, DXC 1.9.2609.5. One fresh Wine prefix per test. **AI use** — OpenAI Codex (GPT-6, exact variant unavailable) ran the tests and drafted this report.
Author
Owner

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

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

  • cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified main.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 23:24 UTC · [original](https://github.com/xcl-dev/xcl/pull/1778#issuecomment-7147367980) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified `main`.) Thanks!
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-24 23:28 UTC · original

Follow-up to my report above: I updated the driver on the same RTX 5070 Ti, and the IMAGE_LOAD alpha mismatch now happens here too. Same card, head, DXC and build. Only the driver changed.

Driver direct_dxil_mimg_image_ops_and_atomics_parity lds_atomics_and_barrier/split-w64
616.64 (32.0.16.1664) passes 7 of 7 0x8007000E 7 of 7
621.40 (32.0.16.2140) fails 8 of 8: mimg_ops_and_atomics/wave32: lane 0 v7, left 0, right 1065353216 0x8007000E 3 of 3

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell), Ryzen 7 9800X3D, Windows 11 Home 26300 (no Windows updates between the two runs), Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17, debug, head b20b957.
  • cargo test -p xcl --test gpu_dxil_parity -- --test-threads=1, alone on the machine: 3 runs of the whole file, then 5 runs of the mimg test alone.
  • Control on the same head after the update: the AMD Radeon iGPU (RDNA2, XCL_ADAPTER=radeon) passes all 3 tests.

So the mimg mismatch follows the newer NVIDIA driver, not DXC or this machine. It matches @⁠Ctrl-Alt-Haze (5070 Ti, 621.35) and @⁠PHeitor1 (5060 Ti, 621.24), while @⁠LocranKing's Ampere card on 621.01 passes. It may be specific to the 621.2x+ drivers on Blackwell, but I have not tested any driver between 616.64 and 621.40. The split-w64 0x8007000E does not depend on the driver: it happens on both versions here, which fits @⁠PHeitor1's finding that the trigger is the LDS subtract.

Not tested

  • Drivers between 616.64 and 621.40, a release build, a Blackwell card other than the 5070 Ti.

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-24 23:28 UTC · [original](https://github.com/xcl-dev/xcl/pull/1778#issuecomment-7147442017) Follow-up to my report above: I updated the driver on the same RTX 5070 Ti, and the `IMAGE_LOAD` alpha mismatch now happens here too. Same card, head, DXC and build. Only the driver changed. | Driver | `direct_dxil_mimg_image_ops_and_atomics_parity` | `lds_atomics_and_barrier/split-w64` | |---|---|---| | 616.64 (32.0.16.1664) | passes 7 of 7 | `0x8007000E` 7 of 7 | | 621.40 (32.0.16.2140) | **fails 8 of 8**: `mimg_ops_and_atomics/wave32: lane 0 v7`, left `0`, right `1065353216` | `0x8007000E` 3 of 3 | **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell), Ryzen 7 9800X3D, Windows 11 Home 26300 (no Windows updates between the two runs), Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17, debug, head `b20b957`. - `cargo test -p xcl --test gpu_dxil_parity -- --test-threads=1`, alone on the machine: 3 runs of the whole file, then 5 runs of the mimg test alone. - Control on the same head after the update: the AMD Radeon iGPU (RDNA2, `XCL_ADAPTER=radeon`) passes all 3 tests. So the mimg mismatch follows the newer NVIDIA driver, not DXC or this machine. It matches @⁠Ctrl-Alt-Haze (5070 Ti, 621.35) and @⁠PHeitor1 (5060 Ti, 621.24), while @⁠LocranKing's Ampere card on 621.01 passes. It may be specific to the 621.2x+ drivers on Blackwell, but I have not tested any driver between 616.64 and 621.40. The `split-w64` `0x8007000E` does not depend on the driver: it happens on both versions here, which fits @⁠PHeitor1's finding that the trigger is the LDS subtract. **Not tested** - Drivers between 616.64 and 621.40, a release build, a Blackwell card other than the 5070 Ti. **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Author
Owner

@⁠PHeitor1 on GitHub · 2026-11-25 00:18 UTC · original

@⁠futurepro62 thanks, changing only the driver is the clean comparison. I looked into both failures; they have different causes.

direct_dxil_mimg_image_ops_and_atomics_parity: the test's T# holds an invalid descriptor index. tsharp puts 0x2000_0000 | (idx << 4) in word 0, and both translators use that word as the index into the descriptor heap (ResourceDescriptorHeap[s16]). The repo's own tests put the plain index there. An index that far out of range is undefined, so it can work on one driver and not on another, which fits what you saw.

  • It is the whole load, not the alpha: with other texel values, all four components read 0 in every lane on the direct path. In this test lane 0's x, y and z are 0 anyway, so v7 is the first one that differs.
  • It is not only the direct path: with load, store and gather together, the HLSL path also read 0 here in split wave64.
  • Changing only that line fixes it here (RTX 5060 Ti, 621.24, test file of b20b957 on main 20cf130): 3 of 3 runs pass, against 0 of 3 as it is.
-    [0x2000_0000 | (idx << 4), 0, 0, (dfmt << 20) | (rtype << 28), 0, 0, 0, 0]
+    [idx, dfmt << 20, 0, rtype << 28, 0, 0, 0, 0]

The second part is the layout of tsharp in recomp/tests.rs (format in word 1); with only word 0 changed it also passes 3 of 3. @⁠thiagocalile, that is yours to decide.

direct_dxil_lds_atomics_and_barrier_parity (0x8007000E): #1919 fixes this one. It is the LDS subtract. At a081eb5 this test passes 3 of 3 here; on main it fails 3 of 3.

So my earlier comment, which left the image failure as a separate thing, was right that it is not the same cause, but it is in the test and not in the translator.

Not tested: another driver or GPU with the changed line, a driver that passes as it is.

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

**@⁠PHeitor1** on GitHub · 2026-11-25 00:18 UTC · [original](https://github.com/xcl-dev/xcl/pull/1778#issuecomment-7148378835) @⁠futurepro62 thanks, changing only the driver is the clean comparison. I looked into both failures; they have different causes. **`direct_dxil_mimg_image_ops_and_atomics_parity`: the test's T# holds an invalid descriptor index.** `tsharp` puts `0x2000_0000 | (idx << 4)` in word 0, and both translators use that word as the index into the descriptor heap (`ResourceDescriptorHeap[s16]`). The repo's own tests put the plain index there. An index that far out of range is undefined, so it can work on one driver and not on another, which fits what you saw. - It is the whole load, not the alpha: with other texel values, all four components read 0 in every lane on the direct path. In this test lane 0's x, y and z are 0 anyway, so v7 is the first one that differs. - It is not only the direct path: with load, store and gather together, the HLSL path also read 0 here in split wave64. - Changing only that line fixes it here (RTX 5060 Ti, 621.24, test file of `b20b957` on `main` `20cf130`): 3 of 3 runs pass, against 0 of 3 as it is. ```diff - [0x2000_0000 | (idx << 4), 0, 0, (dfmt << 20) | (rtype << 28), 0, 0, 0, 0] + [idx, dfmt << 20, 0, rtype << 28, 0, 0, 0, 0] ``` The second part is the layout of `tsharp` in `recomp/tests.rs` (format in word 1); with only word 0 changed it also passes 3 of 3. @⁠thiagocalile, that is yours to decide. **`direct_dxil_lds_atomics_and_barrier_parity` (`0x8007000E`): #1919 fixes this one.** It is the LDS subtract. At `a081eb5` this test passes 3 of 3 here; on `main` it fails 3 of 3. So my earlier comment, which left the image failure as a separate thing, was right that it is not the same cause, but it is in the test and not in the translator. **Not tested:** another driver or GPU with the changed line, a driver that passes as it is. _Run and written with Claude Code (Claude Opus 5.5)._
Author
Owner

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

Thanks @⁠PHeitor1, @⁠futurepro62, @⁠Ctrl-Alt-Haze, and @⁠fromthemoonx for tracking down both issues so cleanly!

Pushed 2e2ee55 fixing tsharp() to match recomp/tests.rs ([idx, dfmt << 20, 0, rtype << 28, 0, 0, 0, 0]) and setting the sampler S# word 0 to 0 instead of 0x3000_0000. Re-verified on AMD Radeon RX 6600 (XCL_ADAPTER=radeon cargo test -p xcl --test gpu_dxil_parity -- --nocapture: 3 passed, 0 failed in 0.42s). And awesome to see the LDS test caught the Blackwell subtract issue for #1919!

AI use: Antigravity (Gemini 4 Neon) applied the 2-line fix, ran the RX 6600 test, and drafted this reply; I reviewed it before posting.

**@⁠thiagocalile** on GitHub · 2026-11-25 00:37 UTC · [original](https://github.com/xcl-dev/xcl/pull/1778#issuecomment-7148710136) Thanks @⁠PHeitor1, @⁠futurepro62, @⁠Ctrl-Alt-Haze, and @⁠fromthemoonx for tracking down both issues so cleanly! Pushed `2e2ee55` fixing `tsharp()` to match `recomp/tests.rs` (`[idx, dfmt << 20, 0, rtype << 28, 0, 0, 0, 0]`) and setting the sampler `S#` word 0 to `0` instead of `0x3000_0000`. Re-verified on AMD Radeon RX 6600 (`XCL_ADAPTER=radeon cargo test -p xcl --test gpu_dxil_parity -- --nocapture`: 3 passed, 0 failed in `0.42s`). And awesome to see the LDS test caught the Blackwell subtract issue for #1919! **AI use:** Antigravity (Gemini 4 Neon) applied the 2-line fix, ran the RX 6600 test, and drafted this reply; I reviewed it before posting.
Author
Owner

@⁠fromthemoonx on GitHub · 2026-11-24 21:22 UTC · original · edited 2026-11-25 00:49 UTC

Rerun on the new head 2e2ee55 (T#/S# fix): still passes here. cargo test --workspace --no-fail-fast -- --test-threads=4: 892 passed, 0 failed, 42 ignored. Merged onto main 80f4819 (no conflict): 996 passed, 0 failed, 45 ignored. gpu_dxil_parity 10 of 10. The umin→umax bug check below still fails only direct_dxil_lds_atomics_and_barrier_parity (split-w64: lane 0 v31, 4294967295 vs 9). Same RTX 3060 and driver (610.88), DXC 1.9.2602.17, debug. The report below is for b20b957.


Passes on an RTX 3060 (wave32 and split wave64), 10 of 10, unlike the RTX 5070 Ti run above. The new LDS test also catches a bug that no existing test does.

The two setups differ in DXC (1.9.2602.17 here, 1.8.2502.11 above) and driver (32.0.16.1088 here, 32.0.16.2135 above), so the IMAGE_LOAD alpha (0 vs 1.0) and the 0x8007000E may depend on one of those. Update: DXC 1.8 is not the cause of either failure. With Microsoft's DXC 1.8.2502 release (XCL_DXC_DIR; XCL logs DXC: dxcompiler 1.8.2502.8 (b4711839), dxil 1.8.2502.8), cargo test -p xcl --test gpu_dxil_parity on this head passes 3 of 3 here. Together with the later reports, the LDS 0x8007000E follows the GPU (RTX 5070 Ti / 5060 Ti) and the IMAGE_LOAD alpha follows the newer drivers (621.x).

Tested

  • NVIDIA GeForce RTX 3060 12 GB (32-lane waves only), driver 32.0.16.1088; AMD Ryzen 7 5700X; native Windows 11 Pro 26H2 (build 26300.9974); rustc 1.100.0 stable-x86_64-pc-windows-msvc; DXC 1.9.2602.17; debug
  • Exact head b20b9577231644606e0bf2b65eb7b50e3970b32a: cargo test -p xcl --test gpu_dxil_parity: 3 passed. The split-w64 and wave32 configurations run here; native-w64 is left out on this card without a SKIPPED line. 10 runs: 10 of 10 passed.
  • cargo build --workspace, then cargo test --workspace --no-fail-fast -- --test-threads=4: 892 passed, 0 failed, 42 ignored. Merged onto current main e9e94ce (no conflict): 895 passed, 0 failed, 42 ignored.
  • Bug check: with LDS umin lowered as umax in the direct translator (lower_mem.rs, "umin" | "min_u32"), direct_dxil_lds_atomics_and_barrier_parity fails at split-w64: lane 0 v31 (4294967295 vs 9). The other two parity tests still pass, and so do all 277 gpu::dxil + gpu::recomp lib tests. So this test is the only one that catches it.

Not tested

  • Native wave64 (none here); release build.

AI use

  • Claude Code (Claude Opus 5.5) ran the builds, tests and the bug check on the machine above and wrote this report from the output.
**@⁠fromthemoonx** on GitHub · 2026-11-24 21:22 UTC · [original](https://github.com/xcl-dev/xcl/pull/1778#issuecomment-7144843991) · edited 2026-11-25 00:49 UTC **Rerun on the new head `2e2ee55` (T#/S# fix): still passes here.** `cargo test --workspace --no-fail-fast -- --test-threads=4`: 892 passed, 0 failed, 42 ignored. Merged onto main `80f4819` (no conflict): 996 passed, 0 failed, 45 ignored. `gpu_dxil_parity` 10 of 10. The `umin`→`umax` bug check below still fails only `direct_dxil_lds_atomics_and_barrier_parity` (`split-w64: lane 0 v31`, `4294967295` vs `9`). Same RTX 3060 and driver (610.88), DXC 1.9.2602.17, debug. The report below is for `b20b957`. --- **Passes on an RTX 3060 (wave32 and split wave64), 10 of 10, unlike the RTX 5070 Ti run above. The new LDS test also catches a bug that no existing test does.** The two setups differ in DXC (1.9.2602.17 here, 1.8.2502.11 above) and driver (32.0.16.1088 here, 32.0.16.2135 above), so the `IMAGE_LOAD` alpha (`0` vs `1.0`) and the `0x8007000E` may depend on one of those. **Update:** DXC 1.8 is not the cause of either failure. With Microsoft's DXC 1.8.2502 release (`XCL_DXC_DIR`; XCL logs `DXC: dxcompiler 1.8.2502.8 (b4711839), dxil 1.8.2502.8`), `cargo test -p xcl --test gpu_dxil_parity` on this head passes 3 of 3 here. Together with the later reports, the LDS `0x8007000E` follows the GPU (RTX 5070 Ti / 5060 Ti) and the `IMAGE_LOAD` alpha follows the newer drivers (621.x). **Tested** - NVIDIA GeForce RTX 3060 12 GB (32-lane waves only), driver 32.0.16.1088; AMD Ryzen 7 5700X; native Windows 11 Pro 26H2 (build 26300.9974); rustc 1.100.0 `stable-x86_64-pc-windows-msvc`; DXC 1.9.2602.17; debug - **Exact head `b20b9577231644606e0bf2b65eb7b50e3970b32a`**: `cargo test -p xcl --test gpu_dxil_parity`: 3 passed. The `split-w64` and `wave32` configurations run here; `native-w64` is left out on this card without a `SKIPPED` line. 10 runs: **10 of 10 passed**. - `cargo build --workspace`, then `cargo test --workspace --no-fail-fast -- --test-threads=4`: **892 passed, 0 failed, 42 ignored**. Merged onto current `main` `e9e94ce` (no conflict): **895 passed, 0 failed, 42 ignored**. - **Bug check:** with LDS `umin` lowered as `umax` in the direct translator (`lower_mem.rs`, `"umin" | "min_u32"`), `direct_dxil_lds_atomics_and_barrier_parity` fails at `split-w64: lane 0 v31` (`4294967295` vs `9`). The other two parity tests still pass, and so do all 277 `gpu::dxil` + `gpu::recomp` lib tests. So this test is the only one that catches it. **Not tested** - Native wave64 (none here); release build. **AI use** - Claude Code (Claude Opus 5.5) ran the builds, tests and the bug check on the machine above and wrote this report from the output.
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-25 00:50 UTC · original

@⁠PHeitor1 @⁠thiagocalile confirmed here: 2e2ee55 fixes the mimg failure on the driver that broke it.

  • RTX 5070 Ti, driver 621.40 (32.0.16.2140), DXC 1.9.2602.17: direct_dxil_mimg_image_ops_and_atomics_parity passes 3 of 3 at 2e2ee55. At b20b957 on the same driver it failed 8 of 8 (lane 0 v7 = 0 instead of 1.0).
  • direct_dxil_lds_atomics_and_barrier_parity still fails 3 of 3 with CreateComputePipelineState 0x8007000E on split-w64, as expected until #1919.
  • 2e2ee55 with #1919 (a081eb5) merged in locally: all 3 tests pass, 3 of 3 runs on the same 5070 Ti / 621.40, so #1919 fixes the LDS split-w64 0x8007000E here too.
  • AMD Radeon iGPU (RDNA2, XCL_ADAPTER=radeon): all 3 tests pass.

Tested: cargo build --workspace, then cargo test -p xcl --test gpu_dxil_parity -- --test-threads=1, 3 runs on NVIDIA and 1 on AMD at 2e2ee55, and 3 runs on NVIDIA with #1919 merged. Windows 11, Rust 1.100.0 MSVC, debug.

Not tested: the full suite at this head, other NVIDIA drivers.

AI-assisted (Claude Code).

**@⁠futurepro62** on GitHub · 2026-11-25 00:50 UTC · [original](https://github.com/xcl-dev/xcl/pull/1778#issuecomment-7148928556) @⁠PHeitor1 @⁠thiagocalile confirmed here: `2e2ee55` fixes the mimg failure on the driver that broke it. - RTX 5070 Ti, driver **621.40** (32.0.16.2140), DXC 1.9.2602.17: `direct_dxil_mimg_image_ops_and_atomics_parity` **passes 3 of 3** at `2e2ee55`. At `b20b957` on the same driver it failed 8 of 8 (lane 0 `v7` = 0 instead of 1.0). - `direct_dxil_lds_atomics_and_barrier_parity` still fails 3 of 3 with `CreateComputePipelineState` `0x8007000E` on split-w64, as expected until #1919. - `2e2ee55` with #1919 (`a081eb5`) merged in locally: **all 3 tests pass, 3 of 3 runs** on the same 5070 Ti / 621.40, so #1919 fixes the LDS split-w64 `0x8007000E` here too. - AMD Radeon iGPU (RDNA2, `XCL_ADAPTER=radeon`): all 3 tests pass. **Tested:** `cargo build --workspace`, then `cargo test -p xcl --test gpu_dxil_parity -- --test-threads=1`, 3 runs on NVIDIA and 1 on AMD at `2e2ee55`, and 3 runs on NVIDIA with #1919 merged. Windows 11, Rust 1.100.0 MSVC, debug. **Not tested:** the full suite at this head, other NVIDIA drivers. AI-assisted (Claude Code).
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 01:10 UTC · original

Tested

  • Exact PR head 2e2ee557dfeb6de0f1d3c7467b16216f61564b0e, clean checkout. Intel Arc A770 driver 32.0.101.9175, AMD Ryzen 7 3800X, Windows 11 Enterprise Evaluation build 26200.9974, Rust 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc), debug. The run loaded DXC and DXIL 1.9.2609.5 (DXC 01b62ad4).
  • XCL_ADAPTER=A770, XCL_DXC_DIR=$env:LOCALAPPDATA/XclTooling/dxc-1.9.2609/bin/x64, CARGO_BUILD_JOBS=2, CARGO_INCREMENTAL=0, isolated Cargo target and temp directories.
  • cargo test -p xcl --test gpu_dxil_parity --no-run built the integration test. The hardware run was & 'L:/XclTooling/Invoke-ArcTest.ps1' -Test { cargo test -p xcl --test gpu_dxil_parity -- --nocapture --test-threads=1 }.
  • 3 passed, 0 failed, 0 ignored, 0 SKIPPED lines in 4.78 s. direct_dxil_cross_lane_and_dpp_parity, direct_dxil_lds_atomics_and_barrier_parity, and direct_dxil_mimg_image_ops_and_atomics_parity each ran direct DXIL and HLSL + DXC on the Arc for wave32 and split-w64. The D3D12 capability query reported a maximum wave size of 32 lanes, so the harness omitted native-w64 in all three tests.

Not tested

  • Native wave64, other adapters or drivers, release builds, the full workspace suite, baseline or fault-injection runs, and retail title smoke.

AI use

  • Codex in T3 Code (gpt-6.2-sol) ran the tests and drafted this report from the output.
**@⁠JJAutoCompare** on GitHub · 2026-11-25 01:10 UTC · [original](https://github.com/xcl-dev/xcl/pull/1778#issuecomment-7149280747) **Tested** - Exact PR head `2e2ee557dfeb6de0f1d3c7467b16216f61564b0e`, clean checkout. Intel Arc A770 driver `32.0.101.9175`, AMD Ryzen 7 3800X, Windows 11 Enterprise Evaluation build `26200.9974`, Rust `1.100.0` (`0ef1bc386`, `x86_64-pc-windows-msvc`), debug. The run loaded DXC and DXIL `1.9.2609.5` (DXC `01b62ad4`). - `XCL_ADAPTER=A770`, `XCL_DXC_DIR=$env:LOCALAPPDATA/XclTooling/dxc-1.9.2609/bin/x64`, `CARGO_BUILD_JOBS=2`, `CARGO_INCREMENTAL=0`, isolated Cargo target and temp directories. - `cargo test -p xcl --test gpu_dxil_parity --no-run` built the integration test. The hardware run was `& 'L:/XclTooling/Invoke-ArcTest.ps1' -Test { cargo test -p xcl --test gpu_dxil_parity -- --nocapture --test-threads=1 }`. - **3 passed, 0 failed, 0 ignored, 0 `SKIPPED` lines** in 4.78 s. `direct_dxil_cross_lane_and_dpp_parity`, `direct_dxil_lds_atomics_and_barrier_parity`, and `direct_dxil_mimg_image_ops_and_atomics_parity` each ran direct DXIL and HLSL + DXC on the Arc for `wave32` and `split-w64`. The D3D12 capability query reported a maximum wave size of 32 lanes, so the harness omitted `native-w64` in all three tests. **Not tested** - Native wave64, other adapters or drivers, release builds, the full workspace suite, baseline or fault-injection runs, and retail title smoke. **AI use** - Codex in T3 Code (`gpt-6.2-sol`) ran the tests and drafted this report from the output.
Author
Owner

@⁠raylitebull on GitHub · 2026-11-25 02:01 UTC · original

CI workflow approved for 2e2ee55 (crates/xcl/tests/gpu_dxil_parity.rs).

Diff is clean and verified across AMD (RX 6600, RDNA2 iGPU), NVIDIA (RTX 3060, RTX 5070 Ti with #1919), and Intel Arc A770. Hold merge until #1919 (ds_sub_u32 Blackwell workaround) lands and Build and test finishes green on 2e2ee55, so direct_dxil_lds_atomics_and_barrier_parity (split-w64) passes cleanly on RTX 5060/5070 Ti.

**@⁠raylitebull** on GitHub · 2026-11-25 02:01 UTC · [original](https://github.com/xcl-dev/xcl/pull/1778#issuecomment-7150234261) `CI` workflow approved for `2e2ee55` (`crates/xcl/tests/gpu_dxil_parity.rs`). Diff is clean and verified across AMD (RX 6600, RDNA2 iGPU), NVIDIA (RTX 3060, RTX 5070 Ti with `#1919`), and Intel Arc A770. Hold merge until `#1919` (`ds_sub_u32` Blackwell workaround) lands and `Build and test` finishes green on `2e2ee55`, so `direct_dxil_lds_atomics_and_barrier_parity` (`split-w64`) passes cleanly on RTX 5060/5070 Ti.
Author
Owner

@⁠SzczepanGrela on GitHub · 2026-11-25 04:41 UTC · original

Linux/RADV + Wine GPU test report on PR #1778 head 2e2ee55 (clean local merge d347e23 onto origin/main cbc296a, rustc 1.97.1, zero compiler warnings).

Tested

  • CachyOS Linux (kernel 7.3.0-5-cachyos), AMD Radeon RX 9070 (RADV GFX1201, device 0x7550, native wave64, Mesa 26.2.5-arch3.1, Vulkan 1.4.354), GE-Proton11-12 (wine-11.0 (Staging), vkd3d-proton v3.1-1-g8293130eb), DXC 1.9.2602.17 (21d28f72). Cross-built x86_64-pc-windows-gnu release (--test gpu_dxil_parity, 0.73 s) with XCL_REQUIRE_GPU=wave64 XCL_NETWORK=0.
  • gpu_dxil_parity --test-threads=1 --nocapture (default env: 0.44 s; XCL_SPLIT_WAVE64=1: 0.35 s): 2 passed, 1 failed, 0 ignored:
    • direct_dxil_lds_atomics_and_barrier_parity: passed (0.18 s solo) across native-w64, split-w64, and wave32.
    • direct_dxil_mimg_image_ops_and_atomics_parity: passed (0.21 s solo) across native-w64, split-w64, and wave32.
    • direct_dxil_cross_lane_and_dpp_parity: failed (0.17 s solo). native-w64 passed, then split-w64 panicked in runner::run_with(&hlsl, ...) at crates/xcl/tests/gpu_dxil_parity.rs:84:83 (cross_lane_and_dpp/split-w64: run hlsl: split wave64: the halves ended with different SGPRs (lower / upper): s11: 0x0 / 0x10002525, s12: 0x10000404 / 0x0), and never reached wave32.
  • Baseline comparison on unmodified origin/main cbc296a: under XCL_SPLIT_WAVE64=1, gpu::recomp::tests::gpu_ already fails 7 tests (run 1) with split wave64: the halves ended with different SGPRs (gpu_divergence_through_exec, gpu_f64_class_compare, gpu_scalar_sext_mulhi_and_vector_i24_sub_co_ci_u64_shifts, gpu_split_wave64_cross_half_operations, gpu_split_wave64_masks_read_whole_after_partial_writes, gpu_split_wave64_reduction_tails, gpu_valu_16_and_64_bit), and run 2 also had 7 SGPR-mismatch failures with gpu_grouped_loads_bounds_and_inactive_lanes failing in place of gpu_split_wave64_masks_read_whole_after_partial_writes.
  • Source check (crates/xcl/src/gpu/recomp/runner.rs:591-602, 766, 1568 and crates/xcl/src/gpu/recomp/emit.rs:4755): split_halves_agree skips the lower/upper SGPR comparison unless KERNEL_SPLIT_MAGIC is present in the output buffer; only the HLSL emitter (emit.rs:4755) writes KERNEL_SPLIT_MAGIC, while direct.dxil does not emit it.

Not tested

  • In direct_dxil_cross_lane_and_dpp_parity (split-w64), direct.dxil-vs-hlsl parity assertions (gpu_dxil_parity.rs:85-95) and wave32 mode were not reached after run_with(&hlsl, ...) panicked at line 84.
  • --lib unit tests and other integration binaries outside gpu_dxil_parity (on local merge d347e23), retail game files, and scripts/smoke.ps1 (no retail title files locally).

AI use

  • Diff audit, test execution, and summary drafted with Antigravity (Gemini 4 Neon) multi-agent verification and verified by me before posting.
**@⁠SzczepanGrela** on GitHub · 2026-11-25 04:41 UTC · [original](https://github.com/xcl-dev/xcl/pull/1778#issuecomment-7153081756) Linux/RADV + Wine GPU test report on PR `#1778` head `2e2ee55` (clean local merge `d347e23` onto `origin/main` `cbc296a`, `rustc 1.97.1`, zero compiler warnings). **Tested** - CachyOS Linux (kernel `7.3.0-5-cachyos`), AMD Radeon RX 9070 (RADV GFX1201, device `0x7550`, native wave64, Mesa `26.2.5-arch3.1`, Vulkan `1.4.354`), `GE-Proton11-12` (`wine-11.0 (Staging)`, `vkd3d-proton v3.1-1-g8293130eb`), DXC `1.9.2602.17` (`21d28f72`). Cross-built `x86_64-pc-windows-gnu` release (`--test gpu_dxil_parity`, 0.73 s) with `XCL_REQUIRE_GPU=wave64 XCL_NETWORK=0`. - `gpu_dxil_parity --test-threads=1 --nocapture` (default env: 0.44 s; `XCL_SPLIT_WAVE64=1`: 0.35 s): **2 passed, 1 failed, 0 ignored**: - `direct_dxil_lds_atomics_and_barrier_parity`: **passed** (0.18 s solo) across `native-w64`, `split-w64`, and `wave32`. - `direct_dxil_mimg_image_ops_and_atomics_parity`: **passed** (0.21 s solo) across `native-w64`, `split-w64`, and `wave32`. - `direct_dxil_cross_lane_and_dpp_parity`: **failed** (0.17 s solo). `native-w64` passed, then `split-w64` panicked in `runner::run_with(&hlsl, ...)` at `crates/xcl/tests/gpu_dxil_parity.rs:84:83` (`cross_lane_and_dpp/split-w64: run hlsl: split wave64: the halves ended with different SGPRs (lower / upper): s11: 0x0 / 0x10002525, s12: 0x10000404 / 0x0`), and never reached `wave32`. - Baseline comparison on unmodified `origin/main` `cbc296a`: under `XCL_SPLIT_WAVE64=1`, `gpu::recomp::tests::gpu_` already fails 7 tests (run 1) with `split wave64: the halves ended with different SGPRs` (`gpu_divergence_through_exec`, `gpu_f64_class_compare`, `gpu_scalar_sext_mulhi_and_vector_i24_sub_co_ci_u64_shifts`, `gpu_split_wave64_cross_half_operations`, `gpu_split_wave64_masks_read_whole_after_partial_writes`, `gpu_split_wave64_reduction_tails`, `gpu_valu_16_and_64_bit`), and run 2 also had 7 SGPR-mismatch failures with `gpu_grouped_loads_bounds_and_inactive_lanes` failing in place of `gpu_split_wave64_masks_read_whole_after_partial_writes`. - Source check (`crates/xcl/src/gpu/recomp/runner.rs:591-602`, `766`, `1568` and `crates/xcl/src/gpu/recomp/emit.rs:4755`): `split_halves_agree` skips the lower/upper SGPR comparison unless `KERNEL_SPLIT_MAGIC` is present in the output buffer; only the HLSL emitter (`emit.rs:4755`) writes `KERNEL_SPLIT_MAGIC`, while `direct.dxil` does not emit it. **Not tested** - In `direct_dxil_cross_lane_and_dpp_parity` (`split-w64`), `direct.dxil`-vs-`hlsl` parity assertions (`gpu_dxil_parity.rs:85-95`) and `wave32` mode were not reached after `run_with(&hlsl, ...)` panicked at line `84`. - `--lib` unit tests and other integration binaries outside `gpu_dxil_parity` (on local merge `d347e23`), retail game files, and `scripts/smoke.ps1` (no retail title files locally). **AI use** - Diff audit, test execution, and summary drafted with Antigravity (Gemini 4 Neon) multi-agent verification and verified by me before posting.
Author
Owner

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

RDNA3 reproduction of the split-wave64 parity failure. Second AMD generation covered, and the failing SGPR values are byte-identical to the RX 9070 report.

Rig: RX 7900 XT (RDNA3, RADV NAVI31, Mesa 26.2.5) under Proton Experimental (wine-11.0) + the xcl-pinned vkd3d-proton 3.1 build, VKD3D_CONFIG=ignore_shared_fence. Same Wine stack recipe as the RX 9070 report. Pipeline cache removed before every run. Tree: main cbc296ab + this PR's head 2e2ee55 merged.

Parity suite: 2 pass / 1 fail. direct_dxil_cross_lane_and_dpp_parity fails the split-w64 leg with exactly the values from the RX 9070 report:

split wave64: the halves ended with different SGPRs (lower / upper): s11: 0x0 / 0x10002525, s12: 0x10000404 / 0x0

Identical corruption pattern on two different AMD generations. Not card-specific, not driver-version-specific, not RDNA4-specific.

--lib GPU suite on this tree, native mode: 132 passed / 3 failed. All three fail 3/3 solo re-runs, so they are deterministic, and nobody has reported them yet:

  • gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_2
  • gpu::recomp::tests::gpu_nonfused_mad_and_mac_prevent_fma_contraction
  • hle::d3d12x::device_x::tests::gpu_depth_buffer_created_for_unordered_access_is_placed

--lib GPU suite, XCL_SPLIT_WAVE64=1: 124 passed / 11 failed. Three re-runs classify them:

  • deterministic (3/3): gpu_divergence_through_exec, gpu_format_stores_atomics_global_lds, gpu_scalar_sext_mulhi_and_vector_i24_sub_co_ci_u64_shifts, gpu_split_wave64_cross_half_operations, gpu_split_wave64_masks_read_whole_after_partial_writes, gpu_split_wave64_local_and_exchanged_masks_in_diverging_waves, gpu_split_wave64_waves_diverge, gpu_split_wave64_reduction_tails, gpu_valu_16_and_64_bit
  • flaky: gpu_f64_class_compare (2/3), gpu_grouped_loads_bounds_and_inactive_lanes (1/3), mirroring the swap seen in the RX 9070 baseline runs

Two of the deterministic set (gpu_format_stores_atomics_global_lds, gpu_split_wave64_waves_diverge) were not in the earlier baseline count, so RDNA3 sees at least that wide.

This PR adds only crates/xcl/tests/gpu_dxil_parity.rs (tests-only), so the --lib failures above are current-main behavior on this stack, not introduced by it.

Counts only, no game data.

AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.

**@⁠SlopTart** on GitHub · 2026-11-25 05:16 UTC · [original](https://github.com/xcl-dev/xcl/pull/1778#issuecomment-7153606690) RDNA3 reproduction of the split-wave64 parity failure. Second AMD generation covered, and the failing SGPR values are byte-identical to the RX 9070 report. Rig: RX 7900 XT (RDNA3, RADV NAVI31, Mesa 26.2.5) under Proton Experimental (wine-11.0) + the xcl-pinned vkd3d-proton 3.1 build, `VKD3D_CONFIG=ignore_shared_fence`. Same Wine stack recipe as the RX 9070 report. Pipeline cache removed before every run. Tree: main `cbc296ab` + this PR's head `2e2ee55` merged. **Parity suite:** 2 pass / 1 fail. `direct_dxil_cross_lane_and_dpp_parity` fails the split-w64 leg with exactly the values from the RX 9070 report: ``` split wave64: the halves ended with different SGPRs (lower / upper): s11: 0x0 / 0x10002525, s12: 0x10000404 / 0x0 ``` Identical corruption pattern on two different AMD generations. Not card-specific, not driver-version-specific, not RDNA4-specific. **`--lib` GPU suite on this tree, native mode:** 132 passed / 3 failed. All three fail 3/3 solo re-runs, so they are deterministic, and nobody has reported them yet: - `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_2` - `gpu::recomp::tests::gpu_nonfused_mad_and_mac_prevent_fma_contraction` - `hle::d3d12x::device_x::tests::gpu_depth_buffer_created_for_unordered_access_is_placed` **`--lib` GPU suite, `XCL_SPLIT_WAVE64=1`:** 124 passed / 11 failed. Three re-runs classify them: - deterministic (3/3): `gpu_divergence_through_exec`, `gpu_format_stores_atomics_global_lds`, `gpu_scalar_sext_mulhi_and_vector_i24_sub_co_ci_u64_shifts`, `gpu_split_wave64_cross_half_operations`, `gpu_split_wave64_masks_read_whole_after_partial_writes`, `gpu_split_wave64_local_and_exchanged_masks_in_diverging_waves`, `gpu_split_wave64_waves_diverge`, `gpu_split_wave64_reduction_tails`, `gpu_valu_16_and_64_bit` - flaky: `gpu_f64_class_compare` (2/3), `gpu_grouped_loads_bounds_and_inactive_lanes` (1/3), mirroring the swap seen in the RX 9070 baseline runs Two of the deterministic set (`gpu_format_stores_atomics_global_lds`, `gpu_split_wave64_waves_diverge`) were not in the earlier baseline count, so RDNA3 sees at least that wide. This PR adds only `crates/xcl/tests/gpu_dxil_parity.rs` (tests-only), so the `--lib` failures above are current-main behavior on this stack, not introduced by it. Counts only, no game data. AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
Author
Owner

@⁠iGoldenNinja on GitHub · 2026-11-25 05:39 UTC · original

Independent RTX 5080 result for 2e2ee557dfeb6de0f1d3c7467b16216f61564b0e. Windows 11 Pro 25H2 build 26200.9974, Ryzen 9 5900X, NVIDIA 617.14, Rust 1.98.1 MSVC, DXC/DXIL 1.9.2609.5, release, XCL_REQUIRE_GPU=1 XCL_ADAPTER=5080.

cargo test --locked --release -p xcl --test gpu_dxil_parity -- --nocapture --test-threads=1 gave 2 passed, 1 failed, 0 ignored or skipped. Cross-lane/DPP and MIMG passed. The clean LDS fixture reproduced CreateComputePipelineState 0x8007000E in a fresh process. Running both backend calls before asserting showed the same failure for HLSL + DXC and direct DXIL, independently in both split wave64 and wave32.

Applying only the two lowering-file changes from #1919 a081eb52220dbc746b63b9e1eec04ba7481ef59f to this PR's tree gave 3 passed, 0 failed or skipped, across both backends and both modes. The LDS fixture also passed in 3/3 additional fresh processes. dxc -dumpbin showed one 8192-dword groupshared array for each LDS shader before and after. This was a synthetic test of the isolated change on this PR's tree.

Test matrix and reproduction notes

OpenAI Codex (GPT-6) ran the tests, added local backend logging, and drafted this report.

**@⁠iGoldenNinja** on GitHub · 2026-11-25 05:39 UTC · [original](https://github.com/xcl-dev/xcl/pull/1778#issuecomment-7154003989) Independent RTX 5080 result for `2e2ee557dfeb6de0f1d3c7467b16216f61564b0e`. Windows 11 Pro 25H2 build 26200.9974, Ryzen 9 5900X, NVIDIA 617.14, Rust 1.98.1 MSVC, DXC/DXIL 1.9.2609.5, release, `XCL_REQUIRE_GPU=1 XCL_ADAPTER=5080`. `cargo test --locked --release -p xcl --test gpu_dxil_parity -- --nocapture --test-threads=1` gave 2 passed, 1 failed, 0 ignored or skipped. Cross-lane/DPP and MIMG passed. The clean LDS fixture reproduced `CreateComputePipelineState` `0x8007000E` in a fresh process. Running both backend calls before asserting showed the same failure for HLSL + DXC and direct DXIL, independently in **both split wave64 and wave32**. Applying only the two lowering-file changes from #1919 `a081eb52220dbc746b63b9e1eec04ba7481ef59f` to this PR's tree gave 3 passed, 0 failed or skipped, across both backends and both modes. The LDS fixture also passed in 3/3 additional fresh processes. `dxc -dumpbin` showed one 8192-dword groupshared array for each LDS shader before and after. This was a synthetic test of the isolated change on this PR's tree. [Test matrix and reproduction notes](https://github.com/iGoldenNinja/victory-fork/blob/ff6de791a3f02bd477f89b7d442d8d411444bee7/docs/xcl-parity-1778-5080.md) OpenAI Codex (GPT-6) ran the tests, added local backend logging, and drafted this report.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-26 06:17 UTC · original

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

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

Thanks!

— Devin

**@⁠DavidM1911** on GitHub · 2026-11-26 06:17 UTC · [original](https://github.com/xcl-dev/xcl/pull/1778#issuecomment-7184279575) Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

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