diff options
| author | milk4sale <53350507+milk4sale@users.noreply.github.com> | 2026-11-23 21:10:08 -0600 |
|---|---|---|
| committer | milk4sale <53350507+milk4sale@users.noreply.github.com> | 2026-11-24 01:47:49 -0600 |
| commit | 0d27fdcf9a1e511bad33247b9753f3d3fa78d326 (patch) | |
| tree | 3c79b335611cd9656da973aee4e938b19711a84f /scripts/run_gpu_tests.py | |
| parent | 1c93c8697078c3ccbd6f374caf5bb3ab0b6bc8e4 (diff) | |
GPU fixture cs_imgstore_cube: image_store on dim:SQ_RSRC_IMG_CUBE (GPU-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 #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>
Diffstat (limited to 'scripts/run_gpu_tests.py')
| -rw-r--r-- | scripts/run_gpu_tests.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index a075c876a..20e72668e 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -1320,6 +1320,9 @@ def run_suite(a, work: str) -> int: | |||
| 1320 | elif name == "cs_imgstore": | 1320 | elif name == "cs_imgstore": |
| 1321 | rc, msg = run_cmd([vk_store, spv]) | 1321 | rc, msg = run_cmd([vk_store, spv]) |
| 1322 | results.append((name, *helper_result(rc, msg))) | 1322 | results.append((name, *helper_result(rc, msg))) |
| 1323 | elif name == "cs_imgstore_cube": # GPU-CUBE-STORE: six-layer 2D-array views at bindings 11/12/13 | ||
| 1324 | rc, msg = run_cmd([vk_store, spv, "cube"]) | ||
| 1325 | results.append((name, *helper_result(rc, msg))) | ||
| 1323 | elif name in ("cs_imgload", "cs_imgload_tfe", "cs_imgload_d16", "cs_imgload_d16_tfe", "cs_sample_lz_int_d16"): | 1326 | elif name in ("cs_imgload", "cs_imgload_tfe", "cs_imgload_d16", "cs_imgload_d16_tfe", "cs_sample_lz_int_d16"): |
| 1324 | rc, msg = run_cmd([vk_store, spv, "load" if name in ("cs_imgload", "cs_imgload_tfe") else "load-d16"]) | 1327 | rc, msg = run_cmd([vk_store, spv, "load" if name in ("cs_imgload", "cs_imgload_tfe") else "load-d16"]) |
| 1325 | results.append((name, *helper_result(rc, msg))) | 1328 | results.append((name, *helper_result(rc, msg))) |