diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 05:08:05 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 05:08:05 -0500 |
| commit | f85582e23d4ab9e19acbf694358f137d6b8531b1 (patch) | |
| tree | 89c407a63842e91fd95c128ca5a3c5c2cf49517b /scripts/run_gpu_tests.py | |
| parent | 64b89ac4a5c11e7e78d1c0795444484d86102e36 (diff) | |
| parent | 5f9ed5f458f223f8f225f9488b45417f4123080f (diff) | |
Merge pull request #1318 from Freem
Diffstat (limited to 'scripts/run_gpu_tests.py')
| -rw-r--r-- | scripts/run_gpu_tests.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index 5ddd8b21d..5f4354ef3 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -34,7 +34,8 @@ from check import TEXOFF_ARGS, texoff_problem # ps_texoff's expected words and | |||
| 34 | from check import TEXOFF_FALLBACK, texoff_env # LEONIDA_TEXOFF_FALLBACK=1: texel offsets without maintenance8 | 34 | from check import TEXOFF_FALLBACK, texoff_env # LEONIDA_TEXOFF_FALLBACK=1: texel offsets without maintenance8 |
| 35 | from check import gpu_test_timeout, timed_out # per-program time limit (LEONIDA_GPU_TEST_TIMEOUT) | 35 | from check import gpu_test_timeout, timed_out # per-program time limit (LEONIDA_GPU_TEST_TIMEOUT) |
| 36 | from check import MESH_COMPUTE, mesh_env # LEONIDA_MESH_COMPUTE=1: mesh shaders as compute + a generated VS | 36 | from check import MESH_COMPUTE, mesh_env # LEONIDA_MESH_COMPUTE=1: mesh shaders as compute + a generated VS |
| 37 | from check import WAVE32_LANE_DUMPS, WAVE32_LANE_ENV, narrow_subgroup_skip, wave32_lane_skip # as in check.py | 37 | from check import (WAVE32_LANE_DUMPS, WAVE32_LANE_ENV, bitmask_perm_narrow_skip, narrow_subgroup_skip, |
| 38 | wave32_lane_skip) # as in check.py | ||
| 38 | from check import PIXEL_VERTEX, interp_f16_high_problem # ps_interp_f16_high's producers and check | 39 | from check import PIXEL_VERTEX, interp_f16_high_problem # ps_interp_f16_high's producers and check |
| 39 | 40 | ||
| 40 | 41 | ||
| @@ -326,8 +327,10 @@ def check_bary(raw_path: str) -> tuple[bool, str]: | |||
| 326 | return (bad == 0), (first if bad else "4096/4096 pixels exact") | 327 | return (bad == 0), (first if bad else "4096/4096 pixels exact") |
| 327 | 328 | ||
| 328 | 329 | ||
| 329 | def check_bitmask_perm(raw_path: str) -> tuple[bool, str]: | 330 | def check_bitmask_perm(raw_path: str, msg: str = "") -> tuple[bool | None, str]: |
| 330 | px = read_raw_u32(raw_path) | 331 | px = read_raw_u32(raw_path) |
| 332 | if skip := bitmask_perm_narrow_skip(msg, px): | ||
| 333 | return None, str(skip) | ||
| 331 | bad = 0 | 334 | bad = 0 |
| 332 | first = "" | 335 | first = "" |
| 333 | judged = 0 | 336 | judged = 0 |
| @@ -1002,7 +1005,7 @@ def run_suite(a, work: str) -> int: | |||
| 1002 | if m and int(m.group(1)) < 32: | 1005 | if m and int(m.group(1)) < 32: |
| 1003 | ok, detail = None, f"SKIP (subgroup {m.group(1)} is narrower than 32 lanes)" | 1006 | ok, detail = None, f"SKIP (subgroup {m.group(1)} is narrower than 32 lanes)" |
| 1004 | else: | 1007 | else: |
| 1005 | ok, detail = check_bitmask_perm(raw) | 1008 | ok, detail = check_bitmask_perm(raw, msg) |
| 1006 | elif name in ("ps_uniform_branch", "ps_scc_mask32"): # same expected pattern (see the .asm headers) | 1009 | elif name in ("ps_uniform_branch", "ps_scc_mask32"): # same expected pattern (see the .asm headers) |
| 1007 | ok, detail = check_uniform_branch(raw) | 1010 | ok, detail = check_uniform_branch(raw) |
| 1008 | elif name == "ps_wqm": | 1011 | elif name == "ps_wqm": |