diff options
| author | abilliontokens <abilliontokens@users.noreply.github.com> | 2026-11-22 05:11:19 -0800 |
|---|---|---|
| committer | abilliontokens <abilliontokens@users.noreply.github.com> | 2026-11-22 05:11:19 -0800 |
| commit | cfcc1de4914920a79b3e034e8702fcacb0fb6836 (patch) | |
| tree | 412854bcd4cbfa72d0eb9c47fb8d6f8c9b86725b /scripts/run_gpu_tests.py | |
| parent | a0acd33d77babe67a28e398b2936a9f735a50f5d (diff) | |
GPU runners: ps_ij_computed SKIPs, not FAILs, without PerVertexKHR inputs
Follow-up to #1545 (SHADER-177). Under --bary-fallback and --f16-interp-fallback the translator refuses a
computed I/J pair, so ps_ij_computed has no .spv, and both runners reported "missing .spv" instead of SKIP:
9018411c's bary skip in run_gpu_tests sits inside the PIXEL_VERTEX branch (ps_ij_computed is not in it) and
after the missing-.spv check, check.py's skip came after its .spv check too, and neither knew the f16
fallback, which run_gpu_tests turns on by default where PerVertexKHR doesn't compile (MoltenVK). Both runners
now skip it first, under either fallback; a missing .spv without a fallback is still a failure.
tests/test_run_gpu_tests.py covers both runners.
Co-authored-by: crastinator <qvaras@proton.me>
Diffstat (limited to 'scripts/run_gpu_tests.py')
| -rw-r--r-- | scripts/run_gpu_tests.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index abdde3e9f..3dae74165 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -753,6 +753,12 @@ def run_suite(a, work: str) -> int: | |||
| 753 | for fname in asm_files: | 753 | for fname in asm_files: |
| 754 | name = os.path.splitext(fname)[0] | 754 | name = os.path.splitext(fname)[0] |
| 755 | spv = os.path.join(spirv_dir, f"{name}.spv") | 755 | spv = os.path.join(spirv_dir, f"{name}.spv") |
| 756 | if name == "ps_ij_computed" and (bary_fallback() or f16_interp_fallback()): | ||
| 757 | # Before the .spv check: without PerVertexKHR inputs the translator refuses a computed I/J pair, so there | ||
| 758 | # is no .spv (the f16 fallback is on by default where PerVertexKHR doesn't compile: MoltenVK). | ||
| 759 | results.append((name, None, "SKIP (computed I/J pairs need PerVertexKHR inputs: " | ||
| 760 | "no --bary-fallback / --f16-interp-fallback)")) | ||
| 761 | continue | ||
| 756 | if not os.path.isfile(spv): | 762 | if not os.path.isfile(spv): |
| 757 | results.append((name, False, "missing .spv (translation failed)")) | 763 | results.append((name, False, "missing .spv (translation failed)")) |
| 758 | continue | 764 | continue |
| @@ -1063,7 +1069,7 @@ def run_suite(a, work: str) -> int: | |||
| 1063 | raw = os.path.join(raw_dir, f"{name}.raw") | 1069 | raw = os.path.join(raw_dir, f"{name}.raw") |
| 1064 | vs = os.path.join(spirv_dir, "vs_ids.spv") if name == "ps_flat" else vs_tri # check.py draws ps_flat with vs_ids | 1070 | vs = os.path.join(spirv_dir, "vs_ids.spv") if name == "ps_flat" else vs_tri # check.py draws ps_flat with vs_ids |
| 1065 | if name in PIXEL_VERTEX: | 1071 | if name in PIXEL_VERTEX: |
| 1066 | if bary_fallback() and name in ("ps_interp_f16_high", "ps_ij_computed"): # no PerVertexKHR inputs | 1072 | if bary_fallback() and name == "ps_interp_f16_high": # no PerVertexKHR inputs under --bary-fallback |
| 1067 | results.append((name, None, "SKIP (per-vertex f16 interpolants need barycentrics)")) | 1073 | results.append((name, None, "SKIP (per-vertex f16 interpolants need barycentrics)")) |
| 1068 | continue | 1074 | continue |
| 1069 | vs = os.path.join(spirv_dir, PIXEL_VERTEX[name] + ".spv") | 1075 | vs = os.path.join(spirv_dir, PIXEL_VERTEX[name] + ".spv") |