shader: route general DPP permutations with integer masks #1030

Manually merged
github merged 1 commit from gh-pr/1030/head into gh-pr/1030/base 2026-11-26 22:36:16 +00:00
Owner

@⁠R0Y00 on GitHub · 2026-11-23 22:10 UTC · original
R0Y00:codex/quad-dpp-bit-mask → main · +8 −1 · 2 files · 1 commits · merged 2026-11-23 22:33 UTC

Refs #1024.

General quad permutations now select the same four fixed-index quad reads with integer masks. Identity, fixed swaps and broadcast keep their existing emission. This preserves the strict test outputs and does not choose a path by adapter.

The two RDNA 4 reports show a uniform word becoming zero after the lane-dependent ternary. Rebuilding a focused shader with the masks produces four constant-index DXIL quad reads and no select or conditional branch. The driver result still needs independent AMD verification.

Local checks on source-built inputs:

  • python -B tests/pixel_aot_check.py and the full binary mode with LLVM 15 pass.
  • python -B tests/pixel_aot_check.py draw-dpp-extra <dxc> <offscreen_check> <warp|hardware> passed on in-box WARP and RTX 4060 Laptop. The existing wrap and varying-lane controls ran.
  • The same renderer passed the two check_dpp_int32_draw runs. The bit selection formula was also checked for every permutation over four lanes on the CPU.

For AMD verification, build offscreen_check and run ctest --preset release --no-tests=error -R '^pixel_aot_dpp_extra_hardware$' -V. Compare the original and this candidate using the same adapter and driver. Report the full-buffer result, DXC version and whether the original still reproduces.

**@⁠R0Y00** on GitHub · 2026-11-23 22:10 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1030) `R0Y00:codex/quad-dpp-bit-mask` → `main` · +8 −1 · 2 files · 1 commits · merged 2026-11-23 22:33 UTC Refs #1024. General quad permutations now select the same four fixed-index quad reads with integer masks. Identity, fixed swaps and broadcast keep their existing emission. This preserves the strict test outputs and does not choose a path by adapter. The two RDNA 4 reports show a uniform word becoming zero after the lane-dependent ternary. Rebuilding a focused shader with the masks produces four constant-index DXIL quad reads and no select or conditional branch. The driver result still needs independent AMD verification. Local checks on source-built inputs: - `python -B tests/pixel_aot_check.py` and the full `binary` mode with LLVM 15 pass. - `python -B tests/pixel_aot_check.py draw-dpp-extra <dxc> <offscreen_check> <warp|hardware>` passed on in-box WARP and RTX 4060 Laptop. The existing wrap and varying-lane controls ran. - The same renderer passed the two `check_dpp_int32_draw` runs. The bit selection formula was also checked for every permutation over four lanes on the CPU. For AMD verification, build `offscreen_check` and run `ctest --preset release --no-tests=error -R '^pixel_aot_dpp_extra_hardware$' -V`. Compare the original and this candidate using the same adapter and driver. Report the full-buffer result, DXC version and whether the original still reproduces.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:36:14 +00:00
github manually merged commit 364eb996bd into gh-pr/1030/base 2026-11-26 22:36:16 +00:00
Author
Owner

@⁠lantiumBot on GitHub · 2026-11-23 22:44 UTC · original

Follow-up to the #1024 check: all 49 pixel_aot draw modes on the RX 9060 XT (driver 32.0.32029.2010), one run each, with the translator from 364eb996 and from its parent ee04692. Same renderer build for both; no offscreen_check source differs between them.

  • 364eb996: 48 pass, 1 fail (pixel_aot_comparisons, the #958 row).
  • ee04692: 47 pass, 2 fail (pixel_aot_comparisons and pixel_aot_dpp_extra).

So on this adapter the change fixes pixel_aot_dpp_extra and no other draw mode changes verdict. Hardware only, one run per mode, debug layer unavailable; the 49 modes were not rerun on WARP.

AI-assisted (Claude Code - Fable 5.2); runs executed locally on the adapter above.

**@⁠lantiumBot** on GitHub · 2026-11-23 22:44 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1030#issuecomment-7116124759) Follow-up to the #1024 check: all 49 `pixel_aot` draw modes on the RX 9060 XT (driver 32.0.32029.2010), one run each, with the translator from `364eb996` and from its parent `ee04692`. Same renderer build for both; no `offscreen_check` source differs between them. - `364eb996`: 48 pass, 1 fail (`pixel_aot_comparisons`, the #958 row). - `ee04692`: 47 pass, 2 fail (`pixel_aot_comparisons` and `pixel_aot_dpp_extra`). So on this adapter the change fixes `pixel_aot_dpp_extra` and no other draw mode changes verdict. Hardware only, one run per mode, debug layer unavailable; the 49 modes were not rerun on WARP. AI-assisted (Claude Code - Fable 5.2); runs executed locally on the adapter above.
This discussion has been locked. Commenting is limited to contributors.
No description provided.