shader: lower bounded DS lane rotations in compute #850
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/856"
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 stan495 on 2026-11-23T13:51:17Z.
Change
Lower
ds_bpermute_b32gather andds_permute_b32scatter in 32×1×1 gfx1030 compute groups. The supported byte address is a verified lane rotation with zero DS offset. The lowering uses separate groupshared storage per operation and synchronizes before reading the forward or inverse mapping.Verification
Tested
58408d1based ond4620fd. On WARP and hardware, each dispatch compared all 320 UAV words against the CPU reference, including the untouched tail. The fixtures exercised one and three groups. All four CTest entries passed with zero skips. Windows 11 25H2 build 26200.9974, DXC 1.8.2502.11, Radeon RX 7900 XTX driver 32.0.32029.2010, WARP 10.0.26100.9818. The D3D12 debug layer reported zero errors and warnings.Reversing the HLSL rotation mismatches at word 0, 5 versus 27 for gather and 27 versus 5 for scatter. The controls also reject unknown addresses or source words, masked EXEC, non-zero DS offsets and missing waits.
LLVM 15.0.7 assembled the original gfx1030 wave32 fixtures, decoded the exact DS instructions and reproduced the HLSL through the compute CLI. The existing gfx1013 compute binary fixtures and the LLVM-enabled RDNA2 disassembler suite also passed. The coverage records include each new DS mnemonic.
AI-assisted (Codex and DeepSeek Harness).