Repository navigation
GPU fixtures: the six remaining 2D image atomics - #4981
YaBulochka wants to merge 1 commit into
Conversation
|
Tested 24cc3da on Arch Linux (in a VM), Mesa llvmpipe (LLVM 23.1.5, subgroup 8), runtime built from
|
|
Tested 24cc3da on Intel UHD 630 (CFL GT2), Mesa 25.2.8 ANV, Ubuntu 24.04, LEONIDA_VK_DEVICE=Intel: pass.
AI-assisted. |
|
Independent check — pass, including a live GPU fixture run on NVIDIA. Environment: Windows 11, MSVC 19.44 (RelWithDebInfo, Ninja), NVIDIA GeForce RTX 5090 (driver 617.42), Vulkan SDK 1.4.363.0, native Windows CPU side:
GPU side (the part most checks can't do):
This exercises the six remaining 2D image atomics ( AI-assisted (Devin). |
|
Independent Windows CPU verification on
|
abnalstlll-byte
left a comment
There was a problem hiding this comment.
Reviewed at \24cc3da3. Tested on Windows 11 with AMD RDNA2 iGPU (gfx1036):
- \python -m unittest discover -s tests/semantic -p test_imgatomic_ext_fixture.py\ -> 4 passed, OK (0.052s).
- \python -m unittest tests/test_docs_design_rows.py\ -> 4 passed, OK.
- Verified all 16 expected texel/returned words in \check.py\ against RDNA2 ISA MIMG atomics (including \cmpswap\ hit/miss and \min(NaN, 2.0) -> 2.0).
- Inspected \cs_imgatomic_ext.asm\ and confirmed \ ests/semantic/fixtures/disasm/cs_imgatomic_ext.s\ is present and clean.
- \git diff --check\ clean. No game files. AI-assisted review (Gemini).
|
Tested
|
|
Tested the current head 24cc3da on an AMD Radeon RX 9070 XT (RDNA4, subgroup 32..64) with AMD's Windows driver, Windows 11 23H2 (the GPU runs here so far are RADV). scripts/run_gpu_tests.py --require-pass gives 203/218 passed, 15 skipped. cs_imgatomic_ext passes: "all 64 words of the uint image, the sint image and the volume exact". AI-assisted (Claude Code). No game files. |
|
Tested
|
24cc3da to
2d2358c
Compare
|
Tested
Xbox 1.0.2.1 coverage: 0 of 26,503 local |
cs_imgatomic runs add/sub/and/or/xor/smin/smax/umin/umax and cmpswap; swap, inc, dec, fmin, fmax and fcmpswap had CPU checks only. The new fixture runs all six on texels 0-7 of vk_store_test's r32 uint image (fcmpswap a hit and a miss, fmin with a NaN and 2.0, fmax, unsigned inc/dec bounds) and stores each returned old word in the same texel of the r32 sint image, so one 8-word readback checks the texel and the glc return. check.py states the sixteen words, the .asm header derives them from the ISA, regen_fixtures.py makes the disasm copy for tests/semantic/test_imgatomic_ext_fixture.py, which re-derives the words independently and checks the header, check.py and the six lowerings (five swaps, CAS loops, NMin/NMax, the word-wise fcmpswap equality). docs/design.md drops the row's "Not GPU-verified on RDNA2". GPU: AMD Ryzen 5 9600X iGPU (gfx1036, RADV Mesa 27.0.0-devel, driver 26.99.99). run_gpu_tests.py: 203 passed, 15 skipped, 0 failed (218 shaders).
2d2358c to
e4d25c3
Compare
The 2D image atomics row still had six ops with no GPU fixture:
image_atomic_swap,_inc,_dec,_fmin,_fmaxand_fcmpswap.cs_imgatomiccovers the other six; this adds the rest in onevk_store_testdump.runtime/test/shaders/cs_imgatomic_ext.asmruns each op on its own texel 0-7 of anr32ui2D storage image and writes the returned old word into the matching texel of a secondsintimage, so one read checks both memory and theglcreturn. The cases include:swapwith0xdeadbeef;incfrom 200 with a bound of 101 (101 < 200 -> 102) anddecfrom 102 with a bound of 100 (102 > 100 -> 100);fmin(2.0, 1.0),fmax(1.0, 3.0);fcmpswaphit (1.0 -> 2.0) and miss (leaves0x6a);fmin(NaN, 2.0)returning the NaN bits as the old value.Float texels are seeded by a preceding swap so the comparator input is a normal value, not the harness fill.
Measured on the RDNA2 iGPU (
gfx1036, RADVRAPHAEL_MENDOCINO, Mesa 27.0.0-devel), exact:run_gpu_tests.py --filter cs_imgatomic_extis 1/1; the full iGPU run is 203 passed, 15 skipped, 0 failed;build.pytranslates and validates all 243 shaders. The newtest_imgatomic_ext_fixture.pymodels all words independently from the ISA and checks the six lowering shapes;regen_fixtures --checkand the docs row-shape tests pass.Docs: row 391 (image atomics) now names this fixture and the measured result; the subnormal-flush caveat stays because the fixture deliberately does not exercise it. No translator change.