upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/scripts/run_gpu_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/run_gpu_tests.py')
-rw-r--r--scripts/run_gpu_tests.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py
index 985d04c92..c2bd8bae0 100644
--- a/scripts/run_gpu_tests.py
+++ b/scripts/run_gpu_tests.py
@@ -47,6 +47,7 @@ from check import barycentric_problem
47from check import GET_LOD_TESTS, STORE_WORDS, get_lod_test, store_words_problem # TEST-184: image atomics and queries 47from check import GET_LOD_TESTS, STORE_WORDS, get_lod_test, store_words_problem # TEST-184: image atomics and queries
48from check import wide_pixel_skip # ps_w64x_readlane: judged only where the fragment stage was required 64-wide 48from check import wide_pixel_skip # ps_w64x_readlane: judged only where the fragment stage was required 64-wide
49from check import FMA_FUSED_ENV, judge_fma_fused # cs_fma_fused: strict under LEONIDA_FMA=khr, fused/split under glsl 49from check import FMA_FUSED_ENV, judge_fma_fused # cs_fma_fused: strict under LEONIDA_FMA=khr, fused/split under glsl
50from check import bary_persp_problem # ps_persp_bary's perspective-correct reference
50 51
51 52
52def make_dxbc(chunks: list[tuple[bytes, bytes]]) -> bytes: 53def make_dxbc(chunks: list[tuple[bytes, bytes]]) -> bytes:
@@ -575,7 +576,7 @@ OTHER_HARNESS = {"ps_m15": "d3d12_translated_draw_test", "vs_m15": "d3d12_transl
575 576
576 577
577# Shaders a selected test draws with, built even when the filter leaves them out (#192). 578# Shaders a selected test draws with, built even when the filter leaves them out (#192).
578DRAWN_WITH = {GATHER_LOD_TEST: "vs_ids.asm", "ps_flat": "vs_ids.asm", "ps_texture_sample": "vs_ids.asm", "ps_cube_sample": "vs_ids.asm", 579DRAWN_WITH = {GATHER_LOD_TEST: "vs_ids.asm", "ps_flat": "vs_ids.asm", "ps_persp_bary": "vs_persp.asm", "ps_texture_sample": "vs_ids.asm", "ps_cube_sample": "vs_ids.asm",
579 "ps_texture_sample_d16": "vs_ids.asm", "ps_sample_c_lz": "vs_ids.asm", "ps_sample_c_lz_a16": "vs_ids.asm", 580 "ps_texture_sample_d16": "vs_ids.asm", "ps_sample_c_lz": "vs_ids.asm", "ps_sample_c_lz_a16": "vs_ids.asm",
580 "ps_sample_c": "vs_ids.asm", "ps_sample_c_b": "vs_ids.asm", 581 "ps_sample_c": "vs_ids.asm", "ps_sample_c_b": "vs_ids.asm",
581 **{name: "vs_ids.asm" for name in TEXTURE_CONSTANTS}, "ps_ssharp": "vs_ids.asm", "ps_imgatomic": "vs_ids.asm", 582 **{name: "vs_ids.asm" for name in TEXTURE_CONSTANTS}, "ps_ssharp": "vs_ids.asm", "ps_imgatomic": "vs_ids.asm",
@@ -1296,6 +1297,9 @@ def run_suite(a, work: str) -> int:
1296 ok, detail = check_pixel_const(raw, const_wants[name]) 1297 ok, detail = check_pixel_const(raw, const_wants[name])
1297 elif name == "ps_bary": 1298 elif name == "ps_bary":
1298 ok, detail = check_bary(raw) 1299 ok, detail = check_bary(raw)
1300 elif name == "ps_persp_bary":
1301 problem = bary_persp_problem(read_raw_rgba32f(raw))
1302 ok, detail = not problem, problem or "perspective-correct on every covered pixel"
1299 elif name == "ps_bitmask_perm": 1303 elif name == "ps_bitmask_perm":
1300 m = re.search(r"subgroup \d+\.\.(\d+)", msg) 1304 m = re.search(r"subgroup \d+\.\.(\d+)", msg)
1301 if m and int(m.group(1)) < 32: 1305 if m and int(m.group(1)) < 32: