shader: lower gfx1030 conditional atomic subtract with discarded result #1564
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!1564
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1564/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-24 14:11 UTC · original
stan495:codex/gfx1030-mubuf-atomic-csub-upstream→main· +74 −8 · 5 files · 1 commits · merged 2026-11-24 14:40 UTCSummary
Lower fixed-address unsigned
buffer_atomic_csubwithglcwhen the returned value is discarded. Preserve the upstream raw-UAV binding restrictions and reject a use of the pending or unmodelled return. The wrapping-subtract control should first differ at DWORD index 2, expected00000000, actualc5c5c5c5.Refs #1354. The atomic counters from #1458 are already on
main.Local check
The LLVM 15 assembly, disassembly and compute-container CLI regression passed at
b61eeb75fa83a7699e2dd41e17641621b284ec37.Windows GPU validation
Tested commit
b61eeb75fa83a7699e2dd41e17641621b284ec37on Windows 11 x64 (25H2, build26200.9974) with MSVC19.44.35228.0and DXC from Windows SDK10.0.26100.0.32.0.32029.201010.0.26100.9818On both backends,
buffer_atomic_csubmatched the CPU reference across all 320 DWORDs for both the one-group and two-group dispatches. The one-group case left a positive counter and the two-group case reached zero. The D3D12 debug layer reported zero errors and warnings for both dispatches on each backend. The wrapping-subtract negative control first differed at zero-based DWORD index 2 on both backends (00000000expected,c5c5c5c5actual). The gfx1030 form coverage report includesbuffer_atomic_csubfrom both fixtures.Reproduce on Windows
From the repository root, with the development Python environment at
out/pe-env: