shader: lower gfx1030 non-returning image exchanges #1515
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1522"
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-24T13:33:27Z.
Summary
Builds on the merged integer min/max support from #1504. Only the two exchange instructions and their fixtures are in the diff. Replaces stan495/Xbox2Windows#14.
Lower non-returning gfx1030
image_atomic_swapandimage_atomic_cmpswapfor a scalarR32_UINT2D UAV at mip zero. Swap discards the original value. Compare-store takes a two-worddmask:0x3tuple: it compares againstVDATA+1and writesVDATAonly on equality. The capability gate is local to the exchange suite. Returning atomics, counters and float atomics remain outside this patch.Verification
Tested clean head
e221849f831e5112d8472c721da979cc74ff0fabon upstream basecd186e9e6483c605f803b2b0fdfb594dfe285f6b.CTest: 25 passed, 0 failed, 0 skipped. Each adapter ran both forms at one and two group counts, comparing all 336 words from three mip levels, including untouched and compare-miss texels. Reversing compare and replacement first differs at mip 0, word 32:
a5a51f3fexpected,fffffff0actual. Negative inputs include wrong two-word data tuples and masks, undefined operands, unverified descriptors, and unsupported flags. Both passing exchange fixture records contain exactly the two new forms. The compute run covers 23/111 gfx1030 MIMG mnemonics.Windows 11 build
26300.9974; Intel Arc B39032.0.101.8509; Microsoft WARP10.0.26100.9818. Debug layer unavailable on both backends.LLVM 15 assembly, disassembly and synthetic-container CLI round trips passed.
git diff --check origin/main...HEADpassed.git merge-tree --write-tree refs/remotes/origin/main HEADpassed against6fe5def5e6ed3d46a6b6dcb92189073c15bfbb63, including a separate simulation applying #1507 and #1513 first. The simulations did not execute tests.