shader: route general DPP permutations with integer masks #1023

Merged
R0Y00 merged 1 commit from upstream-pr/1030 into main 2026-11-23 22:33:42 +00:00
R0Y00 commented 2026-11-23 22:10:19 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T22:10:19Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6569857218 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1030). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T22:10:19Z. --- 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.
upstream-sync closed this pull request 2026-11-24 06:45:56 +00:00
lantiumBot commented 2026-11-24 06:49:49 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lantiumBot on 2026-11-23T22:44:29Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7116124759 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1030#issuecomment-7116124759). Originally posted by [lantiumBot](https://github.com/lantiumBot) on 2026-11-23T22:44:29Z. --- 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.
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
R0Y00/Xbox2Windows!1023
No description provided.