upleb.uk

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

summaryrefslogtreecommitdiff
path: root/scripts/run_gpu_tests.py
diff options
context:
space:
mode:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-24 21:23:42 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-24 21:23:42 -0500
commit0819cfec800c48570beca6b7c2188a2a9eeed873 (patch)
tree8f63ccd0365ff00aa4d77b16c1f476a14ec609cb /scripts/run_gpu_tests.py
parentdc925c9bbd8ceb38acf428838bbf248bcc3257d3 (diff)
parent3ff2a2adcd3517f09d120540ae441c947d422e34 (diff)
Merge main (3ff2a2adc) into the #939 merge
Fourteen commits main gained after #968: #413, #1114, #1090 and #1491. Two conflicts, both in the shader check lists: scripts/run_gpu_tests.py imports both sides' cases, and tests/test_shader_checks.py counts eight cases next to COMPUTE (main's cs_w32_salu_ext) and #939's IMAGE_STORE_CASES table in place of main's fixed seven store shaders. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'scripts/run_gpu_tests.py')
-rw-r--r--scripts/run_gpu_tests.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py
index 141b7e4b9..8ba62104d 100644
--- a/scripts/run_gpu_tests.py
+++ b/scripts/run_gpu_tests.py
@@ -35,6 +35,7 @@ from check import (CS_SMEM_VCC, CMPX_CLASS_WORDS, CVT_F32_SAT_CASES, CVT_PK_U8_W
35from check import SIGNED_MIP_TEST, UINT_MIP_TEST 35from check import SIGNED_MIP_TEST, UINT_MIP_TEST
36from check import cbv_modulate_test 36from check import cbv_modulate_test
37from check import IMAGE_STORE_CASES, texture_uav_test 37from check import IMAGE_STORE_CASES, texture_uav_test
38from check import salu_ext_test # 38 scalar ALU ops on operands seeded through VKC_SGPRS
38from check import HEAP_INIT_EXPECTED, heap_init_env # cs_heap_init: vk_compute_test's VKC_HEAP_INIT 39from check import HEAP_INIT_EXPECTED, heap_init_env # cs_heap_init: vk_compute_test's VKC_HEAP_INIT
39from check import shift64_test # dynamic 64-bit vector shifts and overlapping destinations 40from check import shift64_test # dynamic 64-bit vector shifts and overlapping destinations
40from check import cmp_f64_test # the 32 binary64 vector compares on memory-fed operands 41from check import cmp_f64_test # the 32 binary64 vector compares on memory-fed operands
@@ -1127,6 +1128,10 @@ def run_suite(a, work: str) -> int:
1127 vals = words[:len(USER_SGPRS_WORDS)] if words else [] 1128 vals = words[:len(USER_SGPRS_WORDS)] if words else []
1128 results.append((name,) + compute_result(rc, msg, rc == 0 and vals == USER_SGPRS_WORDS, 1129 results.append((name,) + compute_result(rc, msg, rc == 0 and vals == USER_SGPRS_WORDS,
1129 " ".join(hex(x) for x in vals) if vals else msg)) 1130 " ".join(hex(x) for x in vals) if vals else msg))
1131 elif name == "cs_w32_salu_ext":
1132 detail = salu_ext_test(a.build, spirv_dir, cs_env)
1133 results.append((name, None if isinstance(detail, Skip) else not detail,
1134 detail or "80 words exact (73 results of 38 scalar ops and the untouched fill)"))
1130 elif name == "cs_f64_add": 1135 elif name == "cs_f64_add":
1131 rc, msg = run_cmd([vk_compute, spv, "1", "dump"], env=cs_env) 1136 rc, msg = run_cmd([vk_compute, spv, "1", "dump"], env=cs_env)
1132 if rc == 77: # Float64, or Int64 where the module declares both: quote whichever it names 1137 if rc == 77: # Float64, or Int64 where the module declares both: quote whichever it names
@@ -1205,7 +1210,7 @@ def run_suite(a, work: str) -> int:
1205 "cs_w64x_lds_war", "cs_w64x_partial", "cs_w64x_sbarrier", "cs_w64x_load_ballot_load", 1210 "cs_w64x_lds_war", "cs_w64x_partial", "cs_w64x_sbarrier", "cs_w64x_load_ballot_load",
1206 "cs_w64x_mask_reuse", "cs_w64x_mask_reuse2", "cs_w64x_chain_barrier", "cs_barrier_divergent", 1211 "cs_w64x_mask_reuse", "cs_w64x_mask_reuse2", "cs_w64x_chain_barrier", "cs_barrier_divergent",
1207 "cs_bpermute32", "cs_w64x_partial_scmp", "cs_w32_partial_scmp", "cs_w32_partial_permute", "cs_barrier_early_end", 1212 "cs_bpermute32", "cs_w64x_partial_scmp", "cs_w32_partial_scmp", "cs_w32_partial_permute", "cs_barrier_early_end",
1208 "cs_barrier_loop", "cs_w64x_andn2_exec", "cs_w64x_saveexec_b64", "cs_lds_b64_cmpst", "cs_lds_xchg64_ext", "cs_lds_atomics_ext", "cs_w32_andn2_exec", 1213 "cs_barrier_loop", "cs_w64x_andn2_exec", "cs_w64x_saveexec_b64", "cs_w64x_cmp_sdst", "cs_lds_b64_cmpst", "cs_lds_xchg64_ext", "cs_lds_atomics_ext", "cs_w32_andn2_exec",
1209 "cs_mask_vgpr_exec", "cs_w32_exec_computed", "cs_w64_exec_computed"): 1214 "cs_mask_vgpr_exec", "cs_w32_exec_computed", "cs_w64_exec_computed"):
1210 cs_dump_wants = { 1215 cs_dump_wants = {
1211 "cs_store": [0x400080FF, 0xE00003FF, 0x3C004000, 0xEEEEEEEE, 0x40003C00, 0xBC003800, 0x40FF8000, 0x3FF00000], 1216 "cs_store": [0x400080FF, 0xE00003FF, 0x3C004000, 0xEEEEEEEE, 0x40003C00, 0xBC003800, 0x40FF8000, 0x3FF00000],
@@ -1305,6 +1310,7 @@ def run_suite(a, work: str) -> int:
1305 "cs_w64x_load_ballot_load": [43, 74, 75, 42, 42, 18, 41, 32], 1310 "cs_w64x_load_ballot_load": [43, 74, 75, 42, 42, 18, 41, 32],
1306 "cs_w64x_andn2_exec": [1, 16, 32, 4144, 2052, 3, 8, 1544], # s_andn2_saveexec/wrexec_b64 (.asm header) 1311 "cs_w64x_andn2_exec": [1, 16, 32, 4144, 2052, 3, 8, 1544], # s_andn2_saveexec/wrexec_b64 (.asm header)
1307 "cs_w64x_saveexec_b64": [6160, 12304, 5120, 2088, 6168, 8192, 7176, 1837171], # .asm header 1312 "cs_w64x_saveexec_b64": [6160, 12304, 5120, 2088, 6168, 8192, 7176, 1837171], # .asm header
1313 "cs_w64x_cmp_sdst": [10240, 6144, 2053, 8224, 7714, 6184, 4144, 5], # .asm header
1308 "cs_bpermute32": [0, 50, 162, 99, 36, 218, 183, 15], # wave32: needs 32 lanes 1314 "cs_bpermute32": [0, 50, 162, 99, 36, 218, 183, 15], # wave32: needs 32 lanes
1309 # SHADER-91: s_barrier sites in different wave-uniform branches meet (cs_barrier_divergent.asm) 1315 # SHADER-91: s_barrier sites in different wave-uniform branches meet (cs_barrier_divergent.asm)
1310 "cs_barrier_divergent": [127, 126, 125, 124, 123, 122, 121, 120], 1316 "cs_barrier_divergent": [127, 126, 125, 124, 123, 122, 121, 120],