shader: support IMAGE_ATOMIC_SWAP #456
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!456
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/456/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?
@brandostrong on GitHub · 2026-09-02 21:49 UTC · original
brandostrong:fix/image-atomic-swap→main· +44 −1 · 8 files · 1 commits · merged 2026-09-03 01:37 UTCProblem. Astro Bot's first in-game compute shader contains
raw=[0xf03c2108 0x00000900], MIMG opcode 0x0f. The decoder had every other 32-bit image atomic but not this one, so pipeline creation aborted the process with an unsupported-opcode error.Change. Add the decoder entry (
IMAGE_ATOMIC_SWAP, RDNA2 ISA MIMG opcode table), anImageAtomicSwap32IR op, and emitOpAtomicExchangeon the same storage-uint image path the other atomics use. Rebased onto the current image-binding simplification.Effect. Astro Bot's first scene compiles its compute shaders instead of exiting.
Verification. New compute case
ImageAtomicSwapReturnsPreviousTexel; shader_cfg, resource_tracking and scalar_provenance suites pass.References
IMAGE_ATOMIC_SWAP; §8.2.3 "Image Opcodes with No Sampler" for atomic return semantics.0xf03c2108 0x00000900.