shader: lower private qword LDS replacement operations #933
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/940"
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:05:08Z.
Scope
Lower qword compare-and-store and masked OR, their returning variants, and returning write-exchange. Compare both words and preserve the original pair on the returning forms.
Depends on #925. The draft includes the prerequisite in its branch history. Review the five forms in commit
30483cf.Verification
Tested
30483cfon 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).9 passed, 0 failed, 0 skipped. Both backends compared all 320 UAV words. Swapping compare operands first differed at word 0 (f0e1d2c3 expected, 12345670 observed). Skipping exchange first differed at word 4 (12345670 expected, 12345671 observed).
LLVM 15.0.7 round trips reproduced the same HLSL as text translation. Coverage records include all five new forms.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T19:41:00Z.
#939 and the #925 prerequisite are on main. I resolved the four-file conflict in
9d4bc95, retaining the strided and packed LDS paths and their fixtures alongside the five qword replacement forms. The LLVM 15 binary check passed. The wide replacement, strided, and packed cases each passed on WARP and RTX 4060 Laptop GPU (driver 32.0.16.1656, debug layer enabled), with exact 320-word readbacks and the expected mismatches for the mutations. The updated head is waiting for CI. #941 stays next in the shared LDS queue.