shader: route general DPP permutations with integer masks #1023
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1030"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.pyand the fullbinarymode 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.check_dpp_int32_drawruns. The bit selection formula was also checked for every permutation over four lanes on the CPU.For AMD verification, build
offscreen_checkand runctest --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.Imported from R0Y00/Xbox2Windows. Originally posted by lantiumBot on 2026-11-23T22:44:29Z.
Follow-up to the #1024 check: all 49
pixel_aotdraw modes on the RX 9060 XT (driver 32.0.32029.2010), one run each, with the translator from364eb996and from its parentee04692. Same renderer build for both; nooffscreen_checksource differs between them.364eb996: 48 pass, 1 fail (pixel_aot_comparisons, the #958 row).ee04692: 47 pass, 2 fail (pixel_aot_comparisonsandpixel_aot_dpp_extra).So on this adapter the change fixes
pixel_aot_dpp_extraand 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.