shader: lower gfx1030 fixed-address integer atomic reductions #1354
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!1354
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1354/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 09:00 UTC · original
stan495:codex/gfx1030-mubuf-atomic-reductions→main· +178 −0 · 5 files · 1 commits · merged 2026-11-24 09:31 UTCSummary
buffer_atomic_add/sub/and/or/xor/smin/umin/smax/umaxoperation to the matching HLSL raw UAV interlocked operation. Use modular arithmetic for subtraction and the matching signedness overload for min/max.off. Refuseglc, indexed access, and any additional UAV operation. The tested lane guard selects different numbers of contending threads.Validation
Commit tested
07f0d40b34329e4955b283cd82151ff9aa6554a9.48 passed, 0 failed, 0 capability skips. The passing WARP and hardware fixtures both record all nine new forms. Windows build
26300.9974, WARP on Microsoft Basic Render Driver (10.0.26100.9818), and hardware on Intel Arc B390 (32.0.101.8509). The debug layer was unavailable on both. The dispatches execute translated DXIL. The wrong-operation and signedness mutants fail at word 1, including add vs. sub (eec30576expected,9cc88614actual) and signed vs. unsigned min (a434c802expected,2434c800actual).Passed on Ubuntu 22.04.5 with LLVM 15.0.7. Coverage and docs self-checks passed.
The D16 load, formatted-store, and atomic-reduction fixture modes all passed on both adapters from the simulated integration
bed1478a361de258dcad11bbf9bc8446cf2427bb, with #1343, #1346, and this branch applied in order.git diff --checkandgit merge-tree --write-tree refs/remotes/origin/main HEADpassed, with main atc4966c6439b2747831d160a346d8f466ff094b25.@tedin7 on GitHub · 2026-11-24 09:22 UTC · original · reviewed
Technical peer-review at commit
07f0d40b34329e4955b283cd82151ff9aa6554a9.Verification
git diff --check origin/main...HEAD: clean.tests/docs_links_check.py: passed (16 Markdown files, 300 links).tests/bidi_controls_check.py: passed (1119 tracked files).tests/compute_store_check.py binary llvm-mc-19 llvm-objcopy-19 /usr/lib/llvm-19/lib/libLLVM-19.so: passed.tests/rdna2_tools_check.py: passed (138tests,18skipped).tests/form_coverage_check.py: passed.--preset dev): 2/2 passed (compute_store_aot_mubuf_reduction_{warp,hardware}) in4.61s./O2(--preset release): 2/2 passed in4.53s.Code Review Notes
tools/compute_store_aot.py: Properly enforcescpu == "gfx1030", rawu0(stride is None and output_format is None),off, zero scalar offset, 4-byte alignedoffset <= 4095, verifieds[base:base+3]descriptor atlgkmcnt(0), known data VGPR (src <= 255), and sole UAV store/atomic (stores/atomic_reductionmutual exclusion).(0u - word)) withInterlockedAddand signedness selection (int+asint(word)forsmin/smax,uintotherwise) match theInterlocked*overloads cleanly.glc,idxen, non-zero scalar offset, unaligned/out-of-range offsets, unaligned/unwaited descriptor, unknown data VGPR, duplicate/mixed UAV ops, non-gfx1030, and structured stride; the GPU fixture exercises multi-group lane contention and wrong-op/wrong-signedness mutations.