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

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

@⁠saintwolf on GitHub · 2026-11-25 13:40 UTC · original
saintwolf:dxil/ps-quad-lane-reads → main · +470 −41 · 4 files · 1 commits · open

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.
  • 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), and gpu_direct_dpp16_row_bank_masks_and_fi_zero.

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).
  • .\scripts\test.ps1 (cargo build --workspace + cargo test --workspace -- --test-threads=4, debug): 1,253 passed, 0 failed, 46 ignored across 23 test binaries. SKIPPED on this adapter: 20 no wave64, 3 per-lane #1426 refusals (V_CVT_F16_F32, V_PK_MUL_F16, V_MUL_F16), 1 no heap windows, 1 no xgameruntime.dll, 1 cannot disable the driver cache (0x887A002D). All 3 new tests passed with 0 skips.
  • Retail shader corpus sweep (xcl shaders <pack> --direct --sample 500 --seed 7 --max-bytes 100000 --validate --threads 8, release): 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: 1a0bbe3a2ba91ea8f5b6fc29130a053868d3c9e6
gpu: NVIDIA GeForce RTX 4070 SUPER
title: 3c290c16
seconds: 60
exit: 0x0
frames shown: 1615 (PresentX 1615)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15800 MB

PR head:

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

Not tested

  • Native wave64 GPUs (AMD / Intel) and Linux / Wine / vkd3d-proton.
  • Runtime pixel-shader GPU execution time (FPS delta) under XCL_DIRECT_DXIL=all.
  • Sample-gated tests (XCL_SAMPLE_* env vars unset during .\scripts\test.ps1).
  • Note: the 60 s smoke runs use XCL's default HLSL path, so they verify no runtime regression rather than exercising the Direct DXIL pixel-shader path directly.

AI use

  • Antigravity (Gemini 4 Neon): analyzed open PRs and retail DXIL output, implemented the quad-local lowering and tests, ran the test suite, corpus sweep, cold PSO measurements, and paired smoke runs locally, and drafted this description.
**@⁠saintwolf** on GitHub · 2026-11-25 13:40 UTC · [original](https://github.com/xcl-dev/xcl/pull/2316) `saintwolf:dxil/ps-quad-lane-reads` → `main` · +470 −41 · 4 files · 1 commits · open 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`. - `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), and `gpu_direct_dpp16_row_bank_masks_and_fi_zero`. **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`). - `.\scripts\test.ps1` (`cargo build --workspace` + `cargo test --workspace -- --test-threads=4`, debug): **1,253 passed, 0 failed, 46 ignored** across 23 test binaries. `SKIPPED` on this adapter: 20 `no wave64`, 3 per-lane `#1426` refusals (`V_CVT_F16_F32`, `V_PK_MUL_F16`, `V_MUL_F16`), 1 `no heap windows`, 1 `no xgameruntime.dll`, 1 `cannot disable the driver cache (0x887A002D)`. All 3 new tests passed with 0 skips. - Retail shader corpus sweep (`xcl shaders <pack> --direct --sample 500 --seed 7 --max-bytes 100000 --validate --threads 8`, release): **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: 1a0bbe3a2ba91ea8f5b6fc29130a053868d3c9e6 gpu: NVIDIA GeForce RTX 4070 SUPER title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1615 (PresentX 1615) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15800 MB ``` PR head: ``` xcl-smoke v1 commit: 83fc1bdb1ffd39641a428eab31e6f099d0017168 gpu: NVIDIA GeForce RTX 4070 SUPER title: 3c290c16 seconds: 60 exit: 0x0 frames shown: 1592 (PresentX 1592) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16035 MB ``` **Not tested** - Native wave64 GPUs (AMD / Intel) and Linux / Wine / vkd3d-proton. - Runtime pixel-shader GPU execution time (FPS delta) under `XCL_DIRECT_DXIL=all`. - Sample-gated tests (`XCL_SAMPLE_*` env vars unset during `.\scripts\test.ps1`). - Note: the 60 s smoke runs use XCL's default HLSL path, so they verify no runtime regression rather than exercising the Direct DXIL pixel-shader path directly. **AI use** - Antigravity (Gemini 4 Neon): analyzed open PRs and retail DXIL output, implemented the quad-local lowering and tests, ran the test suite, corpus sweep, cold PSO measurements, and paired smoke runs locally, and drafted this description.
In Direct DXIL pixel shaders, quad-local ds_swizzle_b32, DPP16, and DPP8 reads previously went through Lw::rla(), emitting 5 WaveReadLaneAt, 1 WaveActiveBallot, 4 QuadReadLaneAt, and ~40 select/bit ops only to discard the cross-wave path via same_quad.

Add Lw::quad_lane and Lw::read_lane_quad to emit single-instruction QuadOp (ReadAcrossX/Y/Diagonal), single QuadReadLaneAt broadcasts, identity pass-through, or minimal distinct QuadReadLaneAt selects in pixel shaders while keeping WaveReadLaneAt in non-pixel stages. Also fold constant DPP16 ROW_MASK/BANK_MASK (0xF/0x0), FI=1, and always-valid controls.

Measured on 498 sampled retail shaders (seed 7, up to 100 KB, all 498 dxil.dll validated): total DXIL -724 KB (-1.59%), 234 PS -719 KB (-3.28%, up to -8.2%), WaveReadLaneAt in quad-heavy PS cut by 57-100%.

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

@⁠luckyteagirl on GitHub · 2026-11-25 13:49 UTC · original

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.

**@⁠luckyteagirl** on GitHub · 2026-11-25 13:49 UTC · [original](https://github.com/xcl-dev/xcl/pull/2316#issuecomment-7164355468) 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.
Author
Owner

@⁠saintwolf on GitHub · 2026-11-25 14:02 UTC · original

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

**@⁠saintwolf** on GitHub · 2026-11-25 14:02 UTC · [original](https://github.com/xcl-dev/xcl/pull/2316#issuecomment-7164658290) Force-pushed the same commit as my username and e-mail was not correct for this GH account
Author
Owner

@⁠upipibi on GitHub · 2026-11-25 14:05 UTC · original

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.

**@⁠upipibi** on GitHub · 2026-11-25 14:05 UTC · [original](https://github.com/xcl-dev/xcl/pull/2316#issuecomment-7164751999) 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.
Author
Owner

@⁠nnonno91 on GitHub · 2026-11-25 14:44 UTC · original

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.

**@⁠nnonno91** on GitHub · 2026-11-25 14:44 UTC · [original](https://github.com/xcl-dev/xcl/pull/2316#issuecomment-7165737008) 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.
Author
Owner

@⁠oni-swr on GitHub · 2026-11-25 15:26 UTC · original

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.

**@⁠oni-swr** on GitHub · 2026-11-25 15:26 UTC · [original](https://github.com/xcl-dev/xcl/pull/2316#issuecomment-7166843007) 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.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 17:52 UTC · original

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

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

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 17:52 UTC · [original](https://github.com/xcl-dev/xcl/pull/2316#issuecomment-7170129382) 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!
This pull request has changes conflicting with the target branch.
  • crates/xcl/src/gpu/dxil/core_tests.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

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