Commit Graph

2 Commits

Author SHA1 Message Date
2c9a491d59 runtime: cs_imgatomic_ext uses the volume T# words vk_store_test expects (CI-IMGATOMIC-EXT-VOLUME-TAG)
Based on work by @PierreEbele in ProjectLeonida/mandy#1518.

Co-authored-by: PierreEbele <127682386+PierreEbele@users.noreply.github.com>
2026-11-28 17:31:06 -08:00
367d91ef23 GPU fixture cs_imgatomic_ext: image_atomic_{swap,inc,dec,fmin,fmax,fcmpswap} (GPU-IMG-ATOMIC-EXT)
The row for the six remaining 32-bit MIMG image atomics was CPU-checked
only (tests/semantic/test_image_atomics_32.py) and said "Not GPU-verified
on RDNA2". This adds the GPU fixture, judged through vk_store_test's
"words" mode and check.py's STORE_WORDS like cs_imgatomic/cs_imgatomic3d:

- all six ops on the 2D r32 uint image (binding 4) and the volume
  (binding 7); inc/dec on both sides of their wrap and with a D that is
  negative as a signed number; fmin/fmax with a NaN data register;
  fcmpswap equal, unequal, +0 against -0 and NaN; glc and non-glc
- inc/dec/fmin/fmax from all 64 threads on one texel, which runs the
  translator's CAS loops under contention
- inactive lanes held on a trap texel that must keep its fill

The cases leave out what the ISA and SPIR-V leave open: NaN or denormal
texels for fmin/fmax/fcmpswap and +0 against -0 for fmin/fmax.

Exact on a Radeon 610M (gfx1036, RDNA2, RADV Mesa 26.2.6) and an RTX
4070 Ti (NVIDIA 620.70.06), native and LEONIDA_W64_EMULATE=1. Five
planted translator faults (signed inc/dec compare, fmin/fmax exchanged,
fcmpswap without the +0/-0 rule, no inactive-lane guard, no glc return
from swap) each fail it on both. docs/design.md records the GPU check.

AI-assisted. No game files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 01:47:48 -06:00