Repository navigation
feat(rdna2spirv): implement image_gather4 and image_gather4_c variants - #3201
klarnet2009 wants to merge 1 commit into
Conversation
|
Tested f56ef22 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), kernel 7.2.7-valve2-2-neptune-72-g31504582a073: pass. Semantic tests:
Full GPU suite:
AI-assisted (OpenCode). |
|
Tested f56ef22 on an RTX 5090 (driver 616.92), Windows 11, Vulkan SDK 1.4.363. The GPU test programs were built from the same tree:
AI-assisted (Claude Code). |
f56ef22 to
5f46ec3
Compare
5f46ec3 to
1b7da95
Compare
|
Tested 1b7da95 on NVIDIA GeForce GTX 1660 (Turing, TU116, subgroup 32..32), driver 620.73.04 (proprietary, Vulkan 1.4.357), Arch Linux (kernel 6.18): pass, no regression. Native build of runtime/ from this head (Ninja, RelWithDebInfo, clang 23.1.5), llvm-mc 23.1.5, SPIRV-Tools v2026.4.
AI-assisted run (Claude). Synthetic programs only, no game files involved. |
1b7da95 to
f098b01
Compare
|
Tested
The PR has no GPU fixture for the new gather forms, so this is a regression check only. Test programs rebuilt from the PR head; compared against |
|
Tested
AI-assisted (Gemini 4 Neon). |
|
Independent CPU integration check at |
|
Tested exact head |
What and why
Implements
image_gather4,image_gather4_o,image_gather4_c,image_gather4_c_o,image_gather4_c_lz, andimage_gather4_c_lz_ointools/rdna2spirv.py:image_gather4/image_gather4_o: emitsOpImageGather %v4float(with optional signed 6-bitOffset), supporting2D,2D_ARRAY,CUBE, andd16.image_gather4_c/image_gather4_c_o/image_gather4_c_lz/image_gather4_c_lz_o: emitsOpImageDrefGather %v4float(withuvfrom coords,reffrom 32-bit z-compare even whena16is set, and optionalOffset), supporting2D,2D_ARRAY,CUBE, andd16.3D, multi-bit/zerodmask, insufficient coordinates, and_o + a16withUnsupported.docs/design.md(CPU-checked, not yet hardware-measured on RDNA2) and adds structural translator tests intests/semantic/test_image_gather4_c.py(6 tests).Tested
py -3.12 -I -m compileall -q tools/rdna2spirv.py tests/semantic/test_image_gather4_c.py: passed (exit 0)py -3.12 -I tests/semantic/test_image_gather4_c.py -v: Ran 6 tests in 0.182s, OKpy -3.12 -I tests/test_isa_coverage.py -v: Ran 13 tests in 3.417s, OK (skipped=3 forLEONIDA_RDNA2_ISA_XML)py -3.12 -I tests/test_ctest_registration.py -v: Ran 4 tests in 0.047s, OKtools/rdna2spirv.pytoHEADand confirmedtest_image_gather4_c.pyfailed (8Unsupportederrors), then restored and re-ran 6/6 passing.Checklist
python -Icompatible)