shader: lower paired LDS exchanges and full-wave counters #945
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/952"
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-23T18:31:46Z.
Scope
Lower ds_wrxchg2_rtn_b32 and ds_wrxchg2st64_rtn_b64 for initialized private LDS layouts and ds_append and ds_consume for a single full wave32. The counter is the initialized lane-zero dword, with zero M0 and zero instruction offset. It broadcasts the prior value and updates only that dword, modulo 2^32.
Updated against main after #936 merged.
Verification
Tested
93dca075on Windows 11 25H2 (10.0.26200.9974) with the D3D12 debug layer enabled. Hardware used AMD Radeon RX 7900 XTX (32.0.32029.2010). WARP used Microsoft Basic Render Driver (10.0.26100.9818).11 passed, 0 failed, 0 skipped. Both backends compared all 320 UAV words. Reversing exchange offsets first differed at word 0 (76543210 expected, 12345670 observed for dwords and 12345678 expected, 76543210 observed for qwords). Reversing append first differed at word 1 (00000010 expected, ffffffd0 observed). Reversing consume first differed at word 3 (fffffff0 expected, 00000030 observed).
LLVM 15.0.7 round trips reproduced the same HLSL as text translation. Coverage records include all four new forms.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T00:10:12Z.
#949 is on main. I resolved the shared fixture and docs conflicts in
97074f32. The paired exchange and wave32 counter retain their negative controls, and the returning qword and binary64 cases keep the output widths from #949. Windows Release passed eight packed, strided, qword and floating-point tests on RTX 4060 Laptop and WARP. The combined fixture also passed LLVM 15.0.7 assembly and round-trip checks.