compute: lower more typed 2D image atomics in direct compute #3273
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!3273
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3271"
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?
@Leyukaka on GitHub · 2026-11-28 04:14 UTC · original
Leyukaka:image-atomic-binops→main· +158 −7 · 4 files · 2 commits · merged 2026-11-28 04:42 UTCPart of #2935 and #3226, as claimed there. Target branch
main. Extends #3164.Change (
src/gfx1013_direct_compute.inl). The direct compute typed 2D image atomic path of #3164 handlesimage_atomic_cmpswap,_addand_umax. It now also lowers these to DXILAtomicBinOp, on the sameRWTexture2D<uint>binding:AtomicBinOpimage_atomic_swap(0x0f)image_atomic_umin(0x15)image_atomic_and(0x18)image_atomic_or(0x19)image_atomic_xor(0x1a)image_atomic_sminand_smaxstay refused, because signed min/max is not verified on this R32_UINT binding. My claim on #3226 listed them, but they are left out here.sub,inc,decand the float atomics stay refused too, with "direct image opcode or descriptor modifiers".Tests. The setup was Windows 11 with an NVIDIA GeForce RTX 5080 and DXC from the Windows SDK 10.0.26100, Release, on
maine8dd89edplus this commit.native_image_atomic_binops_{controls,warp,hardware}reuses the #3164 fixture (native_image_atomic_check.py):atomicBinOpwith its code, that the operand refusals (dim, dmask, coordinate, flags and two address-flag encodings) still apply, and that the refused ops keep their message;native_image_atomic_*tests.main'scompile_dxil, the controls stop at "direct image opcode or descriptor modifiers".orto the Xor code fails the controls;uminto UMax or to Exchange fails the hardware readback.ctest -R "native_|startup_compute|compile_dxil|image"passes 532 of 533.native_scalar_lds_hardwarefails as onmain.Measured with
compile_dxil --jobs 8 gfx1013-direct-cs@36 --requests, base and change both onmaine8dd89ed.image_atomic_or(3) and_umin(1). No program that compiled before stops compiling.AI-assisted.
@R0Y00 on GitHub · 2026-11-28 04:24 UTC · original · requested changes
Independent review of
47df6e154b014a165f3c21cbc21f2e8446c83313. The new opcode mapping uses the existing typed 2D UAV operand checks, EXEC guard and GLC return path. The DXIL/refusal controls passed. All 20 new hardware cases matched 336 words each, including contended and distinct texels with GLC on and off. The adjacent add/umax/compare-and-swap fixture also passed and its intentional missing-GLC controls produced readback mismatches.Release commands:
Four passed, two capability skips, zero failures. Windows 11
26200.9974, SDK/DXC10.0.26100.0, RTX 4060 Laptop GPU driver32.0.16.1656, WARP10.0.26100.9818. The D3D12 debug layer was enabled and WARP exposed four lanes, below the wave32 requirement.Before merge, please update
docs/experiments/native-image-atomics.md. Its opening still lists the original three direct Compute operations. Add the five now verified on the fixedR32_UINT2D UAV, and link the new fixture in the reproduction section. Keep signed min/max outside the verified scope.@Leyukaka on GitHub · 2026-11-28 04:27 UTC · original
Thanks for testing it. Pushed
703d6cae, docs only.docs/experiments/native-image-atomics.mdnow:R32_UINTUAV, with theirAtomicBinOpcodes (Exchange 8, UMin 6, And 1, Or 2, Xor 3);smin/smaxoutside the verified scope, together with sub, inc, dec and the float atomics;tests/native_image_atomic_binops_check.pyin the reproduction section, with what it checks. The existingctest -R '^native_image_atomic_'command already selects it.AI-assisted.
@R0Y00 on GitHub · 2026-11-28 04:41 UTC · original · approved these changes
Re-reviewed
703d6cae. The documentation lists the five new operations and links the fixture, while keeping signed min/max explicitly refused. The only change from the previously tested head is that Markdown file. The docs-link check passed (640 links), and the focused Release suite again reported four passes and two inbox WARP wave32 capability skips. RTX 4060 Laptop readback and the DXIL/refusal controls passed. The requested change is resolved.