upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/shaders/check.py
diff options
context:
space:
mode:
authorDiesel <dev.diesel@proton.me>2026-11-21 22:44:07 +0100
committerDiesel <dev.diesel@proton.me>2026-11-21 22:44:07 +0100
commit5c1a1fbb6bf6f609eb4e61baa4961ce382743a4e (patch)
treeac8ad90058b97ab241fdc65edae3d4628d20ee1e /runtime/test/shaders/check.py
parentc45309e29f21c1d5b75678db0e2dc2dd11cff25b (diff)
parent4e390e0871d7265e629b51aca8ff99a15a6a6845 (diff)
Merge main to include the compute Y/Z harness test fix
Diffstat (limited to 'runtime/test/shaders/check.py')
-rw-r--r--runtime/test/shaders/check.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/test/shaders/check.py b/runtime/test/shaders/check.py
index 15c2a0c60..75f9a2d50 100644
--- a/runtime/test/shaders/check.py
+++ b/runtime/test/shaders/check.py
@@ -29,7 +29,9 @@ UNSUPPORTED = 77 # a test tool exits with
29COMPUTE = [("cs_lds", "4", "mirror64"), ("cs_exec64", "1", "exec64"), ("cs_bvh", "1", "bvh"), 29COMPUTE = [("cs_lds", "4", "mirror64"), ("cs_exec64", "1", "exec64"), ("cs_bvh", "1", "bvh"),
30 ("cs_workgroup_yz", "2x3x4", "workgroup_yz")] 30 ("cs_workgroup_yz", "2x3x4", "workgroup_yz")]
31CS_STORE = [0x400080ff, 0xe00003ff, 0x3c004000, 0xeeeeeeee, 0x40003c00, 0xbc003800] 31CS_STORE = [0x400080ff, 0xe00003ff, 0x3c004000, 0xeeeeeeee, 0x40003c00, 0xbc003800]
32CS_DUMPS = [("cs_store", CS_STORE), ("cs_wave64_ballot", [32, 16, 24, 40, 8, 48]), 32CS_SMEM = [0x5eed0024, 0x5eed0028, 0x5eed002c, 0x5eed0030, 0x5eed0010, 0x5eed0014, 0x5eed0018, 0x5eed001c]
33WAVE32_DUMPS = ("cs_store", "cs_smem_soffset_imm")
34CS_DUMPS = [("cs_store", CS_STORE), ("cs_smem_soffset_imm", CS_SMEM), ("cs_wave64_ballot", [32, 16, 24, 40, 8, 48]),
33 ("cs_wm_half_ops", [32, 16, 16, 0, 16]), ("cs_wm_half_cmp", [1, 0, 1, 1]), 35 ("cs_wm_half_ops", [32, 16, 16, 0, 16]), ("cs_wm_half_cmp", [1, 0, 1, 1]),
34 ("cs_wm_bfm64", [16, 8, 8, 40]), ("cs_wm_scc_rfl", [55, 48])] 36 ("cs_wm_bfm64", [16, 8, 8, 40]), ("cs_wm_scc_rfl", [55, 48])]
35# Cross-half wave64 tests (x = cross-half): exact results need 64 lanes, or an emulation of them on narrower subgroups. 37# Cross-half wave64 tests (x = cross-half): exact results need 64 lanes, or an emulation of them on narrower subgroups.
@@ -229,7 +231,7 @@ def main():
229 require_wave64=not W64_EMULATED))) 231 require_wave64=not W64_EMULATED)))
230 for name, want in CS_DUMPS: # all but cs_store need a 64-wide subgroup unless wave64 is emulated 232 for name, want in CS_DUMPS: # all but cs_store need a 64-wide subgroup unless wave64 is emulated
231 results.append((name, compute_test(tools, spirv, name, "1", "dump", 233 results.append((name, compute_test(tools, spirv, name, "1", "dump",
232 require_wave64=name != "cs_store" and not W64_EMULATED, 234 require_wave64=name not in WAVE32_DUMPS and not W64_EMULATED,
233 expected_words=want))) 235 expected_words=want)))
234 for name, want in W64X_DUMPS: # without --require-wave64 when LEONIDA_W64_EMULATE=1 236 for name, want in W64X_DUMPS: # without --require-wave64 when LEONIDA_W64_EMULATE=1
235 results.append((name, compute_test(tools, spirv, name, "1", "dump", require_wave64=not W64_EMULATED, 237 results.append((name, compute_test(tools, spirv, name, "1", "dump", require_wave64=not W64_EMULATED,