shader: lower private LDS word updates in compute #878
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!878
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/878/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 15:19 UTC · original
stan495:codex/gfx1030-ds-add-u32→main· +110 −4 · 4 files · 1 commits · merged 2026-11-23 15:38 UTCScope
Extend the thread-private gfx1030 LDS profile from #865 with the no-return forms
ds_add_u32,ds_sub_u32,ds_and_b32,ds_or_b32andds_xor_b32. They update the same initialized word at offset 0, with addition and subtraction wrapping at 32 bits. Subtraction takes the old word minus the source VGPR. The existing Wave32 group, private address, allocation, EXEC and immediate wait checks apply.The five fixtures use the same compute test file as #866. The branch merge check passed against its head
e8f31c2.Reproduction
Tested
e74f6bdon Windows 11 25H2 (10.0.26200.9974) with the D3D12 debug layer enabled. Hardware used the AMD Radeon RX 7900 XTX (driver 32.0.32029.2010). WARP used the Microsoft Basic Render Driver (10.0.26100.9818).7 passed, 0 failed, 0 skipped. Each backend ran all five update variants with one and three groups, comparing every UAV word against the CPU reference. The expected result was zero differences and the observed result matched. The passing LDS dispatches logged zero debug errors and warnings. Every full-write mutant differed at word 1, with
40000021observed instead of the operation's expected result. For example, add expected40000011and subtract expectedbfffffcf.Passed with LLVM 15.0.7 in WSL Ubuntu 24.04. The assembled gfx1030 Wave32 fixtures decoded to the expected DS forms, and both decoded and CLI translation reproduced the HLSL from source. The D3D12 readback exercised that translated HLSL. The coverage records included all five new forms.