compute: accept gfx1013 image_atomic_umin on R32_UINT #2654
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2662"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-26T01:06:56Z.
Change
Refs #2618 (batch M200-01, work code A).
gfx1013 image atomics accepted
add,umaxandcmpswaponly. M200-01 A stops atimage_atomic_umin.image_atomic_uminon gfx1013R32_UINTwith the shared gfx1030InterlockedMinlowering (unsigned; noasint).tests/compute_image_atomics_gfx1013_check.py: umin case, machine words080154f0080e0600, mutant Max-for-Min.0x80000011; umin vs smin CPU references differ.AI-assisted.
Verification
Commit under test: this PR head.
Passed on Linux. This agent could not run DXC / WARP / hardware draws or llvm-mc binary checks.
Windows verification:
Expect: controls pass; warp/hardware draws include umin; hardware may skip 77.
Evidence and follow-up
image_atomic_uminingfx2hlslis still open (7 A rows are mesh family).Checklist
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T01:11:54Z.
Review: COMMENTED
Review of head
6b770c81(after updating with main). Code review only, no merge decision here.What I checked:
tools/compute_store_aot.py: gfx1013 now acceptsuminnext to add/umax/cmpswap; it reuses the gfx1030 lowering (unsignedInterlockedMin, noasint). Refusal message updated in both places. Sibling tableATOMIC_WORDSgets umin opcode 21 (080154f0080e0600), which matches the gfx10 MIMG opcode order (umin 21, umax 23).tests/compute_image_atomics_gfx1013_check.pyadds umin to accepted ops, control HLSL, machine words, a mutant (min -> max) and a high-bit check (operand 0x80000011, so umin differs from smin).tests/compute_store_check.pyupdated for the shared accept/refuse list.--drawstill compares every texel on a real adapter against a CPU reference.Commands run (Linux):
python3 tests/compute_image_atomics_gfx1013_check.py-> passedmimg_atomic_controlsfor integer, minmax, exchange suites -> passedpython3 tests/docs_links_check.pyandpython3 tests/bidi_controls_check.py-> passedgit diff --check origin/main...HEAD-> cleanuminfrom the gfx1013 accept list -> check fails.uminasMax-> check fails (assertion).Findings: none blocking. Windows WARP run follows separately.
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-26T01:09:02Z.
CMake registers these under the
compute_store_aot_prefix (not the script basename):compute_store_aot_gfx1013_image_atomics_warpcompute_store_aot_gfx1013_image_atomics_hardwareControls-only (no dedicated CMake test; runs inside
--drawtoo):Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T01:12:36Z.
Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
6b770c81d5c664b4bd2df71acbdd240f77baaff5:--preset dev):cmake --build --preset dev -- -j 2):0.00s(configure0.00s)ctest --preset dev -R 'compute_store_aot_(gfx1013_image_atomics|mimg_atomic_minmax)_warp' --parallel 6 --no-tests=error --output-on-failure): 2/2 passed (1.63s:compute_store_aot_mimg_atomic_minmax_warp1.03s,compute_store_aot_gfx1013_image_atomics_warp1.53s)/O2(--preset release):cmake --build --preset release -- -j 2):0.00s(configure0.00s)ctest --preset release -R 'compute_store_aot_(gfx1013_image_atomics|mimg_atomic_minmax)_warp' --parallel 6 --no-tests=error --output-on-failure): 2/2 passed (1.62s:compute_store_aot_mimg_atomic_minmax_warp1.01s,compute_store_aot_gfx1013_image_atomics_warp1.51s)tests/compute_alu_bcnt64_check.pyok (0.4s),tests/compute_alu_cmp_ne_check.pyok (0.4s),tests/compute_alu_lane_gaps_check.pyok (0.4s),tests/compute_buffer_atomics_check.pyok (0.5s),tests/compute_entry_layout_check.pyok (0.1s),tests/compute_heap_store_check.pyok (0.5s),tests/compute_heap_view_check.pyok (0.5s),tests/compute_load_format_check.pyok (0.5s),tests/pso_readiness_check.pyok (0.7s),tests/startup_compute_store_format_xyzw_check.pyok (0.2s)11.8sAI-assisted; commands listed were executed locally.