diff options
Diffstat (limited to 'scripts/run_gpu_tests.py')
| -rw-r--r-- | scripts/run_gpu_tests.py | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index 3a23250fc..13cfbbad9 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -40,6 +40,7 @@ from check import MESH_COMPUTE, mesh_env # LEONIDA_MESH_COMPUTE=1: mesh shader | |||
| 40 | from check import (WAVE32_LANE_DUMPS, WAVE32_LANE_ENV, bitmask_perm_narrow_skip, narrow_subgroup_skip, | 40 | from check import (WAVE32_LANE_DUMPS, WAVE32_LANE_ENV, bitmask_perm_narrow_skip, narrow_subgroup_skip, |
| 41 | vcmpx_forms_narrow_skip, wave32_lane_skip) # as in check.py | 41 | vcmpx_forms_narrow_skip, wave32_lane_skip) # as in check.py |
| 42 | from check import PIXEL_VERTEX, interp_f16_high_problem, ij_computed_problem, mandelbrot_problem # pixel producers and checks | 42 | from check import PIXEL_VERTEX, interp_f16_high_problem, ij_computed_problem, mandelbrot_problem # pixel producers and checks |
| 43 | from check import barycentric_problem | ||
| 43 | from check import GET_LOD_TESTS, STORE_WORDS, get_lod_test, store_words_problem # TEST-184: image atomics and queries | 44 | from check import GET_LOD_TESTS, STORE_WORDS, get_lod_test, store_words_problem # TEST-184: image atomics and queries |
| 44 | from check import wide_pixel_skip # ps_w64x_readlane: judged only where the fragment stage was required 64-wide | 45 | from check import wide_pixel_skip # ps_w64x_readlane: judged only where the fragment stage was required 64-wide |
| 45 | 46 | ||
| @@ -349,17 +350,8 @@ def frame_problem(px) -> str: | |||
| 349 | 350 | ||
| 350 | 351 | ||
| 351 | def check_bary(raw_path: str) -> tuple[bool, str]: | 352 | def check_bary(raw_path: str) -> tuple[bool, str]: |
| 352 | px = read_raw_rgba32f(raw_path) | 353 | problem = barycentric_problem(read_raw_rgba32f(raw_path), 1e-4) |
| 353 | if problem := frame_problem(px): | 354 | return not problem, problem or "4096/4096 pixels match" |
| 354 | return False, problem | ||
| 355 | bad = 0 | ||
| 356 | first = "" | ||
| 357 | for i, (ax, ay, bi, bj) in enumerate(px): | ||
| 358 | if abs(ax * 0.5 - bi) > 1e-4 or abs(ay * 0.5 - bj) > 1e-4: | ||
| 359 | if not bad: | ||
| 360 | first = f"at ({i%64},{i//64}): attr/2=({ax*0.5:.5f},{ay*0.5:.5f}) raw=({bi:.5f},{bj:.5f})" | ||
| 361 | bad += 1 | ||
| 362 | return (bad == 0), (first if bad else "4096/4096 pixels exact") | ||
| 363 | 355 | ||
| 364 | 356 | ||
| 365 | def check_bitmask_perm(raw_path: str, msg: str = "") -> tuple[bool | None, str]: | 357 | def check_bitmask_perm(raw_path: str, msg: str = "") -> tuple[bool | None, str]: |