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:
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 b63617b6e..d5fb01b64 100644
--- a/scripts/run_gpu_tests.py
+++ b/scripts/run_gpu_tests.py
@@ -493,7 +493,8 @@ DRAWN_WITH = {GATHER_LOD_TEST: "vs_ids.asm", "ps_flat": "vs_ids.asm", "ps_textur
493 "ps_gather_wrap": "vs_ids.asm", 493 "ps_gather_wrap": "vs_ids.asm",
494 **{name: "vs_ids.asm" for name in GRADIENT_TESTS}, "vs_clip": "ps_ops.asm", 494 **{name: "vs_ids.asm" for name in GRADIENT_TESTS}, "vs_clip": "ps_ops.asm",
495 "ps_interp_f16_high": "vs_f16_pack.asm", "ms_f16_pack": "ps_interp_f16_high.asm", 495 "ps_interp_f16_high": "vs_f16_pack.asm", "ms_f16_pack": "ps_interp_f16_high.asm",
496 "ps_interp_f32_mods": "vs_interp_consts.asm", "ps_interp_mov_mods": "vs_interp_consts.asm"} 496 "ps_interp_f32_mods": "vs_interp_consts.asm", "ps_interp_mov_mods": "vs_interp_consts.asm",
497 "vs_base_ids": "ps_flat.asm"}
497 498
498 499
499def with_draw_shaders(asm_files: list[str]) -> list[str]: 500def with_draw_shaders(asm_files: list[str]) -> list[str]:
@@ -1087,6 +1088,19 @@ def run_suite(a, work: str) -> int:
1087 else: 1088 else:
1088 ok, detail = check_clip_half(raw, 0.5, 1.0) 1089 ok, detail = check_clip_half(raw, 0.5, 1.0)
1089 results.append((name, ok, detail)) 1090 results.append((name, ok, detail))
1091 elif name == "vs_base_ids":
1092 # Zero-based v0 / v3 (the hardware's VS input VGPRs): drawn with firstVertex 16 and firstInstance 7,
1093 # ps_flat must still see vertex 0 of instance 0 (0x101), as check.py checks.
1094 raw = os.path.join(raw_dir, f"{name}.raw")
1095 env = dict(gfx_env or os.environ, VKH_DRAW="16,7")
1096 rc, msg = run_cmd([vk_harness, spv, os.path.join(spirv_dir, "ps_flat.spv"), raw], env=env)
1097 if rc == UNSUPPORTED:
1098 results.append((name, None, unsupported_skip(msg)))
1099 elif rc != 0:
1100 results.append((name, False, msg))
1101 else:
1102 ok, detail = check_flat(raw)
1103 results.append((name, ok, detail))
1090 1104
1091 if a.filter and not results: # the filter matched only inputs/partners: say so rather than "0/0 passed" 1105 if a.filter and not results: # the filter matched only inputs/partners: say so rather than "0/0 passed"
1092 names = [os.path.splitext(f)[0] for f in asm_files] 1106 names = [os.path.splitext(f)[0] for f in asm_files]