shader: lower gfx1030 fixed-address 64-bit atomic reductions #1365
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1372"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by stan495 on 2026-11-24T09:37:47Z.
This follows the 32-bit reduction profile from #1354.
Summary
_x2reductions to single SM 6.6 raw UAV interlocked operations. Combine consecutive VGPR words in little-endian order and require eight-byte alignment.Int64ShaderOpscapability gate.Validation
Tested commit
98d2c3e895fe7727b8cb9c3b7b338d88d1732227against parente1316e1c79ed111390752240c3e0f2b0f95b5bf3.53 passed, 0 failed, 0 capability skips. Both
compute_store_aot_mubuf_reduction_x2_*fixtures record nine passing forms. The selected tests record 54 of 73 gfx1030 MUBUF forms. Windows build26300.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 one- and two-group dispatches compare all 320 words of translated DXIL output with a CPU reference. Wrong operations and signedness change one or both target words. Rejection controls cover register pairs, eight-byte alignment andglc.Passed on Ubuntu 22.04.5 with LLVM 15.0.7. The coverage self-check, documentation links and merge-tree checks passed.
The wrong add/sub operation first differs at word 2 on both adapters. See the execution fixture for the per-form expected and actual words. The merge-tree check passed against
e1316e1c79ed111390752240c3e0f2b0f95b5bf3.Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T09:55:41Z.
Review: COMMENTED
Technical peer-review at commit
98d2c3e895fe7727b8cb9c3b7b338d88d1732227:Verification
git diff --check origin/main...HEAD: clean.tests/docs_links_check.py: passed (16 Markdown files, 305 links).tests/bidi_controls_check.py: passed (1,149 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 (139 tests, 18 skipped).tests/form_coverage_check.py: passed.--preset dev):offscreen_checkbuilt in5.18s;ctest -R '^compute_store_aot_mubuf_reduction': 4/4 passed in4.70s(compute_store_aot_mubuf_reduction_{warp,hardware},compute_store_aot_mubuf_reduction_x2_{warp,hardware})./O2(--preset release):offscreen_checkbuilt in3.42s; 4/4 passed in4.68s.Code Review Notes
tools/compute_store_aot.py): Cleanly extends the 32-bit fixed-address MUBUF atomic reduction path to_x2: enforces 8-byte alignment (offset % 8 == 0), consecutive VGPR pairv[src:src+1]withsrc + 2 <= 256, combines words in little-endian order (uint64_t(low) | (uint64_t(high) << 32u)), usesint64_tforsmin/smaxand0ull - wordforsub, and emitsInterlocked{Add,And,Or,Xor,Min,Max}64.tests/offscreen_check.cpp,tests/compute_store_check.py):--compute-store-case-atomic64gates onD3D_SHADER_MODEL_6_6+Int64ShaderOps; negative controls verify VGPR pair bounds, unknown data words, 4-byte-only offset alignment, andglcrejection, while execution checks compare all 320 readback words across 1- and 2-group dispatches and assert wrong-op/wrong-signedness detection.