shader: lower typed R32_UINT 2D image atomics in direct Compute DXIL #3158

Closed
opened 2026-11-27 19:08:53 +00:00 by github-bot · 0 comments
Owner

@⁠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_umax and image_atomic_cmpswap on a bound 2D R32_UINT view. At 88cddb09, source-built containers stop with direct image opcode or descriptor modifiers at +0x28 for ADD/UMAX and at +0x30 for 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.

**@⁠RonLogic** on GitHub · 2026-11-27 19:03 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3156) Refs #2935, #1545 and #3074. I’ll take the direct Compute slice for 32-bit `image_atomic_add`, `image_atomic_umax` and `image_atomic_cmpswap` on a bound 2D `R32_UINT` view. At `88cddb09`, source-built containers stop with `direct image opcode or descriptor modifiers` at `+0x28` for ADD/UMAX and at `+0x30` for 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 19:08:53 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/R0Y00--Xbox2Windows#3158
No description provided.