Repository navigation
GPU fixture cs_imgstore_cube: image_store on dim:SQ_RSRC_IMG_CUBE (GPU-CUBE-STORE) - #335
Conversation
|
Tested 6b2440b on NVIDIA GeForce RTX 3080 Ti Laptop (Ampere, subgroup 32..32), NVIDIA 621.24, Vulkan 1.4.357, Windows 11 Pro (build 26300): pass Runtime built at this head with
|
6b2440b to
b94936b
Compare
…U-CUBE-STORE) The "Typed image stores" contract row said a cube storage image was CPU-checked only (test_image_cube_store_glc.py) and that no GPU fixture covered it. This adds one: - runtime/test/shaders/cs_imgstore_cube.asm: rgba8 unorm, r32 uint and r32 sint T#s (word3 TYPE = SQ_RSRC_IMG_CUBE); 64 threads store to every texel of all six faces, with per-face values so a wrong layer shows. - vk_store_test "cube": three cube-compatible 8x8 six-layer images bound as six-layer 2D-array storage views at bindings 11/12/13, as the runtime binds a cube UAV; checks every texel of every layer. - run_gpu_tests.py and check.py run it; test_shader_checks.py counts it. - docs/design.md: the row names the fixture and the GPUs it passes on. Builds on ProjectLeonida#44, which rewrote that row. Passes on an RTX 4070 Ti (NVIDIA 620.70.06) and a Radeon 610M (gfx1036, RADV Mesa 26.2.6), native and LEONIDA_W64_EMULATE=1. The same fixture with the face held at 0 fails on both (320/384/384 bad texels). AI-assisted. No game files. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested b94936b on AMD Radeon RX 6900 XT (RADV NAVI21 / GFX1030, Mesa 26.2.5, Linux 7.3.1 CachyOS, Vulkan 1.4.328, subgroup 32..64): pass. Discrete desktop RDNA2 verification:
AI-assisted: yes |
|
Independent verification of PR head Results
Two small notes on the harness (not blockers)
CI failures on this PR ( No game data. AI-assisted. |
b94936b to
0d27fdc
Compare
|
Tested 0d27fdc merged locally onto main 1504c1a: cs_imgstore_cube passes everywhere, and nothing else changes state. Devices: RADV, Mesa 26.3.1, Linux:
New fixture, 10 runs each with run_gpu_tests.py --filter cs_imgstore_cube --require-pass:
Regressions, main vs main + #335:
CI: this head's checks are still queued on GitHub, so I ran the Linux jobs locally. They give the same result on both trees. The only failures are already on main:
AI-assisted (Claude Code, Claude Opus 5.5). |
Claimed in the coordination issue as: GPU-CUBE-STORE (#14 (comment))
Depends on: none. It builds on #44 (DOC-CUBE-STORE, merged), whose "Typed image stores" row said a cube store was "not GPU-verified: no GPU fixture covers a cube store yet". It touches
vk_store_test.cpp,check.py,run_gpu_tests.pyandtest_shader_checks.py, which #213 also changes. The two don't overlap in meaning (#213 keeps 2D-array storage at bindings 11/12/13 and adds 26-28 for 1D arrays), but whichever lands second may need a textual rebase.What and why
The translator writes
image_store ... dim:SQ_RSRC_IMG_CUBEthrough a six-layer 2D-array storage view (bindings 11/12/13 for float/uint/sint, coordinates (x, y, face)), as the runtime binds a cube UAV (runtime/src/vulkan_bindless.h). Until now onlytests/semantic/test_image_cube_store_glc.pychecked that, on the CPU. This adds the GPU fixture:runtime/test/shaders/cs_imgstore_cube.asm: three T#s (FORMAT 56 rgba8 unorm, 20 r32 uint, 21 r32 sint; word3 TYPE = 0xB,SQ_RSRC_IMG_CUBE). 64 threads each store to their texel on all six faces, with per-face values so a wrong layer shows: rgba8(x/7, y/7, face/5, 1), uint100 + 1000·face + 8y + x, sint-(1000·face + 8y + x).vk_store_test cs_imgstore_cube.spv cube: three cube-compatible 8x8 images of six layers, each bound through a six-layerVK_IMAGE_VIEW_TYPE_2D_ARRAYstorage view at index 1-3 of bindings 11/12/13. All six layers are read back and every texel of every face is checked. The other modes are unchanged: they keep their 8 bindings and do not create the cube images.scripts/run_gpu_tests.pyandruntime/test/shaders/check.pyrun it the way they runcs_imgstore.tests/test_shader_checks.pycounts the seventhvk_store_testcase and fakes its output.docs/design.md, "Typed image stores": the cube sentence names the fixture and the GPUs it passed on, replacing "not GPU-verified".Tested
On
main1c7f5b510plus this commit, CachyOS (kernel 7.3.3), llvm-mc 23.1.4, SPIRV-Tools v2026.4, GCC 16.2.1:cs_imgstore_cubenativeLEONIDA_W64_EMULATE=1182 109 204 255/4129/-4029in the passing runs, as the fixture predicts.cs_imgstorestill passes on both GPUs, native and emulated.scripts/run_semantic_tests.py tests/semantic: 463 files, 6,075 tests, 0 failed.ctest: 70/70 (2 skipped as on main).node --test tests/test_viewer_streaming.cjs: 57/57.python -I tests/test_*.pyfor every standard-library test file: all pass excepttest_rdna2_decode.py, which fails the same way onmainhere (llvm-mc 23.1.4 printsop_sel:[0,1]where the decoder givesop_sel:[0,1,0,0]). The 30 pytest-based test files were not run (pytest is not installed on this machine).scripts/check_no_game_data.pyon the new fixture: clean.AI-assisted: yes (Claude Code)
Checklist
docs/design.md, with how it was confirmed. (No new rule: this GPU-confirms the existing cube store row.)🤖 Generated with Claude Code