shader: lower private LDS packed and thread-ID accesses #922
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/929"
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-23T17:38:37Z.
Scope
Lower five additional accesses to the private 32-bit LDS word. The two D16 high writes select their source from the upper half of the VGPR. The signed D16 high read replaces the upper half of the destination. The explicit and implicit address forms name the same word in a full wave32 when M0 and the instruction offset are zero.
Verification
Tested
56cad54on 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).7 passed, 0 failed, 0 skipped. Both backends matched the CPU reference across 320 UAV words for one and three groups. Using the low half for the high halfword write first differed at word 0 (
9180cdefexpected,abcdcdefobserved). Substituting the first read for the second thread-ID fixture read first differed at word 1 (89abcdefexpected,12345670observed).LLVM 15.0.7 assembly and decoding 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-23T18:19:56Z.
#925 has landed. I integrated the two access families and added both orderings of the mixed-stride control. The implicit ADDTID address is a four-byte stride and can overlap another lane in the wide layout, so the combined lowerer refuses mixing the two. The private LDS draws passed with WARP and the RTX 4060 Laptop, and LLVM 15 passed the round-trip. #936 is next on the same files after the updated head has passed CI.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T18:41:10Z.
The combined private LDS CTest reached its 45-second limit twice on the RTX 4060 Laptop (32.0.16.1656, debug layer enabled). The completed readbacks had zero mismatches. On top of your updated head I split the draws into private reads/writes, packed and thread-ID accesses, arithmetic, and replacement/counters, keeping the 45-second limit, per-case readbacks, mutations, and binary coverage. All eight WARP and hardware CTests passed. The longest hardware group was arithmetic at 32.45 s. This new head needs fresh CI before #936 lands.