shader: lower gfx1030 bounded image counters #1558
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1565"
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:12:50Z.
Summary
Lower gfx1030
image_atomic_incandimage_atomic_decfor the non-returningR32_UINT2D UAV profile at mip 0. The sole data VGPR supplies an unsigned limit. Increment wraps to zero when the old value meets or exceeds the limit. Decrement wraps to the limit at zero or above the limit. A typed compare-exchange loop applies the update and retries with the observed value after contention. The fixture requires the typed compare-store or compare-exchange capability bit forR32_UINT.Refs #1522
Verification
Tested clean head
db40f92a1ef8a0599b7e4c1d847238d991d7c982ona3633d4df879a46bd07d941ce8295e23ec3400a1.CTest reported 27 passed, 0 failed and 0 skipped. The WARP and hardware counter records each contain both forms. Across one and two dispatch groups, the test compares 336 words over three mips per case against a CPU reference. The controls cover limits
0,3andUINT_MAX, including two updates to the same texel. On both adapters the boundary mutations first differed at mip 0, word 32, with expected and actual00000000and00000004for increment, and00000002and00000003for decrement. Removing the retry first differed at the same word for both forms with expected00000001and actual00000003. Settingglcwas rejected asUnsupported compute instruction.Windows 11 build
26300.9974, Intel Arc B390 driver32.0.101.8509, Microsoft WARP10.0.26100.9818. The debug layer was unavailable. The four DXC compile checks and all three Python checks passed.The LLVM 15 container check passed, including all eight counter variants through assembly, disassembly and the synthetic-container CLI.
git diff --check origin/main...HEADandgit merge-tree --write-tree origin/main HEADpassed againste83e225bdc29703497f1e4937c43a7f257bf89d2. A separate simulation with #1562 also merged cleanly.