shader: lower private LDS counter updates #912
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/919"
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-23T17:09:59Z.
Scope
Lower five gfx1030 private LDS counter operations at offset zero.
ds_inc_u32andds_dec_u32use unsigned threshold and zero checks.ds_inc_rtn_u32,ds_dec_rtn_u32andds_wrap_rtn_b32also return the old word.Verification
Tested
03a101aon Windows 11 25H2 (10.0.26200.9974). The D3D12 debug layer was enabled. Hardware used AMD Radeon RX 7900 XTX (32.0.32029.2010), and WARP used Microsoft Basic Render Driver (10.0.26100.9818).7 passed, 0 failed, 0 skipped. Both backends matched the CPU reference across 320 UAV words for one and three groups, including the untouched words and values near zero and the limit. Skipping each update produced the expected mismatch at word 1. For increment, the skipped update left
fffffff0instead of00000000.LLVM 15.0.7 assembly, decoding and translation passed. The coverage records include all five new forms.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T17:29:36Z.
I updated this branch against current main, retaining the signed min/max, reverse subtraction and half-read tests alongside the four counter fixtures. The stale u32 rejection case now checks the still-unsupported u64 form. On the updated head, all four focused Windows WARP tests passed. GitHub is running the full checks on
ec5221d.