diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 10:39:09 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 10:39:09 -0500 |
| commit | d1dec80bd6bc38e3abe367cce4819e7306714fb2 (patch) | |
| tree | 19b6baa72b89b4d5d92298cf9863ab74c1e19e07 /tools/shader_diff.py | |
| parent | de8278f67303c535398c68997dfd2952f2ae82e3 (diff) | |
| parent | 89924428f93e3685a191336ac830ad3fe01b846b (diff) | |
Merge pull request #1883 from skwizzy222
Diffstat (limited to 'tools/shader_diff.py')
| -rw-r--r-- | tools/shader_diff.py | 4 |
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 | ||
| 39 | import cpu_ref # noqa: E402 | 39 | import cpu_ref # noqa: E402 |
| 40 | import rdna2spirv # noqa: E402 | 40 | import rdna2spirv # noqa: E402 |
| 41 | from spirv_mini_interp import run_fragment # noqa: E402 | 41 | from spirv_mini_interp import UnsupportedConstruct, run_fragment # noqa: E402 |
| 42 | 42 | ||
| 43 | STUB_DXBC = b"DXBC" + bytes(24) + struct.pack("<I", 0) + bytes(4) | 43 | STUB_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]") |