GPU fixture cs_imgstore_cube: image_store on dim:SQ_RSRC_IMG_CUBE (GPU-CUBE-STORE) #335
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!335
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/335/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@milk4sale on GitHub · 2026-11-24 03:14 UTC · original
milk4sale:gpu-test/cube-store→main· +207 −14 · 6 files · 1 commits · merged 2026-11-24 16:21 UTCClaimed in the coordination issue as: GPU-CUBE-STORE (#14)
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
@Sangonapou on GitHub · 2026-11-24 05:06 UTC · original
Tested 6b2440bd 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
scripts\build_runtime.ps1(MSVC 19.51, VS Build Tools 2026);llvm-mc23.1.6 (conda-forge), SPIRV-Tools 2026.4, Vulkan SDK 1.4.363.0. No game files.run_gpu_tests.py --filter cs_imgstore_cube --require-pass: PASS native and withLEONIDA_W64_EMULATE=1.mainplus this fixture. The only failures,cs_imgload_tfeandcs_imgload_d16_tfe, fail identically onmainece4ba5bon this card (main: native 197/248, emulated 229/248), the same pair as #31 / #336.tests/test_shader_checks.py: 84 OK.@trigger337 on GitHub · 2026-11-24 09:20 UTC · original
Tested b94936bdf 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:
runtime/build/linux/vk_store_testbuilt cleanly viacmake --build runtime/build/linux --target vk_store_test.python3 scripts/run_gpu_tests.py --build runtime/build/linux --filter cs_imgstore_cube --require-pass: PASS native and withLEONIDA_W64_EMULATE=1.python3 scripts/run_gpu_tests.py --build runtime/build/linux --filter cs_imgstore --require-pass: 2/2 passed (cs_imgstore,cs_imgstore_cube).python3 -m unittest discover -s tests/semantic -p test_image_cube_store_glc.py: 9/9 passed.python3 -I tests/test_shader_checks.py: 87/87 passed.scripts/check_no_game_data.py: clean. No game files.AI-assisted: yes
agent: yes
@dpalacios69 on GitHub · 2026-11-24 14:38 UTC · original
Independent verification of PR head
b94936b(GPU-CUBE-STORE) on a GPU not covered yet: NVIDIA GeForce GTX 1660 SUPER (Turing TU116, PCI 10de:21c4), driver 620.70.06 (proprietary), Vulkan 1.4.357, Fedora Linux 44, subgroup 32..32. Built from the PR head, CMake + Ninja, 153/153 targets.Results
cs_imgstore_cube: PASS native and withLEONIDA_W64_EMULATE=1, 20/20 and 20/20 repeated runs. Also PASS on llvmpipe (LLVM 22.1.8).spirv-val --target-env vulkan1.3is clean;spirv-disshows the threeArrayed=12D storage images at bindings 11/12/13, as the PR describes.run_gpu_tests.py: 258/258 translated and passspirv-val; native 198/249 passed (49 skipped), W64 230/249 (17 skipped). Both are +1 over the baseline measured on this card at21625bc(197/248, 229/248); the only 2 failures are the known #31 pair.ctest69/69 (2 skipped).tests/test_shader_checks.py87/87.main(14b5825) in a scratch copy: merges cleanly (no conflict with #213), builds, and the same results hold (259/259 translate, native 199/250, W64 231/250).cubemode (FAIL, 320 bad texels), two faces swapped in the.asm(FAIL), and oneimage_storedeleted (FAIL).vk_store_testbuilt withclang++ -fsanitize=address,undefined: 0 ASan errors, 0 UBSan reports (leak detection off).Two small notes on the harness (not blockers)
vk_store_test.cpp:120-121skips cleanly whenshaderStorageImageWriteWithoutFormatis missing, but cube mode never queriesvkGetPhysicalDeviceFormatProperties(STORAGE_IMAGE_BITfor rgba8 unorm, r32 uint, r32 sint) orvkGetPhysicalDeviceImageFormatPropertieswithCUBE_COMPATIBLE; on a device without that supportCHECK(vkCreateImage(...))(around:320) aborts instead of skipping (exit 77). Probably fine for desktop GPUs; worth a guard for the odd driver.vkDestroy*/vkFreeMemory(same onmain, so not new): with leak detection on, ASan reports ~290 KB held by the NVIDIA driver at exit.CI failures on this PR (
linux-gpu-tools,stdlib-tests-linux,macos,macos-python,windows,check) did not reproduce locally for the Linux ones on the PR's code; I did not run the macOS or Windows jobs. Not run: the Vulkan validation layer (not installed here) and a secondllvm-mcversion.No game data. AI-assisted.
@aslan2142 on GitHub · 2026-11-24 16:21 UTC · original
Tested
0d27fdcf9merged locally onto main1504c1af6: 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).