Repository navigation
Tests: check all 16 32-bit MIMG image_atomic_* ops on the GPU - #1712
thiagocalile wants to merge 1 commit into
Conversation
Add two GPU tests in crates/xcl/src/gpu/recomp/tests.rs covering all 16 32-bit MIMG IMAGE_ATOMIC_* instructions on both wave64 and wave32: - gpu_image_atomics_32bit_int_and_glc: per-lane and multi-lane contention checks for add, sub (including 32-bit wrap-around), and, or, xor, swap (GLC=0 preserving vdata vs GLC=1 returning the prior texel value), umin/umax, smin/smax (signed negative extremes), and EXEC masking. - gpu_image_atomics_32bit_cas_and_float: CAS-loop and float ops — inc/dec (including wrap at limit), cmpswap, fcmpswap (bitwise -0.0 vs +0.0), per-lane and contention fmin/fmax (negative and positive ordering), GLC=1 return values, and EXEC masking. Assisted-by: Antigravity (Gemini 4 Neon)
|
NVIDIA run, since the PR lists it as not tested: RTX 3070 (Ampere, 32-lane waves only, so the wave64 case goes through the split form), driver 616.56, Windows 11, DXC 1.8.2502.11,
Test-only PR, synthetic tests, no game files. AI-assisted (Claude Code). |
|
Test report for Tested
Do the tests notice a broken translator?
Not tested: AMD, native wave64, retail title. AI use: Claude Code (Claude Opus 5.5) ran this on my machine, wrote the report and posted it for me. |
|
Independent Windows release GPU test run on NVIDIA Ampere ( Setup
Results (
Not tested: Debug build, AMD / native wave64 hardware. AI use: Antigravity ( |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Tested Independent Intel Arc A770 run of the two checked-in synthetic fixtures at cargo test --locked -p xcl --lib --no-run --message-format=json
& $exe --exact gpu::recomp::tests::gpu_image_atomics_32bit_int_and_glc --nocapture --test-threads=1
& $exe --exact gpu::recomp::tests::gpu_image_atomics_32bit_cas_and_float --nocapture --test-threads=1The two invocations used the pinned Cargo-emitted test executable and Not tested Native or split wave64, direct DXIL, release, other adapters, the full workspace suite, retail smoke, and negative controls. AI use T3 Code / Codex (gpt-6.2-sol) ran the fixtures, checked their assertion scope, and drafted this report. |
|
Nothing has happened on this PR for 3 days, so it is marked |
|
No open or merged PR adds these GPU tests of the 32-bit AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
Adds GPU execution tests for all 16 32-bit MIMG
IMAGE_ATOMIC_*operations across wave64 and wave32, covering integer ALU ops, signed/unsigned min/max,GLC=0vsGLC=1return-value behaviour, CAS-loopinc/dec/cmpswap/fcmpswap, floatfmin/fmax, multi-lane contention on a single texel, andEXECmasking. No runtime or recompiler source files are changed.What is in it
crates/xcl/src/gpu/recomp/tests.rs:gpu_image_atomics_32bit_int_and_glc: testsIMAGE_ATOMIC_ADD,SUB(including 32-bit wrap-around),AND,OR,XOR,SWAP(GLC=1returning the prior texel value andGLC=0updating memory while keepingVDATAunchanged),UMIN,UMAX,SMIN,SMAX(signed negative extremes onDXGI_FORMAT_R32_SINT), multi-lane contention on 1×1 UAVs, andEXEC-masked writes on both wave64 and wave32.gpu_image_atomics_32bit_cas_and_float: testsIMAGE_ATOMIC_INC,DEC(including limit wrap-around),CMPSWAP,FCMPSWAP(bitwise-0.0vs+0.0discrimination),FMIN,FMAX(per-lane and multi-lane contention across negative and positive floats),GLC=1return values, andEXECmasking on both wave64 and wave32.Tested
32.0.21045.29003;XCL_ADAPTER=radeon), AMD Ryzen 7 5700X3D, 47.9 GB RAM, Windows 11 (10.0.26200.0), Rust1.100.0(stable-x86_64-pc-windows-msvc), DXC1.8.2502.11.XCL_ADAPTER=radeon cargo test -p xcl --lib gpu_image_atomics_32bit_ -- --nocapture: 2 passed, 0 failed, 0 ignored (0.30s; both wave64 and wave32 executed on hardware).XCL_ADAPTER=radeon cargo test --workspace --no-fail-fast -- --test-threads=4: 857 passed, 3 failed, 42 ignored (xcl --lib: 808 passed, 3 failed, 22 ignored; integration tests: 49 passed, 0 failed, 20 ignored).main(c160d86) on this RX 6600 (placed_title_textures_share_vram_and_preserve_pixels: 3D mip subresource mismatch, plus 2 mutex-poison cascadestransitions_apply_when_their_list_is_submittedandd32s8_targets_take_their_own_size_of_video_memory; tracked by D3D12.X: map and unmap 3D texture mips separately #1028).SKIPPED(not counted as coverage):heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows(plus D3D12 debug-layer tests skip becaused3d12SDKLayers.dllis not installed).Not tested
DMASK 0x3/0xFimage atomics, retail title smoke run (test-only PR; no runtime code changed).AI use
crates/xcl/src/gpu/recomp/tests.rs, ran the targeted and full workspace test suites on my RX 6600, and drafted this PR description; I reviewed the diff and test output before opening the PR.