upleb.uk

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

summaryrefslogtreecommitdiff
path: root/tools/shader_diff.py
diff options
context:
space:
mode:
authorItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 10:39:09 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 10:39:09 -0500
commitd1dec80bd6bc38e3abe367cce4819e7306714fb2 (patch)
tree19b6baa72b89b4d5d92298cf9863ab74c1e19e07 /tools/shader_diff.py
parentde8278f67303c535398c68997dfd2952f2ae82e3 (diff)
parent89924428f93e3685a191336ac830ad3fe01b846b (diff)
Merge pull request #1883 from skwizzy222
Diffstat (limited to 'tools/shader_diff.py')
-rw-r--r--tools/shader_diff.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/shader_diff.py b/tools/shader_diff.py
index 4b52ab7ba..e62cbc3b5 100644
--- a/tools/shader_diff.py
+++ b/tools/shader_diff.py
@@ -38,7 +38,7 @@ if SEM_DIR not in sys.path:
38 38
39import cpu_ref # noqa: E402 39import cpu_ref # noqa: E402
40import rdna2spirv # noqa: E402 40import rdna2spirv # noqa: E402
41from spirv_mini_interp import run_fragment # noqa: E402 41from spirv_mini_interp import UnsupportedConstruct, run_fragment # noqa: E402
42 42
43STUB_DXBC = b"DXBC" + bytes(24) + struct.pack("<I", 0) + bytes(4) 43STUB_DXBC = b"DXBC" + bytes(24) + struct.pack("<I", 0) + bytes(4)
44 44
@@ -243,7 +243,7 @@ def run_one(name, lines, writers):
243 return ("skip", f"translator error {type(e).__name__}: {e}") 243 return ("skip", f"translator error {type(e).__name__}: {e}")
244 try: 244 try:
245 out = run_fragment(spvasm) 245 out = run_fragment(spvasm)
246 except Exception as e: # noqa: BLE001 - the interpreter is part of the comparison 246 except UnsupportedConstruct as e:
247 return ("skip", f"mini_interp unsupported: {type(e).__name__}: {e}") 247 return ("skip", f"mini_interp unsupported: {type(e).__name__}: {e}")
248 if list(out) != ["%out_mrt0"]: 248 if list(out) != ["%out_mrt0"]:
249 return ("skip", f"mini_interp gave outputs {sorted(out)}, want [%out_mrt0]") 249 return ("skip", f"mini_interp gave outputs {sorted(out)}, want [%out_mrt0]")