shader: lower gfx1030 conditional atomic subtract with discarded result #1557
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1564"
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-24T14:11:50Z.
Summary
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: