shader: lower private LDS packed and thread-ID accesses #929
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!929
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/929/head"
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?
@stan495 on GitHub · 2026-11-23 17:38 UTC · original
stan495:codex/gfx1030-ds-write-b8-d16-hi→main· +152 −16 · 4 files · 7 commits · merged 2026-11-23 18:56 UTCScope
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.
@R0Y00 on GitHub · 2026-11-23 18:19 UTC · original
#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.
@R0Y00 on GitHub · 2026-11-23 18:41 UTC · original
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.