shader: lower s_cselect_b64 in pixel_aot #625
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/631"
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 lambirou on 2026-11-22T16:38:06Z.
Change
Lower
s_cselect_b64inpixel_aotusing the scalar ALU profile from #279. A tracked SCC selects both dwords from the same source and is preserved for subsequent instructions. Both operands are read before updating the aligned numeric SGPR pair, including when the destination aliases a source.Verification
Tested
0fe68a2on Windows 11 build 26300. WARP10.0.26100.10068and AMD Radeon RX 9060 XT driver32.0.32029.2010ran with the D3D12 debug layer unavailable.CTest passed all 12 checks, including 11 WARP tests and the scalar draw on Radeon, with zero skips. The Python checks and LLVM 23.1.5 binary round-trip passed.
Evidence
The source-built MIT fixture reads back four unsigned words. Both dwords of the selected pair reach the first two channels. A following select between
0and-1exposes SCC in the other channels. Swapping the first select's inputs produces the expected mismatch for all three inputs on both adapters. Rejection cases exercise untracked SCC, invalid pairs, EXEC operands, and pending scalar loads.The scoped
pixel_aot_blend_scalarmeasurement adds one SOP2 form, from 139 to 140 of 1,968 in gfx1013 and from 135 to 136 of 1,863 in the gfx1030 reference. Both adapters produced identical coverage records.Checklist
AI-assisted implementation and test preparation. The reported checks were run locally.