diff options
Diffstat (limited to 'scripts/run_gpu_tests.py')
| -rw-r--r-- | scripts/run_gpu_tests.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index 7209c364c..bbd4a4fa2 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -38,7 +38,7 @@ from check import gpu_test_timeout, timed_out # per-program time limit (LEONID | |||
| 38 | from check import MESH_COMPUTE, mesh_env # LEONIDA_MESH_COMPUTE=1: mesh shaders as compute + a generated VS | 38 | from check import MESH_COMPUTE, mesh_env # LEONIDA_MESH_COMPUTE=1: mesh shaders as compute + a generated VS |
| 39 | from check import (WAVE32_LANE_DUMPS, WAVE32_LANE_ENV, bitmask_perm_narrow_skip, narrow_subgroup_skip, | 39 | from check import (WAVE32_LANE_DUMPS, WAVE32_LANE_ENV, bitmask_perm_narrow_skip, narrow_subgroup_skip, |
| 40 | vcmpx_forms_narrow_skip, wave32_lane_skip) # as in check.py | 40 | vcmpx_forms_narrow_skip, wave32_lane_skip) # as in check.py |
| 41 | from check import PIXEL_VERTEX, interp_f16_high_problem, ij_computed_problem # pixel producers and checks | 41 | from check import PIXEL_VERTEX, interp_f16_high_problem, ij_computed_problem, mandelbrot_problem # pixel producers and checks |
| 42 | from check import GET_LOD_TESTS, STORE_WORDS, get_lod_test, store_words_problem # TEST-184: image atomics and queries | 42 | from check import GET_LOD_TESTS, STORE_WORDS, get_lod_test, store_words_problem # TEST-184: image atomics and queries |
| 43 | from check import wide_pixel_skip # ps_w64x_readlane: judged only where the fragment stage was required 64-wide | 43 | from check import wide_pixel_skip # ps_w64x_readlane: judged only where the fragment stage was required 64-wide |
| 44 | 44 | ||
| @@ -1168,6 +1168,11 @@ def run_suite(a, work: str) -> int: | |||
| 1168 | with open(raw, "rb") as source: | 1168 | with open(raw, "rb") as source: |
| 1169 | problem = ij_computed_problem(list(struct.iter_unpack("<4I", source.read()))) | 1169 | problem = ij_computed_problem(list(struct.iter_unpack("<4I", source.read()))) |
| 1170 | ok, detail = not problem, problem or "computed I/J pair words and v/2 within 1e-6" | 1170 | ok, detail = not problem, problem or "computed I/J pair words and v/2 within 1e-6" |
| 1171 | elif name == "ps_mandelbrot": | ||
| 1172 | with open(raw, "rb") as source: | ||
| 1173 | px = list(struct.iter_unpack("<4I", source.read())) | ||
| 1174 | problem = mandelbrot_problem(px) | ||
| 1175 | ok, detail = not problem, problem or f"{len(px)}/{len(px)} iteration counts match the float32 model" | ||
| 1171 | else: | 1176 | else: |
| 1172 | ok, detail = False, "no checker defined" | 1177 | ok, detail = False, "no checker defined" |
| 1173 | results.append((name, ok, detail)) | 1178 | results.append((name, ok, detail)) |