shader: lower bounded DS lane rotations in compute #856
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!856
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/856/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 13:51 UTC · original
stan495:codex/gfx1030-ds-bpermute-b32→main· +193 −5 · 5 files · 1 commits · merged 2026-11-23 14:09 UTCChange
Lower
ds_bpermute_b32gather andds_permute_b32scatter in 32×1×1 gfx1030 compute groups. The supported byte address is a verified lane rotation with zero DS offset. The lowering uses separate groupshared storage per operation and synchronizes before reading the forward or inverse mapping.Verification
Tested
58408d1based 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.Reversing the HLSL rotation mismatches at word 0, 5 versus 27 for gather and 27 versus 5 for scatter. The controls also reject unknown addresses or source words, masked EXEC, non-zero DS offsets 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.
AI-assisted (Codex and DeepSeek Harness).