diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/run_gpu_tests.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index b431b5488..f4c53555f 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -27,6 +27,7 @@ sys.path.insert(0, SHADER_DIR) | |||
| 27 | from build import CLIP_CASES, clip_container, shader_source | 27 | from build import CLIP_CASES, clip_container, shader_source |
| 28 | from check import Skip, clip_test, fmt_1010102_test, fmt_xy_xyz_test | 28 | from check import Skip, clip_test, fmt_1010102_test, fmt_xy_xyz_test |
| 29 | from compute_fixture import compute_header | 29 | from compute_fixture import compute_header |
| 30 | from check import SAMPLER_CASES, sampler_test # ps_ssharp: the S#/T# mip fields (vk_sampler_test) | ||
| 30 | from check import (CMPX_CLASS_WORDS, CVT_F32_SAT_CASES, GRADIENT_TESTS, TEST_PROGRAMS, TEXTURE_MIP_DEPENDENCIES, | 31 | from check import (CMPX_CLASS_WORDS, CVT_F32_SAT_CASES, GRADIENT_TESTS, TEST_PROGRAMS, TEXTURE_MIP_DEPENDENCIES, |
| 31 | TEXTURE_MIP_TEST, GATHER_LOD_TEST, MIP_TEST_PASSES, GATHER_WRAP, USER_SGPRS_ENV, USER_SGPRS_WORDS, Skip, mesh_v5_test, not_found_message, | 32 | TEXTURE_MIP_TEST, GATHER_LOD_TEST, MIP_TEST_PASSES, GATHER_WRAP, USER_SGPRS_ENV, USER_SGPRS_WORDS, Skip, mesh_v5_test, not_found_message, |
| 32 | pick_build_dir, start_failure, texture_gradient_a16_test, texture_mip_test) | 33 | pick_build_dir, start_failure, texture_gradient_a16_test, texture_mip_test) |
| @@ -535,7 +536,7 @@ def check_clip_half(raw_path: str, want_b: float, want_a: float) -> tuple[bool, | |||
| 535 | # Shaders a selected test draws with, built even when the filter leaves them out (#192). | 536 | # Shaders a selected test draws with, built even when the filter leaves them out (#192). |
| 536 | DRAWN_WITH = {GATHER_LOD_TEST: "vs_ids.asm", "ps_flat": "vs_ids.asm", "ps_texture_sample": "vs_ids.asm", "ps_cube_sample": "vs_ids.asm", | 537 | DRAWN_WITH = {GATHER_LOD_TEST: "vs_ids.asm", "ps_flat": "vs_ids.asm", "ps_texture_sample": "vs_ids.asm", "ps_cube_sample": "vs_ids.asm", |
| 537 | "ps_texture_sample_d16": "vs_ids.asm", "ps_sample_c_lz": "vs_ids.asm", "ps_sample_c_lz_a16": "vs_ids.asm", | 538 | "ps_texture_sample_d16": "vs_ids.asm", "ps_sample_c_lz": "vs_ids.asm", "ps_sample_c_lz_a16": "vs_ids.asm", |
| 538 | "ps_gather_wrap": "vs_ids.asm", | 539 | "ps_gather_wrap": "vs_ids.asm", "ps_ssharp": "vs_ids.asm", |
| 539 | **{name: "vs_ids.asm" for name in GRADIENT_TESTS}, "vs_clip": "ps_clip_color.asm", | 540 | **{name: "vs_ids.asm" for name in GRADIENT_TESTS}, "vs_clip": "ps_clip_color.asm", |
| 540 | "ps_interp_f16_high": "vs_f16_pack.asm", "ms_f16_pack": "ps_interp_f16_high.asm", | 541 | "ps_interp_f16_high": "vs_f16_pack.asm", "ms_f16_pack": "ps_interp_f16_high.asm", |
| 541 | "ps_interp_f32_mods": "vs_interp_consts.asm", "ps_interp_mov_mods": "vs_interp_consts.asm"} | 542 | "ps_interp_f32_mods": "vs_interp_consts.asm", "ps_interp_mov_mods": "vs_interp_consts.asm"} |
| @@ -983,6 +984,11 @@ def run_suite(a, work: str) -> int: | |||
| 983 | results.append((name, None, f"SKIP ({reason})")) | 984 | results.append((name, None, f"SKIP ({reason})")) |
| 984 | else: | 985 | else: |
| 985 | results.append((name, rc == 0, lines[-1] if lines else "")) | 986 | results.append((name, rc == 0, lines[-1] if lines else "")) |
| 987 | elif name == "ps_ssharp": | ||
| 988 | # The S#/T# mip fields through vulkan_sampler() and the view range (check.py's SAMPLER_CASES). | ||
| 989 | problem = sampler_test(a.build, spirv_dir) | ||
| 990 | results.append((name, None if isinstance(problem, Skip) else not problem, | ||
| 991 | problem or f"{len(SAMPLER_CASES)} S#/T# cases, 4096 pixels each exact")) | ||
| 986 | elif name in ("ps_texoff", "ps_texoff_implicit"): | 992 | elif name in ("ps_texoff", "ps_texoff_implicit"): |
| 987 | # Texel offsets: needs vk_texture_test's texture, sampler and descriptor table (vk_harness binds none), | 993 | # Texel offsets: needs vk_texture_test's texture, sampler and descriptor table (vk_harness binds none), |
| 988 | # and VK_KHR_maintenance8 for the non-constant Offset; the tool exits 77 without it. | 994 | # and VK_KHR_maintenance8 for the non-constant Offset; the tool exits 77 without it. |