diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 15:13:32 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 15:13:32 -0500 |
| commit | ee44e79112fafaf3d43dea3c305093f8a96fcc4f (patch) | |
| tree | bff6d204b800fbb3044996af86d9a2ed9fd798db /scripts/run_gpu_tests.py | |
| parent | 65243b281130a884e42786361b6ab398e1ab3daf (diff) | |
| parent | 161fdf545a44ced100d37c44d81f2be6753e9bb1 (diff) | |
Merge pull request #2953 from Vonsek
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 d6804048c..63b5da595 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -41,6 +41,7 @@ from check import MESH_COMPUTE, mesh_env # LEONIDA_MESH_COMPUTE=1: mesh shader | |||
| 41 | from check import (WAVE32_LANE_DUMPS, WAVE32_LANE_ENV, bitmask_perm_narrow_skip, narrow_subgroup_skip, | 41 | from check import (WAVE32_LANE_DUMPS, WAVE32_LANE_ENV, bitmask_perm_narrow_skip, narrow_subgroup_skip, |
| 42 | unpinned_subgroup_skip, vcmpx_forms_narrow_skip, wave32_lane_skip) # as in check.py | 42 | unpinned_subgroup_skip, vcmpx_forms_narrow_skip, wave32_lane_skip) # as in check.py |
| 43 | from check import PIXEL_VERTEX, interp_f16_high_problem, ij_computed_problem, mandelbrot_problem # pixel producers and checks | 43 | from check import PIXEL_VERTEX, interp_f16_high_problem, ij_computed_problem, mandelbrot_problem # pixel producers and checks |
| 44 | from check import barycentric_problem | ||
| 44 | from check import GET_LOD_TESTS, STORE_WORDS, get_lod_test, store_words_problem # TEST-184: image atomics and queries | 45 | from check import GET_LOD_TESTS, STORE_WORDS, get_lod_test, store_words_problem # TEST-184: image atomics and queries |
| 45 | from check import wide_pixel_skip # ps_w64x_readlane: judged only where the fragment stage was required 64-wide | 46 | from check import wide_pixel_skip # ps_w64x_readlane: judged only where the fragment stage was required 64-wide |
| 46 | from check import FMA_FUSED_ENV, judge_fma_fused # cs_fma_fused: strict under LEONIDA_FMA=khr, fused/split under glsl | 47 | from check import FMA_FUSED_ENV, judge_fma_fused # cs_fma_fused: strict under LEONIDA_FMA=khr, fused/split under glsl |
| @@ -372,17 +373,8 @@ def frame_problem(px) -> str: | |||
| 372 | 373 | ||
| 373 | 374 | ||
| 374 | def check_bary(raw_path: str) -> tuple[bool, str]: | 375 | def check_bary(raw_path: str) -> tuple[bool, str]: |
| 375 | px = read_raw_rgba32f(raw_path) | 376 | problem = barycentric_problem(read_raw_rgba32f(raw_path), 1e-4) |
| 376 | if problem := frame_problem(px): | 377 | return not problem, problem or "4096/4096 pixels match" |
| 377 | return False, problem | ||
| 378 | bad = 0 | ||
| 379 | first = "" | ||
| 380 | for i, (ax, ay, bi, bj) in enumerate(px): | ||
| 381 | if abs(ax * 0.5 - bi) > 1e-4 or abs(ay * 0.5 - bj) > 1e-4: | ||
| 382 | if not bad: | ||
| 383 | first = f"at ({i%64},{i//64}): attr/2=({ax*0.5:.5f},{ay*0.5:.5f}) raw=({bi:.5f},{bj:.5f})" | ||
| 384 | bad += 1 | ||
| 385 | return (bad == 0), (first if bad else "4096/4096 pixels exact") | ||
| 386 | 378 | ||
| 387 | 379 | ||
| 388 | def check_bitmask_perm(raw_path: str, msg: str = "") -> tuple[bool | None, str]: | 380 | def check_bitmask_perm(raw_path: str, msg: str = "") -> tuple[bool | None, str]: |