Recompiler: emit direct quad ops for quad-local PS swizzles and DPP #2306

Open
saintwolf wants to merge 1 commit from upstream-pr/2316 into main
saintwolf commented 2026-11-25 13:40:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by saintwolf on 2026-11-25T13:40:46Z.


Direct DXIL pixel shaders previously routed every quad-local ds_swizzle_b32, DPP16, and DPP8 read through Lw::rla(), emitting 5 WaveReadLaneAt, 1 WaveActiveBallot, 4 QuadReadLaneAt, and ~40 bit/select ops only to discard the cross-wave path via same_quad. Because wave intrinsics are not ReadNone, opt.rs DCE could not remove the unused cross-wave calls. DPP16 also emitted non-foldable ROW_MASK/BANK_MASK shifts even for 0xF/0x0 and SGe/imax checks for always-valid controls.

This lowers quad-local reads in pixel shaders directly to dx.op.quadOp (ReadAcrossX/Y/Diagonal), single dx.op.quadReadLaneAt broadcasts, identity pass-through, or minimal distinct dx.op.quadReadLaneAt selects (keeping WaveReadLaneAt in non-pixel stages), and folds constant DPP16 mask/validity checks across all stages. Part of #1269.

What is in it

  • crates/xcl/src/gpu/dxil/lanes.rs: add Lw::quad_lane and Lw::read_lane_quad (superseding read_quad_permutation from a50fa7ab with full QuadOp / QuadReadLaneAt lowering).
  • crates/xcl/src/gpu/dxil/lower_mem.rs: add swizzle_quad_map (quad permute 0x8000..=0xBFFF and quad-preserving bit-mode < 0x8000) and route ds_swizzle_b32 through read_lane_quad / quad_lane.
  • crates/xcl/src/gpu/dxil/lower_valu.rs: add dpp16_quad_map (0x000..=0x0FF, 0x160..=0x163) and dpp8_quad_map, route quad-local DPP16/DPP8 through read_lane_quad, and specialize constant ROW_MASK/BANK_MASK, FI=1, and always-valid DPP16 controls.
  • crates/xcl/src/gpu/dxil/core_tests.rs: add ps_quad_local_swizzle_and_dpp_emit_direct_quad_ops (validation + intrinsic counts for PS wave32/wave64 and VS), gpu_ps_direct_quad_swizzle_and_dpp_match_hlsl (fullscreen + diagonal helper-lane GPU parity vs HLSL, gated on wave32_supported() + DXC so WARP/no-GPU CI skips cleanly, with S_WQM_B32 in the diagonal helper-lane pass), and gpu_direct_dpp16_row_bank_masks_and_fi_zero (gated on wave32_supported() + DXC).

Tested

  • Hardware and toolchain: NVIDIA GeForce RTX 4070 SUPER (12 GiB, driver 32.0.16.2140, wave32), AMD Ryzen 7 7800X3D, Windows 11 26300, rustc 1.100.0 (0ef1bc386 2026-11-09), DXC/DXIL 1.8.2502.11 (Windows SDK 10.0.26100.0).
  • Rebased onto main (9dfbe3ea) at a4b2c195:
    • cargo test -p xcl --lib ps_quad_local_swizzle_and_dpp_emit_direct_quad_ops: 1 passed, 0 failed.
    • cargo test -p xcl --lib gpu_ps_direct_quad_swizzle_and_dpp_match_hlsl: 1 passed, 0 failed.
    • cargo test -p xcl --lib gpu_direct_dpp16_row_bank_masks_and_fi_zero: 1 passed, 0 failed.
    • cargo test -p xcl --lib gpu::dxil::lanes::ps_ballot_tests::: 8 passed, 0 failed.
    • cargo build --release -p xcl: clean build.
  • Prior full-workspace run on pre-rebase head (.\scripts\test.ps1, debug): 1,253 passed, 0 failed, 46 ignored across 23 test binaries.
  • Retail shader corpus sweep (xcl shaders <pack> --direct --sample 500 --seed 7 --max-bytes 100000 --validate --threads 8, release, pre-rebase head): 498 / 498 translated and dxil.dll-validated (0 errors; 158 shrunk, 0 grew).
    • All 498 shaders DXIL bytes: 45,499,896 -> 44,775,836 B (-724,060 B, -1.59%).
    • 234 pixel shaders DXIL bytes: 21,949,800 -> 21,230,816 B (-718,984 B, -3.28%, up to -8.2%).
    • Largest affected pixel shaders (bytes / DXIL instructions / WaveReadLaneAt / QuadReadLaneAt / QuadOp):
      • 11441aa968b462c5: 512,956 -> 476,504 B (-7.1%), 71,004 -> 66,688 (-6.1%), wrla 996 -> 191, qrla 481 -> 290, qop 0 -> 28
      • fd955a83b812406b: 596,476 -> 562,964 B (-5.6%), 77,221 -> 72,929 (-5.6%), wrla 1,181 -> 506, qrla 545 -> 414, qop 0 -> 7
      • 774552a952e99a89: 402,548 -> 374,256 B (-7.0%), 57,024 -> 53,737 (-5.8%), wrla 891 -> 231, qrla 473 -> 209, qop 0 -> 112
      • 529d8f27da1a3874: 344,304 -> 316,136 B (-8.2%), 49,239 -> 45,962 (-6.7%), wrla 826 -> 166, qrla 421 -> 157, qop 0 -> 112
      • 237c90ea491571f1: 249,228 -> 232,848 B (-6.6%), 35,525 -> 33,279 (-6.3%), wrla 316 -> 0, qrla 165 -> 58, qop 0 -> 7
  • Cold NVIDIA CreateGraphicsPipelineState on the 6 largest affected pixel shaders (2 alternating cold trials each with fresh exe basename; warm 2nd calls 0.1-0.2 ms): sum 41,387.9 ms -> 41,509.5 ms (+0.3%, neutral within noise on NVIDIA).

Regression run
main:

xcl-smoke v1
commit: e120925e3abc9956a8b9bae631969d32e8ccd43c
gpu: NVIDIA GeForce RTX 4070 SUPER
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1045 (PresentX 1045)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14930 MB

PR head (XCL_DIRECT_DXIL=1, XCL_PREPARE=0, XCL_PSO_PRELOAD=0):

xcl-smoke v1
commit: a4b2c195bf3fd7c5f13baec79c06fa489b8eb342
gpu: NVIDIA GeForce RTX 4070 SUPER
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1666 (PresentX 1666)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 15213 MB

Not tested

  • Native wave64 GPUs (AMD / Intel) and Linux / Wine / vkd3d-proton.
  • Runtime pixel-shader GPU execution time (FPS delta) benchmarked in isolation.
  • Sample-gated tests (XCL_SAMPLE_* env vars unset).
  • Full cargo test --workspace was not re-run after rebasing onto 9dfbe3ea (targeted unit + GPU tests and release build were run on a4b2c195).

AI use

  • Antigravity (Gemini 4 Neon): analyzed open PRs and retail DXIL output, implemented the quad-local lowering and tests, rebased onto 9dfbe3ea, fixed the CI WARP skip gate, ran tests, corpus sweep, cold PSO measurements, and smoke runs locally, and drafted this description.
<!-- greyfinch-sync:ivall/xcl:issue:5492454724 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2316). Originally posted by [saintwolf](https://github.com/saintwolf) on 2026-11-25T13:40:46Z. --- Direct DXIL pixel shaders previously routed every quad-local `ds_swizzle_b32`, `DPP16`, and `DPP8` read through `Lw::rla()`, emitting 5 `WaveReadLaneAt`, 1 `WaveActiveBallot`, 4 `QuadReadLaneAt`, and ~40 bit/select ops only to discard the cross-wave path via `same_quad`. Because wave intrinsics are not `ReadNone`, `opt.rs` DCE could not remove the unused cross-wave calls. `DPP16` also emitted non-foldable `ROW_MASK`/`BANK_MASK` shifts even for `0xF`/`0x0` and `SGe`/`imax` checks for always-valid controls. This lowers quad-local reads in pixel shaders directly to `dx.op.quadOp` (`ReadAcrossX`/`Y`/`Diagonal`), single `dx.op.quadReadLaneAt` broadcasts, identity pass-through, or minimal distinct `dx.op.quadReadLaneAt` selects (keeping `WaveReadLaneAt` in non-pixel stages), and folds constant `DPP16` mask/validity checks across all stages. Part of #1269. **What is in it** - `crates/xcl/src/gpu/dxil/lanes.rs`: add `Lw::quad_lane` and `Lw::read_lane_quad` (superseding `read_quad_permutation` from `a50fa7ab` with full `QuadOp` / `QuadReadLaneAt` lowering). - `crates/xcl/src/gpu/dxil/lower_mem.rs`: add `swizzle_quad_map` (quad permute `0x8000..=0xBFFF` and quad-preserving bit-mode `< 0x8000`) and route `ds_swizzle_b32` through `read_lane_quad` / `quad_lane`. - `crates/xcl/src/gpu/dxil/lower_valu.rs`: add `dpp16_quad_map` (`0x000..=0x0FF`, `0x160..=0x163`) and `dpp8_quad_map`, route quad-local DPP16/DPP8 through `read_lane_quad`, and specialize constant `ROW_MASK`/`BANK_MASK`, `FI=1`, and always-valid `DPP16` controls. - `crates/xcl/src/gpu/dxil/core_tests.rs`: add `ps_quad_local_swizzle_and_dpp_emit_direct_quad_ops` (validation + intrinsic counts for PS wave32/wave64 and VS), `gpu_ps_direct_quad_swizzle_and_dpp_match_hlsl` (fullscreen + diagonal helper-lane GPU parity vs HLSL, gated on `wave32_supported()` + DXC so WARP/no-GPU CI skips cleanly, with `S_WQM_B32` in the diagonal helper-lane pass), and `gpu_direct_dpp16_row_bank_masks_and_fi_zero` (gated on `wave32_supported()` + DXC). **Tested** - Hardware and toolchain: NVIDIA GeForce RTX 4070 SUPER (12 GiB, driver `32.0.16.2140`, wave32), AMD Ryzen 7 7800X3D, Windows 11 `26300`, `rustc 1.100.0 (0ef1bc386 2026-11-09)`, DXC/DXIL `1.8.2502.11` (Windows SDK `10.0.26100.0`). - Rebased onto `main` (`9dfbe3ea`) at `a4b2c195`: - `cargo test -p xcl --lib ps_quad_local_swizzle_and_dpp_emit_direct_quad_ops`: **1 passed, 0 failed**. - `cargo test -p xcl --lib gpu_ps_direct_quad_swizzle_and_dpp_match_hlsl`: **1 passed, 0 failed**. - `cargo test -p xcl --lib gpu_direct_dpp16_row_bank_masks_and_fi_zero`: **1 passed, 0 failed**. - `cargo test -p xcl --lib gpu::dxil::lanes::ps_ballot_tests::`: **8 passed, 0 failed**. - `cargo build --release -p xcl`: clean build. - Prior full-workspace run on pre-rebase head (`.\scripts\test.ps1`, debug): **1,253 passed, 0 failed, 46 ignored** across 23 test binaries. - Retail shader corpus sweep (`xcl shaders <pack> --direct --sample 500 --seed 7 --max-bytes 100000 --validate --threads 8`, release, pre-rebase head): **498 / 498** translated and `dxil.dll`-validated (`0` errors; 158 shrunk, 0 grew). - All 498 shaders DXIL bytes: `45,499,896 -> 44,775,836 B` (`-724,060 B`, `-1.59%`). - 234 pixel shaders DXIL bytes: `21,949,800 -> 21,230,816 B` (`-718,984 B`, `-3.28%`, up to `-8.2%`). - Largest affected pixel shaders (bytes / DXIL instructions / `WaveReadLaneAt` / `QuadReadLaneAt` / `QuadOp`): - `11441aa968b462c5`: `512,956 -> 476,504 B (-7.1%)`, `71,004 -> 66,688 (-6.1%)`, `wrla 996 -> 191`, `qrla 481 -> 290`, `qop 0 -> 28` - `fd955a83b812406b`: `596,476 -> 562,964 B (-5.6%)`, `77,221 -> 72,929 (-5.6%)`, `wrla 1,181 -> 506`, `qrla 545 -> 414`, `qop 0 -> 7` - `774552a952e99a89`: `402,548 -> 374,256 B (-7.0%)`, `57,024 -> 53,737 (-5.8%)`, `wrla 891 -> 231`, `qrla 473 -> 209`, `qop 0 -> 112` - `529d8f27da1a3874`: `344,304 -> 316,136 B (-8.2%)`, `49,239 -> 45,962 (-6.7%)`, `wrla 826 -> 166`, `qrla 421 -> 157`, `qop 0 -> 112` - `237c90ea491571f1`: `249,228 -> 232,848 B (-6.6%)`, `35,525 -> 33,279 (-6.3%)`, `wrla 316 -> 0`, `qrla 165 -> 58`, `qop 0 -> 7` - Cold NVIDIA `CreateGraphicsPipelineState` on the 6 largest affected pixel shaders (2 alternating cold trials each with fresh exe basename; warm 2nd calls `0.1-0.2 ms`): sum `41,387.9 ms -> 41,509.5 ms` (`+0.3%`, neutral within noise on NVIDIA). **Regression run** `main`: ``` xcl-smoke v1 commit: e120925e3abc9956a8b9bae631969d32e8ccd43c gpu: NVIDIA GeForce RTX 4070 SUPER title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1045 (PresentX 1045) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14930 MB ``` PR head (`XCL_DIRECT_DXIL=1`, `XCL_PREPARE=0`, `XCL_PSO_PRELOAD=0`): ``` xcl-smoke v1 commit: a4b2c195bf3fd7c5f13baec79c06fa489b8eb342 gpu: NVIDIA GeForce RTX 4070 SUPER title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1666 (PresentX 1666) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 15213 MB ``` **Not tested** - Native wave64 GPUs (AMD / Intel) and Linux / Wine / vkd3d-proton. - Runtime pixel-shader GPU execution time (FPS delta) benchmarked in isolation. - Sample-gated tests (`XCL_SAMPLE_*` env vars unset). - Full `cargo test --workspace` was not re-run after rebasing onto `9dfbe3ea` (targeted unit + GPU tests and release build were run on `a4b2c195`). **AI use** - Antigravity (Gemini 4 Neon): analyzed open PRs and retail DXIL output, implemented the quad-local lowering and tests, rebased onto `9dfbe3ea`, fixed the CI WARP skip gate, ran tests, corpus sweep, cold PSO measurements, and smoke runs locally, and drafted this description.
luckyteagirl commented 2026-11-25 14:10:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-25T13:49:58Z.


Independent RX 6800M (RDNA2 native wave64) verification of exact PR head ea02576f497d5fe9f269ba78a32c9dee725d9501.

Environment: Windows 11 build 26200; Ryzen 9 5980HX; Radeon RX 6800M driver 30.0.13002.13003; Rust 1.99.0 MSVC; DXC/DXIL 1.9.2609.5. XCL_ADAPTER=6800M, XCL_REQUIRE_GPU=wave64, XCL_DIRECT_DXIL=1; debug tests in an isolated Cargo target.

Clean exact-head tests: Each of the three added gpu::dxil::core_tests cases passed 1/0/0 with no SKIPPED line:

  • ps_quad_local_swizzle_and_dpp_emit_direct_quad_ops validated the pixel-shader wave32 and wave64 DXIL/intrinsic shape (and the vertex-shader control).
  • gpu_ps_direct_quad_swizzle_and_dpp_match_hlsl matched direct DXIL, HLSL, and analytical fullscreen results, plus direct/HLSL diagonal-edge helper-lane output. Its checked-in fixture executes wave32.
  • gpu_direct_dpp16_row_bank_masks_and_fi_zero matched direct and HLSL GPU readback under partial EXEC. Its checked-in fixture executes wave32.

Local native-wave64 extension: On the same PR production code, I changed only the pixel-shader parity fixture: asserted runner::wave64_supported() == Ok(true), set its KernelOptions to wave64: true, and set the two HLSL pixel-shader Options to wave64: true. The fullscreen and diagonal-edge direct-vs-HLSL GPU draw test passed 1/0/0, no skips. I restored the clean PR worktree afterward. This is local fixture-only evidence, not a result from the unchanged test source.

Limits: Focused synthetic tests only. I did not run the full workspace suite, an owned-title smoke pair, runtime pixel-shader timing, Intel, or Linux/Wine on this head.

AI use: OpenAI Codex (GPT-6; exact variant not exposed in this session) ran the native Windows tests, made and restored the fixture-only wave64 diagnostic, checked the clean exact head, and drafted this report. No game data was used.

<!-- greyfinch-sync:ivall/xcl:comment:7164355468 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2316#issuecomment-7164355468). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-25T13:49:58Z. --- Independent RX 6800M (RDNA2 native wave64) verification of exact PR head `ea02576f497d5fe9f269ba78a32c9dee725d9501`. **Environment:** Windows 11 build 26200; Ryzen 9 5980HX; Radeon RX 6800M driver `30.0.13002.13003`; Rust 1.99.0 MSVC; DXC/DXIL 1.9.2609.5. `XCL_ADAPTER=6800M`, `XCL_REQUIRE_GPU=wave64`, `XCL_DIRECT_DXIL=1`; debug tests in an isolated Cargo target. **Clean exact-head tests:** Each of the three added `gpu::dxil::core_tests` cases passed **1/0/0** with no `SKIPPED` line: - `ps_quad_local_swizzle_and_dpp_emit_direct_quad_ops` validated the pixel-shader wave32 and wave64 DXIL/intrinsic shape (and the vertex-shader control). - `gpu_ps_direct_quad_swizzle_and_dpp_match_hlsl` matched direct DXIL, HLSL, and analytical fullscreen results, plus direct/HLSL diagonal-edge helper-lane output. Its checked-in fixture executes wave32. - `gpu_direct_dpp16_row_bank_masks_and_fi_zero` matched direct and HLSL GPU readback under partial EXEC. Its checked-in fixture executes wave32. **Local native-wave64 extension:** On the same PR production code, I changed only the pixel-shader parity fixture: asserted `runner::wave64_supported() == Ok(true)`, set its `KernelOptions` to `wave64: true`, and set the two HLSL pixel-shader `Options` to `wave64: true`. The fullscreen and diagonal-edge direct-vs-HLSL GPU draw test passed **1/0/0**, no skips. I restored the clean PR worktree afterward. This is local fixture-only evidence, not a result from the unchanged test source. **Limits:** Focused synthetic tests only. I did not run the full workspace suite, an owned-title smoke pair, runtime pixel-shader timing, Intel, or Linux/Wine on this head. **AI use:** OpenAI Codex (GPT-6; exact variant not exposed in this session) ran the native Windows tests, made and restored the fixture-only wave64 diagnostic, checked the clean exact head, and drafted this report. No game data was used.
saintwolf commented 2026-11-25 14:10:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by saintwolf on 2026-11-25T14:02:10Z.


Force-pushed the same commit as my username and e-mail was not correct for this GH account

<!-- greyfinch-sync:ivall/xcl:comment:7164658290 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2316#issuecomment-7164658290). Originally posted by [saintwolf](https://github.com/saintwolf) on 2026-11-25T14:02:10Z. --- Force-pushed the same commit as my username and e-mail was not correct for this GH account
upipibi commented 2026-11-25 14:10:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-25T14:05:51Z.


NVIDIA run, to go with luckyteagirl's RDNA2 one. Exact head 83fc1bd (the re-authored commit), as-is on its base 1a0bbe3a: RTX 3070 8 GB, driver 616.56, Windows 11, debug.

run XCL_DIRECT_DXIL=0 XCL_DIRECT_DXIL=1
quad filter (this PR's 12 tests, incl. gpu_ps_direct_quad_swizzle_and_dpp_match_hlsl, gpu_direct_dpp16_row_bank_masks_and_fi_zero) 12 passed, 0 failed 12 passed, 0 failed
gpu_ suite (--skip gpu_sparse_vram, single-threaded) 146 passed, 0 failed, 1 ignored 146 passed, 0 failed, 1 ignored
same suite on main 1a0bbe3a 144 passed, 0 failed, 1 ignored 144 passed, 0 failed, 1 ignored

The two extra passes are this PR's new GPU tests. The only SKIPPED lines are two wave64-only tests that are skipped on main too (gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware: no wave64 on this card).

Not tested: a title, the whole workspace.

AI-assisted (Claude Code). Synthetic tests only.

<!-- greyfinch-sync:ivall/xcl:comment:7164751999 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2316#issuecomment-7164751999). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-25T14:05:51Z. --- NVIDIA run, to go with luckyteagirl's RDNA2 one. Exact head `83fc1bd` (the re-authored commit), as-is on its base `1a0bbe3a`: RTX 3070 8 GB, driver 616.56, Windows 11, debug. | run | `XCL_DIRECT_DXIL=0` | `XCL_DIRECT_DXIL=1` | |---|---|---| | `quad` filter (this PR's 12 tests, incl. `gpu_ps_direct_quad_swizzle_and_dpp_match_hlsl`, `gpu_direct_dpp16_row_bank_masks_and_fi_zero`) | 12 passed, 0 failed | 12 passed, 0 failed | | `gpu_` suite (`--skip gpu_sparse_vram`, single-threaded) | 146 passed, 0 failed, 1 ignored | 146 passed, 0 failed, 1 ignored | | same suite on `main` `1a0bbe3a` | 144 passed, 0 failed, 1 ignored | 144 passed, 0 failed, 1 ignored | The two extra passes are this PR's new GPU tests. The only `SKIPPED` lines are two wave64-only tests that are skipped on `main` too (`gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`: no wave64 on this card). **Not tested:** a title, the whole workspace. AI-assisted (Claude Code). Synthetic tests only.
nnonno91 commented 2026-11-25 15:07:57 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by nnonno91 on 2026-11-25T14:44:19Z.


Independent Radeon iGPU and RTX 5090 verification on exact head 83fc1bdb1ffd39641a428eab31e6f099d0017168.

Tested

  • Windows 11 25H2 build 26200.9974, Ryzen 7 9800X3D, AMD Radeon(TM) Graphics driver 32.0.21042.62 and GeForce RTX 5090 driver 32.0.16.1742, Rust 1.100.0 MSVC, SDK DXC/DXIL 1.8.2502.11, unoptimized profile.
  • Ran cargo test --locked -p xcl --lib quad -- --nocapture --test-threads=1 and the same command with filter gpu_direct_dpp16_row_bank_masks_and_fi_zero. Set XCL_DIRECT_DXIL=1 and selected each adapter with XCL_ADAPTER in separate processes. Each adapter gave 12 passed for quad and 1 passed for the DPP16 filter, with 0 failed, 0 ignored and no skips.
  • The direct pixel-shader comparison against HLSL passed on both GPUs, including the diagonal helper-lane case. The direct DPP16 row/bank mask and FI=0 case and the quad-op emission/validation test also passed.

Not tested

Shader-size or compile-time measurements, a retail title and the full workspace suite.

AI use

OpenAI Codex (GPT-6.2 Sol) ran the tests, checked the logs and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7165737008 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2316#issuecomment-7165737008). Originally posted by [nnonno91](https://github.com/nnonno91) on 2026-11-25T14:44:19Z. --- Independent Radeon iGPU and RTX 5090 verification on exact head `83fc1bdb1ffd39641a428eab31e6f099d0017168`. **Tested** - Windows 11 25H2 build 26200.9974, Ryzen 7 9800X3D, AMD Radeon(TM) Graphics driver 32.0.21042.62 and GeForce RTX 5090 driver 32.0.16.1742, Rust 1.100.0 MSVC, SDK DXC/DXIL 1.8.2502.11, unoptimized profile. - Ran `cargo test --locked -p xcl --lib quad -- --nocapture --test-threads=1` and the same command with filter `gpu_direct_dpp16_row_bank_masks_and_fi_zero`. Set `XCL_DIRECT_DXIL=1` and selected each adapter with `XCL_ADAPTER` in separate processes. Each adapter gave 12 passed for `quad` and 1 passed for the DPP16 filter, with 0 failed, 0 ignored and no skips. - The direct pixel-shader comparison against HLSL passed on both GPUs, including the diagonal helper-lane case. The direct DPP16 row/bank mask and FI=0 case and the quad-op emission/validation test also passed. **Not tested** Shader-size or compile-time measurements, a retail title and the full workspace suite. **AI use** OpenAI Codex (GPT-6.2 Sol) ran the tests, checked the logs and wrote this report.
oni-swr commented 2026-11-25 16:12:12 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by oni-swr on 2026-11-25T15:26:20Z.


Independent AMD report for 83fc1bdb1ffd39641a428eab31e6f099d0017168.

Tested

  • AMD Radeon RX 7800 XT (driver 32.0.31035.1003), Ryzen 7 5700X3D, Windows 11 build 26200, rustc 1.100.0, debug profile for tests, release for smoke. Tested at the exact PR head (not a local merge onto main).
  • Focused: ps_quad_local 1 passed, gpu_ps_direct_quad 1 passed, gpu_direct_dpp16 1 passed (the two GPU tests ran, no SKIPPED line).
  • cargo test --workspace --no-fail-fast -- --test-threads=4: 1252 passed, 1 failed, 46 ignored. The one failure is gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 (seed 722: res[30] = 0x1, CPU 0x7fffffff). It fails identically on main 06c9f550 on this adapter (cargo test -p xcl --lib fuzz_validate_and_gpu_1), so it is not caused by this PR.
  • SKIPPED lines in the log: 7 (6 of them f16_programs_on_the_gpu / f32_programs_on_the_gpu per-lane cases refused for V_MUL_F16, V_PK_MUL_F16 or V_CVT_F16_F32, plus heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • scripts/smoke.ps1 -Seconds 60 on a real title (same title, same time), release build. main 06c9f550: 1531 frames, last presents per 2 s 60 36 38, peak commit 17752 MB, no device removal, no crash. PR head 83fc1bdb: 1586 frames, last presents per 2 s 60 60 60, peak commit 14847 MB, no device removal, no crash. Both exit 0x0.

Not tested

Wave64-only hardware, other adapters, a title whose shaders use these quad swizzles/DPP forms (the smoke run only shows no regression).

AI use

Claude Code (Claude Sonnet 5.5) ran the tests and the smoke runs and wrote this report. No game files, dumps or shader names are included.

<!-- greyfinch-sync:ivall/xcl:comment:7166843007 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2316#issuecomment-7166843007). Originally posted by [oni-swr](https://github.com/oni-swr) on 2026-11-25T15:26:20Z. --- Independent AMD report for `83fc1bdb1ffd39641a428eab31e6f099d0017168`. **Tested** - AMD Radeon RX 7800 XT (driver 32.0.31035.1003), Ryzen 7 5700X3D, Windows 11 build 26200, rustc 1.100.0, debug profile for tests, release for smoke. Tested at the exact PR head (not a local merge onto `main`). - Focused: `ps_quad_local` 1 passed, `gpu_ps_direct_quad` 1 passed, `gpu_direct_dpp16` 1 passed (the two GPU tests ran, no SKIPPED line). - `cargo test --workspace --no-fail-fast -- --test-threads=4`: 1252 passed, 1 failed, 46 ignored. The one failure is `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1` (seed 722: `res[30] = 0x1, CPU 0x7fffffff`). It fails identically on `main` `06c9f550` on this adapter (`cargo test -p xcl --lib fuzz_validate_and_gpu_1`), so it is not caused by this PR. - SKIPPED lines in the log: 7 (6 of them `f16_programs_on_the_gpu` / `f32_programs_on_the_gpu` per-lane cases refused for `V_MUL_F16`, `V_PK_MUL_F16` or `V_CVT_F16_F32`, plus `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - `scripts/smoke.ps1 -Seconds 60` on a real title (same title, same time), release build. main `06c9f550`: 1531 frames, last presents per 2 s 60 36 38, peak commit 17752 MB, no device removal, no crash. PR head `83fc1bdb`: 1586 frames, last presents per 2 s 60 60 60, peak commit 14847 MB, no device removal, no crash. Both exit 0x0. **Not tested** Wave64-only hardware, other adapters, a title whose shaders use these quad swizzles/DPP forms (the smoke run only shows no regression). **AI use** Claude Code (Claude Sonnet 5.5) ran the tests and the smoke runs and wrote this report. No game files, dumps or shader names are included.
DavidM1911 commented 2026-11-25 18:04:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T17:52:52Z.


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!

<!-- greyfinch-sync:ivall/xcl:comment:7170129382 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2316#issuecomment-7170129382). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T17:52:52Z. --- 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!
Prime1997 commented 2026-11-26 16:04:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Prime1997 on 2026-11-26T16:04:48Z.


@saintwolf I published the tested main integration branch in xcl-dev/xcl, retaining your authorship. It applies 83fc1bdb to main 8b957bec and resolves this PR's conflict.

Main's #2173 dot-product test and #2368 root-UAV load tests stay in place. The branch also includes all three of your shader quad/DPP tests. The three main checks and three PR checks all passed.

Local result: 6 passed, 0 failed, 0 ignored, 0 explicit skips on the RTX 3060 Ti. Each exact filter ran separately with --test-threads=1 --nocapture after a fresh cargo test --locked -p xcl --lib --no-run build, with 1,347 tests filtered out per invocation. The branch is available for the PR rebase. The focused checks leave full-suite, exact-head title smoke, and the maintainer RDNA4 batch validation pending.

AI use: Codex (GPT-6) resolved the conflict and verified the focused checks. Optional temporary Discord for coordinating contributor work, testing, and comparing results.

<!-- greyfinch-sync:ivall/xcl:comment:7197152771 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2316#issuecomment-7197152771). Originally posted by [Prime1997](https://github.com/Prime1997) on 2026-11-26T16:04:48Z. --- @saintwolf I published the tested [main integration branch](https://github.com/xcl-dev/xcl/tree/review/2316-main-8b957bec) in `xcl-dev/xcl`, retaining your authorship. It applies `83fc1bdb` to main `8b957bec` and resolves this PR's conflict. Main's #2173 dot-product test and #2368 root-UAV load tests stay in place. The branch also includes all three of your shader quad/DPP tests. The three main checks and three PR checks all passed. **Local result:** 6 passed, 0 failed, 0 ignored, 0 explicit skips on the RTX 3060 Ti. Each exact filter ran separately with `--test-threads=1 --nocapture` after a fresh `cargo test --locked -p xcl --lib --no-run` build, with 1,347 tests filtered out per invocation. The branch is available for the PR rebase. The focused checks leave full-suite, exact-head title smoke, and the maintainer RDNA4 batch validation pending. AI use: Codex (GPT-6) resolved the conflict and verified the focused checks. Optional temporary [Discord](https://discord.gg/gK3y7WRRY) for coordinating contributor work, testing, and comparing results.
saintwolf commented 2026-11-26 17:58:23 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by saintwolf on 2026-11-26T17:58:23Z.


@Prime1997 Thanks for resolving the conflict on review/2316-main-8b957bec! Rebased onto e120925e (merges cleanly onto main 8b957bec with zero conflicts) at 22348324:

  • Also fixed direct_ps_ballot_uses_quad_ops_and_keeps_entry_exec_live_only in lanes.rs, which previously failed CI because helper_lane_masks_ps_code includes two quad-local DPP16 ops (0xB1, 0x4E) that now lower directly to dx.op.quadOp (updated the check to assert exactly those 2 quadOp calls while vopc_only right below still verifies VOPC itself emits 0 quadOp).
  • Full .\scripts\test.ps1 passed with 0 failures and a fresh 60 s scripts/smoke.ps1 run at 22348324 is updated in the PR description.
<!-- greyfinch-sync:ivall/xcl:comment:7199906829 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2316#issuecomment-7199906829). Originally posted by [saintwolf](https://github.com/saintwolf) on 2026-11-26T17:58:23Z. --- @Prime1997 Thanks for resolving the conflict on `review/2316-main-8b957bec`! Rebased onto `e120925e` (merges cleanly onto `main` `8b957bec` with zero conflicts) at `22348324`: - Also fixed `direct_ps_ballot_uses_quad_ops_and_keeps_entry_exec_live_only` in `lanes.rs`, which previously failed CI because `helper_lane_masks_ps_code` includes two quad-local DPP16 ops (`0xB1`, `0x4E`) that now lower directly to `dx.op.quadOp` (updated the check to assert exactly those 2 `quadOp` calls while `vopc_only` right below still verifies VOPC itself emits 0 `quadOp`). - Full `.\scripts\test.ps1` passed with 0 failures and a fresh 60 s `scripts/smoke.ps1` run at `22348324` is updated in the PR description.
SzczepanGrela commented 2026-11-26 18:29:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SzczepanGrela on 2026-11-26T18:29:35Z.


RX 9070 / Linux-Wine verification of current head 223483246da1ba05aecc9af2a5d8d69bbf55f69c against main 8b957bec6f82495aec940944c6bf47faa02db590. The focused rebase checks and GPU comparisons pass on the PR, including an added native-wave64 DPP mask fixture. This adds release/Wine/RDNA4 results to the older Windows reports.

Tested

RX 9070 (RADV GFX1201), Mesa 26.3.1-arch3.5, Ryzen 7 7700, CachyOS kernel 7.3.0-5-cachyos, GE-Proton11-12 / Wine 11.0 Staging, native d3d12/d3d12core/dxgi, vkd3d-proton 8293130ebe370b1+ (local asserts-disabled build), DXC 1.9.2602.17, Rust 1.97.1, release x86_64-pc-windows-gnu.

Separate source copies and targets, built with cargo test --offline --locked --release --target x86_64-pc-windows-gnu -p xcl --lib --no-run. Main received the three upstream tests. Both copies had identical test-only output observations and additional fixtures; original assertions were retained. Source and executable hashes were verified.

The exact head's parent is e120925e3abc9956a8b9bae631969d32e8ccd43c. Main's GPU source directory is byte-identical to that parent. Applying the four-file PR diff to current main also produced byte-identical changed files to the exact head; that integrated tree was checked in source only.

Selection through Wine main PR
Three new tests + seven rebase controls, threads 1 9 passed, 1 failed 10 passed, 0 failed
Same selection, threads 4 9 passed, 1 failed 10 passed, 0 failed
Two added fixtures, three fresh processes per source 2 passed, 0 failed each 2 passed, 0 failed each

All 10 harness invocations had 0 ignored and 0 capability skips. Main's sole failure was the transplanted ps_quad_local_swizzle_and_dpp_emit_direct_quad_ops IR assertion, 0 versus 4 expected QuadOp calls. GPU comparisons passed on both sources. The seven existing controls covered the packed dot-product lowering, root-window load IR and execution, and all four lanes::ps_ballot_tests, including the changed ballot assertion and helper-lane draw.

The original IR test passed on the head for both pixel translation settings: the symmetric quad program emitted 4 QuadOp, 0 QuadReadLaneAt, 0 WaveReadLaneAt, and one entry ballot. The broadcast/asymmetric case had the expected 1 QuadOp and 3 QuadReadLaneAt; the vertex control retained wave reads without quad intrinsics.

The added fixtures were:

  • The original fullscreen and diagonal pixel comparisons with logical wave64: true in both translators. This is a translation setting, not proof of the physical graphics wave size selected by the driver.
  • The original DPP16 row/bank/FI/BOUND control program extended to 64 lanes, setting both EXEC halves to alternating active lanes and restoring both before export. Direct and HLSL shaders have the explicit 64-lane wave property. All 64 lanes matched independently computed register values, including inactive destinations and upper-half lanes.

The captured fixtures produced 40 draws and 20 compute dispatches, including 12 native-wave64 dispatches. A separate verifier checked 5,120 fullscreen RGBA words and 5,120 DPP register words against independent formulas, with zero mismatches on either source. It also checked 5,120 diagonal RGBA words for direct/HLSL and cross-revision parity, plus the triangle's 28-pixel coverage mask. The six HLSL PS/CS control cases stayed byte-identical across revisions and repetitions.

For the diagonal fixture, the covered pixels (0,1), (2,3), (4,5), and (6,7) have all-zero outputs on both sources and both backends, under both logical wave settings. This is a parity observation; the check does not establish an independent console-ISA oracle for helper-lane values.

Environment: XCL_ADAPTER=AMD Radeon RX 9070, XCL_REQUIRE_GPU=wave64, XCL_NETWORK=0, XCL_DIRECT_DXIL=1, XCL_DXC_THREADS=1, native DLL overrides and private enabled caches. Fixtures explicitly call the direct and HLSL translators.

Not tested

Full workspace suite, retail shader corpora, smoke/title runs, merged-tree execution, physical graphics wave size, independent console helper-lane semantics, shader/PSO execution timing, or FPS/performance. Small owned synthetic shaders and inputs only.

AI use

OpenAI Codex (GPT-6; exact serving variant not exposed) reviewed the full diff, prepared the added fixtures and observations, built and ran both sources, independently checked source bytes, IR, GPU outputs and coverage, and wrote this report. Publication authorized by the account owner.

<!-- greyfinch-sync:ivall/xcl:comment:7200524196 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2316#issuecomment-7200524196). Originally posted by [SzczepanGrela](https://github.com/SzczepanGrela) on 2026-11-26T18:29:35Z. --- RX 9070 / Linux-Wine verification of current head `223483246da1ba05aecc9af2a5d8d69bbf55f69c` against main `8b957bec6f82495aec940944c6bf47faa02db590`. The focused rebase checks and GPU comparisons pass on the PR, including an added native-wave64 DPP mask fixture. This adds release/Wine/RDNA4 results to the older Windows reports. **Tested** RX 9070 (RADV GFX1201), Mesa `26.3.1-arch3.5`, Ryzen 7 7700, CachyOS kernel `7.3.0-5-cachyos`, GE-Proton11-12 / Wine 11.0 Staging, native d3d12/d3d12core/dxgi, vkd3d-proton `8293130ebe370b1+` (local asserts-disabled build), DXC `1.9.2602.17`, Rust `1.97.1`, release `x86_64-pc-windows-gnu`. Separate source copies and targets, built with `cargo test --offline --locked --release --target x86_64-pc-windows-gnu -p xcl --lib --no-run`. Main received the three upstream tests. Both copies had identical test-only output observations and additional fixtures; original assertions were retained. Source and executable hashes were verified. The exact head's parent is `e120925e3abc9956a8b9bae631969d32e8ccd43c`. Main's GPU source directory is byte-identical to that parent. Applying the four-file PR diff to current main also produced byte-identical changed files to the exact head; that integrated tree was checked in source only. | Selection through Wine | main | PR | |---|---|---| | Three new tests + seven rebase controls, threads 1 | 9 passed, 1 failed | 10 passed, 0 failed | | Same selection, threads 4 | 9 passed, 1 failed | 10 passed, 0 failed | | Two added fixtures, three fresh processes per source | 2 passed, 0 failed each | 2 passed, 0 failed each | All 10 harness invocations had 0 ignored and 0 capability skips. Main's sole failure was the transplanted `ps_quad_local_swizzle_and_dpp_emit_direct_quad_ops` IR assertion, `0` versus `4` expected `QuadOp` calls. GPU comparisons passed on both sources. The seven existing controls covered the packed dot-product lowering, root-window load IR and execution, and all four `lanes::ps_ballot_tests`, including the changed ballot assertion and helper-lane draw. The original IR test passed on the head for both pixel translation settings: the symmetric quad program emitted 4 `QuadOp`, 0 `QuadReadLaneAt`, 0 `WaveReadLaneAt`, and one entry ballot. The broadcast/asymmetric case had the expected 1 `QuadOp` and 3 `QuadReadLaneAt`; the vertex control retained wave reads without quad intrinsics. The added fixtures were: - The original fullscreen and diagonal pixel comparisons with logical `wave64: true` in both translators. This is a translation setting, not proof of the physical graphics wave size selected by the driver. - The original DPP16 row/bank/FI/BOUND control program extended to 64 lanes, setting both EXEC halves to alternating active lanes and restoring both before export. Direct and HLSL shaders have the explicit 64-lane wave property. All 64 lanes matched independently computed register values, including inactive destinations and upper-half lanes. The captured fixtures produced 40 draws and 20 compute dispatches, including 12 native-wave64 dispatches. A separate verifier checked 5,120 fullscreen RGBA words and 5,120 DPP register words against independent formulas, with zero mismatches on either source. It also checked 5,120 diagonal RGBA words for direct/HLSL and cross-revision parity, plus the triangle's 28-pixel coverage mask. The six HLSL PS/CS control cases stayed byte-identical across revisions and repetitions. For the diagonal fixture, the covered pixels `(0,1)`, `(2,3)`, `(4,5)`, and `(6,7)` have all-zero outputs on both sources and both backends, under both logical wave settings. This is a parity observation; the check does not establish an independent console-ISA oracle for helper-lane values. Environment: `XCL_ADAPTER=AMD Radeon RX 9070`, `XCL_REQUIRE_GPU=wave64`, `XCL_NETWORK=0`, `XCL_DIRECT_DXIL=1`, `XCL_DXC_THREADS=1`, native DLL overrides and private enabled caches. Fixtures explicitly call the direct and HLSL translators. **Not tested** Full workspace suite, retail shader corpora, smoke/title runs, merged-tree execution, physical graphics wave size, independent console helper-lane semantics, shader/PSO execution timing, or FPS/performance. Small owned synthetic shaders and inputs only. **AI use** OpenAI Codex (GPT-6; exact serving variant not exposed) reviewed the full diff, prepared the added fixtures and observations, built and ran both sources, independently checked source bytes, IR, GPU outputs and coverage, and wrote this report. Publication authorized by the account owner.
Decodere commented 2026-11-26 19:22:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-26T19:22:29Z.


Independent RTX 4060 (8 GB) / Windows 11 release verification of PR #2316 rebased head 223483246da1ba05aecc9af2a5d8d69bbf55f69c (exact parent & merge-base e120925e3abc9956a8b9bae631969d32e8ccd43c). Measurements and targeted GPU/unit test results only; not a full source review.

Setup

  • GPU: NVIDIA GeForce RTX 4060 (8 GB / 7956 MiB reported by D3D12), driver 32.0.16.2114 (NVIDIA 621.14, WDDM 3.2)
  • CPU / RAM / OS: Intel Core i5-11400F (6 cores / 12 threads), 32 GB RAM (31.9 GiB usable), Windows 11 Home 26200
  • Toolchain / caches: rustc 1.100.0 (0ef1bc386 2026-11-09), DXC 1.9.2609.5, release builds, quiet machine (zero concurrent builds/tests during timed runs; note gpu/dxil/* edits give 22348324 a fresh XCL_DIRECT_DXIL_SOURCE_ID namespace)
  • Workload: Retail workload title: 29640639 via scripts/smoke.ps1 -Seconds 60 (XCL_NETWORK=0, default flags, no input)

Targeted RTX 4060 release unit & GPU tests (22348324)

  • cargo test --release -p xcl --lib ps_quad_local_swizzle_and_dpp_emit_direct_quad_ops -- --nocapture: 1 passed, 0 failed, 0 ignored (0.01 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib gpu_ps_direct_quad_swizzle_and_dpp_match_hlsl -- --nocapture: 1 passed, 0 failed, 0 ignored (0.38 s, executed on RTX 4060, 0 SKIPPED).
  • cargo test --release -p xcl --lib gpu_direct_dpp16_row_bank_masks_and_fi_zero -- --nocapture: 1 passed, 0 failed, 0 ignored (0.23 s, executed on RTX 4060, 0 SKIPPED).
  • cargo test --release -p xcl --lib direct_ps_ballot_uses_quad_op -- --nocapture: 1 passed, 0 failed, 0 ignored (0.02 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib gpu::dxil::core_tests:: (3 consecutive parallel passes): 22 passed, 0 failed, 1 ignored on all 3 passes (0.51 s / 0.49 s / 0.50 s, 0 SKIPPED).
  • cargo test --release -p xcl --lib gpu::dxil::: 187 passed, 0 failed, 3 ignored (3.59 s; 1 SKIPPED: gpu::dxil::kernel::dispatch_chain_native_wave64_builds_whole skipped no wave64 on NVIDIA wave32 RTX 4060).

Paired 60 s RTX 4060 smoke (exact parent e120925e vs 22348324)

Both runs completed cleanly at steady 60/2 s pacing with 0 device removals and 0 crashes (22348324 vs e120925e xcl.log: 6,116 vs 6,114 MB peak/end local VRAM, 4,683 MB vs 4,651 MB end non-local VRAM, 19,513 vs 19,588 translated draws / 1,024 dispatches with 0 skipped).

Exact parent (e120925e):

xcl-smoke v1
commit: e120925e3abc9956a8b9bae631969d32e8ccd43c
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1602 (PresentX 1602)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 13979 MB

PR #2316 head (22348324):

xcl-smoke v1
commit: 223483246da1ba05aecc9af2a5d8d69bbf55f69c
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1585 (PresentX 1585)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14008 MB

Limits of coverage

  • Full workspace test suite was not run on 22348324 (only the 4 targeted tests individually, 3 parallel passes of gpu::dxil::core_tests::, all 187 passing tests in gpu::dxil::, release build, and exact-parent paired 60 s smokes); dispatch_chain_native_wave64_builds_whole skipped no wave64 on wave32 NVIDIA hardware.
  • Direct quad-op swizzle/DPP pixel-shader correctness against HLSL was verified on-GPU via gpu_ps_direct_quad_swizzle_and_dpp_match_hlsl and gpu_direct_dpp16_row_bank_masks_and_fi_zero; visual inspection of interactive in-world pixel shaders beyond the 60 s smoke was not performed.
  • Single discrete NVIDIA 8 GB GPU (RTX 4060) on native Windows 11; no AMD, Intel, or Wine/Linux run on this host.

AI use

Ran the targeted release GPU/unit tests, release build, and exact-parent paired quiet 60 s smoke runs with assistance from Google Antigravity (Gemini 4 Neon); all test counts, timings, memory figures, and smoke blocks were extracted directly from cargo test, xcl.log, and scripts/smoke.ps1 outputs.

<!-- greyfinch-sync:ivall/xcl:comment:7201514025 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2316#issuecomment-7201514025). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-26T19:22:29Z. --- **Independent RTX 4060 (8 GB) / Windows 11 release verification of PR #2316 rebased head `223483246da1ba05aecc9af2a5d8d69bbf55f69c`** (exact parent & merge-base `e120925e3abc9956a8b9bae631969d32e8ccd43c`). Measurements and targeted GPU/unit test results only; not a full source review. ### Setup - **GPU:** NVIDIA GeForce RTX 4060 (8 GB / `7956 MiB` reported by D3D12), driver `32.0.16.2114` (NVIDIA `621.14`, WDDM 3.2) - **CPU / RAM / OS:** Intel Core i5-11400F (6 cores / 12 threads), 32 GB RAM (`31.9 GiB` usable), Windows 11 Home `26200` - **Toolchain / caches:** `rustc 1.100.0 (0ef1bc386 2026-11-09)`, DXC `1.9.2609.5`, release builds, quiet machine (zero concurrent builds/tests during timed runs; note `gpu/dxil/*` edits give `22348324` a fresh `XCL_DIRECT_DXIL_SOURCE_ID` namespace) - **Workload:** Retail workload `title: 29640639` via `scripts/smoke.ps1 -Seconds 60` (`XCL_NETWORK=0`, default flags, no input) ### Targeted RTX 4060 release unit & GPU tests (`22348324`) - `cargo test --release -p xcl --lib ps_quad_local_swizzle_and_dpp_emit_direct_quad_ops -- --nocapture`: **1 passed, 0 failed, 0 ignored** (`0.01 s`, `0` `SKIPPED`). - `cargo test --release -p xcl --lib gpu_ps_direct_quad_swizzle_and_dpp_match_hlsl -- --nocapture`: **1 passed, 0 failed, 0 ignored** (`0.38 s`, executed on RTX 4060, `0` `SKIPPED`). - `cargo test --release -p xcl --lib gpu_direct_dpp16_row_bank_masks_and_fi_zero -- --nocapture`: **1 passed, 0 failed, 0 ignored** (`0.23 s`, executed on RTX 4060, `0` `SKIPPED`). - `cargo test --release -p xcl --lib direct_ps_ballot_uses_quad_op -- --nocapture`: **1 passed, 0 failed, 0 ignored** (`0.02 s`, `0` `SKIPPED`). - `cargo test --release -p xcl --lib gpu::dxil::core_tests::` (3 consecutive parallel passes): **22 passed, 0 failed, 1 ignored** on all 3 passes (`0.51 s` / `0.49 s` / `0.50 s`, `0` `SKIPPED`). - `cargo test --release -p xcl --lib gpu::dxil::`: **187 passed, 0 failed, 3 ignored** (`3.59 s`; `1` `SKIPPED`: `gpu::dxil::kernel::dispatch_chain_native_wave64_builds_whole` skipped `no wave64` on NVIDIA wave32 RTX 4060). ### Paired 60 s RTX 4060 smoke (exact parent `e120925e` vs `22348324`) Both runs completed cleanly at steady 60/2 s pacing with `0` device removals and `0` crashes (`22348324` vs `e120925e` `xcl.log`: `6,116` vs `6,114 MB` peak/end local VRAM, `4,683 MB` vs `4,651 MB` end non-local VRAM, `19,513` vs `19,588` translated draws / `1,024` dispatches with `0` skipped). Exact parent (`e120925e`): ``` xcl-smoke v1 commit: e120925e3abc9956a8b9bae631969d32e8ccd43c gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1602 (PresentX 1602) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 13979 MB ``` PR #2316 head (`22348324`): ``` xcl-smoke v1 commit: 223483246da1ba05aecc9af2a5d8d69bbf55f69c gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1585 (PresentX 1585) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14008 MB ``` ### Limits of coverage - Full workspace test suite was not run on `22348324` (only the 4 targeted tests individually, 3 parallel passes of `gpu::dxil::core_tests::`, all `187` passing tests in `gpu::dxil::`, release build, and exact-parent paired 60 s smokes); `dispatch_chain_native_wave64_builds_whole` skipped `no wave64` on wave32 NVIDIA hardware. - Direct quad-op swizzle/DPP pixel-shader correctness against HLSL was verified on-GPU via `gpu_ps_direct_quad_swizzle_and_dpp_match_hlsl` and `gpu_direct_dpp16_row_bank_masks_and_fi_zero`; visual inspection of interactive in-world pixel shaders beyond the 60 s smoke was not performed. - Single discrete NVIDIA 8 GB GPU (`RTX 4060`) on native Windows 11; no AMD, Intel, or Wine/Linux run on this host. ### AI use Ran the targeted release GPU/unit tests, release build, and exact-parent paired quiet 60 s smoke runs with assistance from Google Antigravity (Gemini 4 Neon); all test counts, timings, memory figures, and smoke blocks were extracted directly from `cargo test`, `xcl.log`, and `scripts/smoke.ps1` outputs.
JJAutoCompare commented 2026-11-27 11:03:07 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-27T11:03:07Z.


Tested

Clean 223483246da1ba05aecc9af2a5d8d69bbf55f69c on Windows 11 build 26200.9974, Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust 1.100.0 MSVC, DXC/DXIL 1.9.2609.5, unoptimized test profile. Built with cargo test --locked -j 2 -p xcl --lib --no-run. Ran the resulting executable with --exact <filter> --test-threads=1 --nocapture for each synthetic fixture:

  • CPU: gpu::dxil::core_tests::ps_quad_local_swizzle_and_dpp_emit_direct_quad_ops and gpu::dxil::lanes::ps_ballot_tests::direct_ps_ballot_uses_quad_ops_and_keeps_entry_exec_live_only both passed.
  • Arc: gpu::dxil::core_tests::gpu_ps_direct_quad_swizzle_and_dpp_match_hlsl matched two 8×8 float32 RGBA HLSL-reference draws and the analytical values at all 64 fullscreen pixels. The diagonal draw used HLSL parity. gpu::dxil::core_tests::gpu_direct_dpp16_row_bank_masks_and_fi_zero matched all 160 VGPR values across 32 logical lanes under partial EXEC.

Four passed, zero failed, ignored, or skipped. The two Arc processes used XCL_ADAPTER=A770 and separate shared mutex acquisitions. Executable SHA-256 matched before, under, and after the lock.

Not tested

Actual hardware lane width, native wave64 GPU execution, performance, the full workspace, and retail smoke.

AI use

T3 Code / Codex (gpt-6.2-sol) selected, ran, and independently reran the checked-in tests.

<!-- greyfinch-sync:ivall/xcl:comment:7216620354 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2316#issuecomment-7216620354). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-27T11:03:07Z. --- **Tested** Clean `223483246da1ba05aecc9af2a5d8d69bbf55f69c` on Windows 11 build 26200.9974, Ryzen 7 3800X, Intel Arc A770 driver 32.0.101.9175, Rust 1.100.0 MSVC, DXC/DXIL 1.9.2609.5, unoptimized test profile. Built with `cargo test --locked -j 2 -p xcl --lib --no-run`. Ran the resulting executable with `--exact <filter> --test-threads=1 --nocapture` for each synthetic fixture: - CPU: `gpu::dxil::core_tests::ps_quad_local_swizzle_and_dpp_emit_direct_quad_ops` and `gpu::dxil::lanes::ps_ballot_tests::direct_ps_ballot_uses_quad_ops_and_keeps_entry_exec_live_only` both passed. - Arc: `gpu::dxil::core_tests::gpu_ps_direct_quad_swizzle_and_dpp_match_hlsl` matched two 8×8 float32 RGBA HLSL-reference draws and the analytical values at all 64 fullscreen pixels. The diagonal draw used HLSL parity. `gpu::dxil::core_tests::gpu_direct_dpp16_row_bank_masks_and_fi_zero` matched all 160 VGPR values across 32 logical lanes under partial EXEC. Four passed, zero failed, ignored, or skipped. The two Arc processes used `XCL_ADAPTER=A770` and separate shared mutex acquisitions. Executable SHA-256 matched before, under, and after the lock. **Not tested** Actual hardware lane width, native wave64 GPU execution, performance, the full workspace, and retail smoke. **AI use** T3 Code / Codex (`gpt-6.2-sol`) selected, ran, and independently reran the checked-in tests.
Prime1997 commented 2026-11-28 23:26:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Prime1997 on 2026-11-28T23:26:29Z.

Review: APPROVED


Approving on a merge-check run on an RTX 3060 Ti 8 GB (driver 32.0.16.1714, i5-10400, Windows 11 Pro 26200, Rust 1.100.0).

  • Head 223483246da1ba05aecc9af2a5d8d69bbf55f69c merged cleanly onto main 7db2f391, and the workspace builds.
  • cargo test --workspace --no-fail-fast -- --test-threads=4, with --skip for three uma_driver tests that can end the library harness on this PC on plain main too: 2,594 passed, 0 failed, 49 ignored, 28 SKIPPED (21 of them no wave64). main with the same skips: 2,591 passed, 0 failed. All three new tests pass, including the GPU parity against the HLSL path on wave32.
  • 60 s scripts/smoke.ps1 with XCL_PREPARE=0: 1,405 frames against 1,385 on main, peak commit 15,507 MB against 15,626 MB, no device removal, no crash. The smoke stays in menus and video, so it runs few of the changed pixel shaders.
  • Runtime hunks read in full, no blocking finding. The AMD side (quadOp in pixel shaders, #134) rests on the AMD reports already here; this card cannot add to it.

AI use: Claude Code ran the builds, tests and smoke on Prime's PC and wrote this text. Approving is Prime's decision.

I use a temporary Discord to coordinate my work. Anyone helping test XCL or compare results is welcome. Test coordination on Discord

<!-- greyfinch-sync:ivall/xcl:review:6100534454 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2316#pullrequestreview-6100534454). Originally posted by [Prime1997](https://github.com/Prime1997) on 2026-11-28T23:26:29Z. **Review:** APPROVED --- Approving on a merge-check run on an RTX 3060 Ti 8 GB (driver 32.0.16.1714, i5-10400, Windows 11 Pro 26200, Rust 1.100.0). - Head `223483246da1ba05aecc9af2a5d8d69bbf55f69c` merged cleanly onto `main` `7db2f391`, and the workspace builds. - `cargo test --workspace --no-fail-fast -- --test-threads=4`, with `--skip` for three `uma_driver` tests that can end the library harness on this PC on plain `main` too: 2,594 passed, 0 failed, 49 ignored, 28 SKIPPED (21 of them no wave64). `main` with the same skips: 2,591 passed, 0 failed. All three new tests pass, including the GPU parity against the HLSL path on wave32. - 60 s `scripts/smoke.ps1` with `XCL_PREPARE=0`: 1,405 frames against 1,385 on `main`, peak commit 15,507 MB against 15,626 MB, no device removal, no crash. The smoke stays in menus and video, so it runs few of the changed pixel shaders. - Runtime hunks read in full, no blocking finding. The AMD side (quadOp in pixel shaders, #134) rests on the AMD reports already here; this card cannot add to it. AI use: Claude Code ran the builds, tests and smoke on Prime's PC and wrote this text. Approving is Prime's decision. I use a temporary Discord to coordinate my work. Anyone helping test XCL or compare results is welcome. [Test coordination on Discord](https://discord.gg/6B4TykyC4W)
Foniass commented 2026-12-01 07:48:52 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:48:52Z.


Triage (#1607) – head a4b2c19

No open or merged PR makes the same change; #3455 touches the neighbouring PS ballot path (Lw::ballot_ps) and goes the other way, from quadOp to per-lane QuadReadLaneAt.
Risk in the diff: Lw::read_lane_quad (dxil/lanes.rs) now emits dx.op.quadOp on arbitrary DPP / ds_swizzle_b32 source values in pixel shaders. #134 (comment in lower_valu.rs) and #3455 both report amdxc64 on RDNA2 crashing in the PSO build on quadOp of values that derive from WaveReadLaneAt, which such a source can be (e.g. after v_readfirstlane). The PR was only run on NVIDIA; it needs an AMD run on a title before it goes in, or the QuadReadLaneAt form for the three cross reads.
The quad maps (swizzle_quad_map, dpp16_quad_map, dpp8_quad_map) and the folded ROW_MASK / BANK_MASK / FI handling match the previous lowering.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7304511767 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2316#issuecomment-7304511767). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T07:48:52Z. --- **Triage (#1607)** – head a4b2c19 No open or merged PR makes the same change; #3455 touches the neighbouring PS ballot path (`Lw::ballot_ps`) and goes the other way, from `quadOp` to per-lane `QuadReadLaneAt`. Risk in the diff: `Lw::read_lane_quad` (dxil/lanes.rs) now emits `dx.op.quadOp` on arbitrary DPP / `ds_swizzle_b32` source values in pixel shaders. #134 (comment in lower_valu.rs) and #3455 both report amdxc64 on RDNA2 crashing in the PSO build on `quadOp` of values that derive from `WaveReadLaneAt`, which such a source can be (e.g. after `v_readfirstlane`). The PR was only run on NVIDIA; it needs an AMD run on a title before it goes in, or the `QuadReadLaneAt` form for the three cross reads. The quad maps (`swizzle_quad_map`, `dpp16_quad_map`, `dpp8_quad_map`) and the folded ROW_MASK / BANK_MASK / FI handling match the previous lowering. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
ClosetPie107 commented 2026-12-02 17:13:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ClosetPie107 on 2026-12-02T17:13:09Z.


Linux / AMD RDNA4 (RADV, Wine + vkd3d-proton): full test suite on a4b2c19

Merged onto main 5eaadb54 (clean merge) and compared with main run twice on the same machine.

Setup

  • AMD Radeon RX 9070 16 GB (RDNA4, RADV GFX1201, Mesa 26.3.1), Ryzen 5 9600X, 30 GiB RAM, CachyOS (kernel 7.3.7)
  • Wine 11.23 (system), stock vkd3d-proton v3.1-83-gcae8353ed and DXVK dxgi.dll from GE-Proton11-16, DXC 1.9.2609.5
  • Debug build, cross-compiled for x86_64-pc-windows-msvc with cargo-xwin; test binaries run under Wine

Tested: cargo xwin test --workspace --target x86_64-pc-windows-msvc --no-fail-fast -- --test-threads=4 --skip <31 tests>

passed failed ignored
main 5eaadb54 2769 177 52
this PR merged 2772 177 52
  • Tests that fail with this PR and pass on main: none.
  • Tests this PR adds: 3 of 3 pass (ps_quad_local_swizzle_and_dpp_emit_direct_quad_ops, gpu_ps_direct_quad_swizzle_and_dpp_match_hlsl, gpu_direct_dpp16_row_bank_masks_and_fi_zero).
About the failures on main and the 31 skipped tests (same for every PR in this batch)
  • Most of main's 177 failures under Wine come from #175: once a test has set up the real device, vkd3d-proton refuses the command allocators XCL adopts (d3d12_command_list_Reset: Invalid command allocator), and later tests get E_INVALIDARG (0x80070057). Running vkd3d-proton master with its vtable check taken out, hle::d3d12x::sparse::tests goes from 106 passed / 38 failed to 144 / 0.
  • The 31 skipped tests make vkd3d-proton's dxil-spirv call std::terminate() (Cannot reliably convert LLVM pointer type, we cannot differentiate between Function and Private), which kills the whole test binary. They are the split-wave64, dispatch-chain and bridged-mask GPU tests, gpu_compute_mode_dispatch_abi, gpu_compute_thread_limits_leave_the_lanes_past_them_out, the two gpu_mesh_mode_* tests, and console_wave64_compute_through_the_pso_hook_dispatch_and_read_back, plus serialize_root_signature_strips_console_flags_and_preserves_pc_flags, whose null descriptor vkd3d-proton dereferences. The dxil-spirv ones crash the same way with vkd3d-proton master (f8c1cae8, dxil-spirv 93ab44c5).
  • main was run twice: same counts, same failure set. SKIPPED lines (same as main): no heap windows (2), no D3D12 debug layer (2-3), driver cache control not implemented in vkd3d-proton (1).

Not tested: Windows, NVIDIA, a retail title / scripts/smoke.ps1, a review of the diff. This is a test report, not a merge-check.

AI use: omp (Claude Opus 5.5) merged, built and ran the suites on this machine, compared the results with main, and drafted this report. The user asked for it to be posted.

<!-- greyfinch-sync:ivall/xcl:comment:7353062159 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2316#issuecomment-7353062159). Originally posted by [ClosetPie107](https://github.com/ClosetPie107) on 2026-12-02T17:13:09Z. --- **Linux / AMD RDNA4 (RADV, Wine + vkd3d-proton): full test suite on `a4b2c19`** Merged onto `main` `5eaadb54` (clean merge) and compared with `main` run twice on the same machine. **Setup** - AMD Radeon RX 9070 16 GB (RDNA4, RADV GFX1201, Mesa 26.3.1), Ryzen 5 9600X, 30 GiB RAM, CachyOS (kernel 7.3.7) - Wine 11.23 (system), stock vkd3d-proton `v3.1-83-gcae8353ed` and DXVK `dxgi.dll` from GE-Proton11-16, DXC 1.9.2609.5 - Debug build, cross-compiled for `x86_64-pc-windows-msvc` with `cargo-xwin`; test binaries run under Wine **Tested:** `cargo xwin test --workspace --target x86_64-pc-windows-msvc --no-fail-fast -- --test-threads=4 --skip <31 tests>` | | passed | failed | ignored | |---|---|---|---| | `main` `5eaadb54` | 2769 | 177 | 52 | | this PR merged | 2772 | 177 | 52 | - **Tests that fail with this PR and pass on `main`:** none. - **Tests this PR adds:** 3 of 3 pass (`ps_quad_local_swizzle_and_dpp_emit_direct_quad_ops`, `gpu_ps_direct_quad_swizzle_and_dpp_match_hlsl`, `gpu_direct_dpp16_row_bank_masks_and_fi_zero`). <details><summary>About the failures on <code>main</code> and the 31 skipped tests (same for every PR in this batch)</summary> - Most of `main`'s 177 failures under Wine come from #175: once a test has set up the real device, vkd3d-proton refuses the command allocators XCL adopts (`d3d12_command_list_Reset: Invalid command allocator`), and later tests get `E_INVALIDARG` (`0x80070057`). Running vkd3d-proton master with its vtable check taken out, `hle::d3d12x::sparse::tests` goes from 106 passed / 38 failed to 144 / 0. - The 31 skipped tests make vkd3d-proton's dxil-spirv call `std::terminate()` (`Cannot reliably convert LLVM pointer type, we cannot differentiate between Function and Private`), which kills the whole test binary. They are the split-wave64, dispatch-chain and bridged-mask GPU tests, `gpu_compute_mode_dispatch_abi`, `gpu_compute_thread_limits_leave_the_lanes_past_them_out`, the two `gpu_mesh_mode_*` tests, and `console_wave64_compute_through_the_pso_hook_dispatch_and_read_back`, plus `serialize_root_signature_strips_console_flags_and_preserves_pc_flags`, whose null descriptor vkd3d-proton dereferences. The dxil-spirv ones crash the same way with vkd3d-proton master (`f8c1cae8`, dxil-spirv `93ab44c5`). - `main` was run twice: same counts, same failure set. `SKIPPED` lines (same as `main`): no heap windows (2), no D3D12 debug layer (2-3), driver cache control not implemented in vkd3d-proton (1). </details> **Not tested:** Windows, NVIDIA, a retail title / `scripts/smoke.ps1`, a review of the diff. This is a test report, not a `merge-check`. **AI use:** omp (Claude Opus 5.5) merged, built and ran the suites on this machine, compared the results with `main`, and drafted this report. The user asked for it to be posted.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2316:upstream-pr/2316'
git switch 'upstream-pr/2316'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2316'
git switch 'upstream-pr/2316'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2316'
git switch 'upstream-pr/2316'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2316'
git switch 'main'
git merge --squash 'upstream-pr/2316'
git switch 'main'
git merge --ff-only 'upstream-pr/2316'
git switch 'main'
git merge 'upstream-pr/2316'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2306
No description provided.