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:
authorItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 13:12:27 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 13:12:27 -0500
commit51d954a2cd9f54b851484aedb983ebf49b3d2186 (patch)
treef12534967cd2e2099e3b1f582b182f8f085480dc /scripts/run_gpu_tests.py
parent60cc47cb79f5362f39e9179e0797c3eb5d8aa643 (diff)
parent97afefdebc4ac01f1c0415e59f9522914a628ad1 (diff)
Merge pull request #436 from S1m0ne1997
Diffstat (limited to 'scripts/run_gpu_tests.py')
-rw-r--r--scripts/run_gpu_tests.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py
index 3a23250fc..67da492ac 100644
--- a/scripts/run_gpu_tests.py
+++ b/scripts/run_gpu_tests.py
@@ -557,7 +557,8 @@ DRAWN_WITH = {GATHER_LOD_TEST: "vs_ids.asm", "ps_flat": "vs_ids.asm", "ps_textur
557 **{name: "vs_ids.asm" for name in GRADIENT_TESTS}, "vs_clip": "ps_clip_color.asm", 557 **{name: "vs_ids.asm" for name in GRADIENT_TESTS}, "vs_clip": "ps_clip_color.asm",
558 "ps_interp_f16_high": "vs_f16_pack.asm", "ms_f16_pack": "ps_interp_f16_high.asm", 558 "ps_interp_f16_high": "vs_f16_pack.asm", "ms_f16_pack": "ps_interp_f16_high.asm",
559 "ps_interp_f32_mods": "vs_interp_consts.asm", "ps_interp_mov_mods": "vs_interp_consts.asm", 559 "ps_interp_f32_mods": "vs_interp_consts.asm", "ps_interp_mov_mods": "vs_interp_consts.asm",
560 SIGNED_MIP_TEST: "vs_ids.asm"} 560 SIGNED_MIP_TEST: "vs_ids.asm",
561 "vs_base_ids": "ps_flat.asm"}
561DRAWN_WITH.update({name: "vs_ids.asm" for name in GET_LOD_TESTS}) 562DRAWN_WITH.update({name: "vs_ids.asm" for name in GET_LOD_TESTS})
562 563
563 564
@@ -1268,6 +1269,19 @@ def run_suite(a, work: str) -> int:
1268 else: 1269 else:
1269 ok, detail = check_clip_half(raw, 0.5, 1.0) 1270 ok, detail = check_clip_half(raw, 0.5, 1.0)
1270 results.append((name, ok, detail)) 1271 results.append((name, ok, detail))
1272 elif name == "vs_base_ids":
1273 # Zero-based v0 / v3 (the hardware's VS input VGPRs): drawn with firstVertex 16 and firstInstance 7,
1274 # ps_flat must still see vertex 0 of instance 0 (0x101), as check.py checks.
1275 raw = os.path.join(raw_dir, f"{name}.raw")
1276 env = dict(gfx_env or os.environ, VKH_DRAW="16,7")
1277 rc, msg = run_cmd([vk_harness, spv, os.path.join(spirv_dir, "ps_flat.spv"), raw], env=env)
1278 if rc == UNSUPPORTED:
1279 results.append((name, None, unsupported_skip(msg)))
1280 elif rc != 0:
1281 results.append((name, False, msg))
1282 else:
1283 ok, detail = check_flat(raw)
1284 results.append((name, ok, detail))
1271 1285
1272 if a.filter and not results: # the filter matched only inputs/partners: say so rather than "0/0 passed" 1286 if a.filter and not results: # the filter matched only inputs/partners: say so rather than "0/0 passed"
1273 names = [os.path.splitext(f)[0] for f in asm_files] 1287 names = [os.path.splitext(f)[0] for f in asm_files]