shader: lower private LDS word accesses in compute #851
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/857"
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:24Z.
Change
Lower
ds_write_b32,ds_read_b32andds_read_u16for a proven private LDS word per thread in a 32×1×1 gfx1030 compute group. An explicit allocation, aligned local address and immediate wait let the translator preserve the written value and extract either unsigned halfword.Verification
Tested
c139447based 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.The fixture overwrites the source VGPR after the write. Selecting the opposite halfword mismatches at word 2, expected
0x000089aband observed0x0000fff0. Controls reject an uninitialized read, unknown address, insufficient allocation, masked EXEC, invalid offset 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.
This change overlaps the gfx1030 compute decoder entry, coverage fixture registration and documentation with #856. Please review that PR first. This branch can be rebased after it lands.
AI-assisted (Codex and DeepSeek Harness).
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T14:17:04Z.
I merged current main into this branch after #856. Both DS fixtures keep their readback and mutation checks. WARP 10.0.26100.9818 and RTX 4060 Laptop (32.0.16.1656) each matched all 320 words for one and three groups. The private-LDS high-half mutation failed at word 2 (0x89ab versus 0xfff0), and both reversed lane-routing mutations still failed at word 0. LLVM 15 and the docs check passed. Windows CI will rerun on the updated head. The earlier Windows failure was in the BVH WARP test.