shader: lower typed R32_UINT 2D image atomics in direct Compute DXIL #3158
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#3158
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@RonLogic on GitHub · 2026-11-27 19:03 UTC · original
Refs #2935, #1545 and #3074. I’ll take the direct Compute slice for 32-bit
image_atomic_add,image_atomic_umaxandimage_atomic_cmpswapon a bound 2DR32_UINTview. At88cddb09, source-built containers stop withdirect image opcode or descriptor modifiersat+0x28for ADD/UMAX and at+0x30for compare-and-swap. The earlier Python/AOT implementation is separate.The lowering should keep EXEC masking, honor GLC as a return of the pre-operation word, and use only the supported 2D, 32-bit operand forms. Carry the typed binding through any runtime route that will publish it, with a refusal for an incompatible format.
Verify source-built shaders through DXIL validation and D3D12 readback. Include unsigned values around the sign boundary, compare success/failure, contended ADD, inactive lanes and unchanged texels. The AMD RDNA 2 ISA and DXIL AtomicBinOp/AtomicCompareExchange document the operation contracts.