Repository navigation
Conversation
|
Independent RTX 5070 / Windows 11 run at All but one case per configuration matched the expected ordered comparison and CAS results. With an initial texel of A local control compared integer bit patterns, special-cased equality of the two signed zeros, and rejected either operand with a NaN encoding. It matched all 1,536 readback words, including signed-zero equality, NaN rejection, and the subnormal case. It would be useful to measure the native RDNA2 image compare under its denormal mode before pinning that case as an ISA contract. The Vulkan result shows that bare |
|
@duudiis Great catch on OpFOrdEqual flushing subnormals when shaderDenormPreserveFloat32 = false — fixed in |
|
Retested the revised head I also ran 16 contention dispatches with 64 invocations sharing one texel per dispatch. For the mixed case, odd invocations compared the initial This verifies the ordered-equality implementation on NVIDIA Vulkan. Native AMD image-compare behavior under its denormal modes still needs a hardware measurement. |
|
Tested 01b33ae on Steam Deck LCD (Jupiter), AMD Custom GPU 0405 "Van Gogh", RADV Mesa 26.2.0-devel (git-5c65d4fc31), Vulkan 1.4.350, SteamOS 3.9.5 (holo): pass (existing image-atomic GPU regression; new ops not GPU-covered by this PR). Commands: export LD_LIBRARY_PATH=/home/deck/leonida-toolchain/opt/llvm/usr/lib
export LLVM_MC=/home/deck/leonida-toolchain/opt/llvm/usr/bin/llvm-mc
cd /home/deck/opencode/prs/pr2653
python3 -I tests/semantic/test_image_atomics_32.py -v
python3 -I scripts/run_gpu_tests.py --build /home/deck/opencode/Leonida/runtime/build --filter imgatomicResults:
Notes: this verifies existing image-atomic fixtures still pass on RADV/RDNA2 with the PR applied; the 6 newly implemented ops ( AI-assisted (OpenCode) |
|
Tested 01b33ae on AMD Radeon RX 9070 XT (RADV GFX1201) and the Ryzen 7 9800X3D iGPU (RADV RAPHAEL_MENDOCINO, gfx1036), Mesa 26.2.6, Linux 7.3.4: pass, no regressions.
No game files. AI-assisted. |
|
Verified at 01b33ae on CachyOS (Linux 7.3.4), Python 3.14.10, CPU only.
Extra check the tests do not do: translated all 6 ops on 2D and 3D with and without glc (24 modules), ran Negative control: Finding: the tests assert emission tokens and CFG shape only. Nothing executes the CAS arithmetic, so |
01b33ae to
d74a8ed
Compare
|
Tested d74a8ed on RTX 4080 SUPER (Ada, subgroup 32), NVIDIA 621.24 (Vulkan 1.4.357), Windows 11 Pro build 26300; MSVC 14.44, Vulkan SDK 1.4.363.0,
No GPU fixture exercises the six new |
d74a8ed to
931dd42
Compare
931dd42 to
d580c2d
Compare
# Conflicts: # docs/design.md
|
Tested
Note: the PR adds no GPU fixture for the six new image atomics, so this run checks for regressions only, not the new ops on hardware. |
|
Tested d580c2d (merge base 4c52ce2) on NVIDIA GeForce RTX 5080, Linux 580.65.06: pass Tested the PR head merged with current main
Line-by-line against my main run (results that differ from main):
Not run: the full AI-assisted (Claude Code). |
Implements the 6 remaining 32-bit RDNA2 MIMG image atomics in
tools/rdna2spirv.py(claimed in #2300 (comment)). Separate from #2033/#2058 (D3D-251 64-bit typed image atomics).What & Why
Completes 100% of RDNA2's 32-bit
image_atomic_*family (dropping MIMG unknown count intools/isa_coverage.pyfrom 53 to 47):image_atomic_swap: Device-scopeOpAtomicExchangeimage_atomic_inc: Device-scope CAS loop(M >= DATA) ? 0 : M + 1(unsigned)image_atomic_dec: Device-scope CAS loop(M == 0 || M > DATA) ? DATA : M - 1(unsigned)image_atomic_fmin/image_atomic_fmax: Device-scope CAS loop using GLSL.std.450NMin/NMax(no shader float atomic extension required)image_atomic_fcmpswap: Device-scope CAS loop comparing the stored binary32 bits withvdata[1]. Both signs of zero compare equal, NaNs never match, and distinct subnormals stay distinct. On a match it swaps invdata[0]. Native RDNA2 behavior under denormal flushing still needs measurement.All 6 support 2D (
%simages, binding 4) and 3D (%simages3d, binding 7)r32uistorage images, packeda16coordinates, and optionalglcpre-op return; inactive lanes skip memory access and preservevdata. Initial CAS loads useOpAtomicLoad(valid onOpImageTexelPointerImage-storage-class pointers, unlike plainOpLoad).Changes
tools/rdna2spirv.py: addedIMG_ATOMICS_EXTRAandGen.emit_image_atomic_extra, wired into both 2D and 3D atomic paths ofGen.image_misc.tests/semantic/test_image_atomics_32.py: added translator + structured-CFG (spirv_mini_interp.check_structure) tests covering all 6 ops on 2D and 3D images,glcand non-glc,a16packed coordinates,OpAtomicLoad(never plainOpLoadonImagepointers), absence ofAtomicFloatcapabilities, and bad-width/coord/dim/d16rejections.docs/design.md: added the translator contract table row (native RDNA2 verification pending).Verification
python -I), CPU-only for the original tests, synthetic fixtures only (no game files).python -m compileall -q make_game.py tools tests— passpython -I tests/semantic/test_image_atomics_32.py -v— 3/3 passpython -I tests/semantic/test_fspx_rules.py -v— 9/9 passpython -I tests/test_shader_meta.py— 15/15 passpython -I tests/test_docs_links.py— 5/5 passpython -I tests/test_docs_repo_paths.py— 2/2 passpython -I tests/test_text_write_line_endings.py— 2/2 passpython -I tests/test_isa_coverage.py— 10 pass, 3 skipped (no local ISA XML env var)AI-assisted (Gemini).
The revised fcmpswap path at
01b33aepassed an independent RTX 5070 retest. All 1,536 readback words matched across eight configurations, and 16 contention dispatches produced results consistent with atomic ordering. GPU retest