shader: lower gfx1030 non-returning image exchanges #1522
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!1522
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1522/head"
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?
@stan495 on GitHub · 2026-11-24 13:33 UTC · original
stan495:codex/gfx1030-mimg-atomic-exchange-upstream→main· +140 −56 · 6 files · 1 commits · merged 2026-11-24 13:49 UTCSummary
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.