diff options
| author | S1m0ne1997 <347981799+S1m0ne1997@users.noreply.github.com> | 2026-11-22 15:04:48 +0100 |
|---|---|---|
| committer | S1m0ne1997 <347981799+S1m0ne1997@users.noreply.github.com> | 2026-11-22 15:04:48 +0100 |
| commit | 1f32be4f4bc6ea19358fb8eaf9fc4f635f1cdcb8 (patch) | |
| tree | 18344a1c807120e1569a91dbdf50d9194ccf3d8f /scripts/run_gpu_tests.py | |
| parent | 4e99a4951d28e1ff01e87a39ecedfe0188450495 (diff) | |
| parent | 89b047cd8fab50675a43d76722a6a8a881f55dc2 (diff) | |
Merge remote-tracking branch 'origin/main' into shader-33-vs-inputs
# Conflicts:
# runtime/test/shaders/check.py
# scripts/run_gpu_tests.py
# tests/test_shader_checks.py
Diffstat (limited to 'scripts/run_gpu_tests.py')
| -rw-r--r-- | scripts/run_gpu_tests.py | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index ecf2ca092..c1abfa495 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -29,8 +29,9 @@ 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 SAMPLER_CASES, sampler_test # ps_ssharp: the S#/T# mip fields (vk_sampler_test) |
| 31 | 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, |
| 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 | TEXTURE_MIP_TEST, GATHER_LOD_TEST, MIP_TEST_PASSES, TEXTURE_CONSTANTS, USER_SGPRS_ENV, USER_SGPRS_WORDS, Skip, mesh_v5_test, not_found_message, |
| 33 | 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) |
| 34 | from check import SIGNED_MIP_TEST | ||
| 34 | from check import TEXOFF_ARGS, texoff_problem # ps_texoff's expected words and arguments live in check.py | 35 | from check import TEXOFF_ARGS, texoff_problem # ps_texoff's expected words and arguments live in check.py |
| 35 | from check import TEXOFF_FALLBACK, texoff_env # LEONIDA_TEXOFF_FALLBACK=1: texel offsets without maintenance8 | 36 | from check import TEXOFF_FALLBACK, texoff_env # LEONIDA_TEXOFF_FALLBACK=1: texel offsets without maintenance8 |
| 36 | from check import gpu_test_timeout, timed_out # per-program time limit (LEONIDA_GPU_TEST_TIMEOUT) | 37 | from check import gpu_test_timeout, timed_out # per-program time limit (LEONIDA_GPU_TEST_TIMEOUT) |
| @@ -546,10 +547,11 @@ OTHER_HARNESS = {"ps_m15": "d3d12_translated_draw_test", "vs_m15": "d3d12_transl | |||
| 546 | # Shaders a selected test draws with, built even when the filter leaves them out (#192). | 547 | # Shaders a selected test draws with, built even when the filter leaves them out (#192). |
| 547 | 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", | 548 | 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", |
| 548 | "ps_texture_sample_d16": "vs_ids.asm", "ps_sample_c_lz": "vs_ids.asm", "ps_sample_c_lz_a16": "vs_ids.asm", | 549 | "ps_texture_sample_d16": "vs_ids.asm", "ps_sample_c_lz": "vs_ids.asm", "ps_sample_c_lz_a16": "vs_ids.asm", |
| 549 | "ps_gather_wrap": "vs_ids.asm", "ps_ssharp": "vs_ids.asm", | 550 | **{name: "vs_ids.asm" for name in TEXTURE_CONSTANTS}, "ps_ssharp": "vs_ids.asm", |
| 550 | **{name: "vs_ids.asm" for name in GRADIENT_TESTS}, "vs_clip": "ps_clip_color.asm", | 551 | **{name: "vs_ids.asm" for name in GRADIENT_TESTS}, "vs_clip": "ps_clip_color.asm", |
| 551 | "ps_interp_f16_high": "vs_f16_pack.asm", "ms_f16_pack": "ps_interp_f16_high.asm", | 552 | "ps_interp_f16_high": "vs_f16_pack.asm", "ms_f16_pack": "ps_interp_f16_high.asm", |
| 552 | "ps_interp_f32_mods": "vs_interp_consts.asm", "ps_interp_mov_mods": "vs_interp_consts.asm", | 553 | "ps_interp_f32_mods": "vs_interp_consts.asm", "ps_interp_mov_mods": "vs_interp_consts.asm", |
| 554 | SIGNED_MIP_TEST: "vs_ids.asm", | ||
| 553 | "vs_base_ids": "ps_flat.asm"} | 555 | "vs_base_ids": "ps_flat.asm"} |
| 554 | DRAWN_WITH.update({name: "vs_ids.asm" for name in GET_LOD_TESTS}) | 556 | DRAWN_WITH.update({name: "vs_ids.asm" for name in GET_LOD_TESTS}) |
| 555 | 557 | ||
| @@ -868,7 +870,7 @@ def run_suite(a, work: str) -> int: | |||
| 868 | "cs_w64x_lds_war", "cs_w64x_partial", "cs_w64x_sbarrier", "cs_w64x_load_ballot_load", | 870 | "cs_w64x_lds_war", "cs_w64x_partial", "cs_w64x_sbarrier", "cs_w64x_load_ballot_load", |
| 869 | "cs_w64x_mask_reuse", "cs_w64x_mask_reuse2", "cs_w64x_chain_barrier", "cs_barrier_divergent", | 871 | "cs_w64x_mask_reuse", "cs_w64x_mask_reuse2", "cs_w64x_chain_barrier", "cs_barrier_divergent", |
| 870 | "cs_bpermute32", "cs_w64x_partial_scmp", "cs_w32_partial_scmp", "cs_barrier_early_end", | 872 | "cs_bpermute32", "cs_w64x_partial_scmp", "cs_w32_partial_scmp", "cs_barrier_early_end", |
| 871 | "cs_barrier_loop", "cs_w64x_andn2_exec"): | 873 | "cs_barrier_loop", "cs_w64x_andn2_exec", "cs_w64x_saveexec_b64"): |
| 872 | cs_dump_wants = { | 874 | cs_dump_wants = { |
| 873 | "cs_store": [0x400080FF, 0xE00003FF, 0x3C004000, 0xEEEEEEEE, 0x40003C00, 0xBC003800, 0x40FF8000, 0x3FF00000], | 875 | "cs_store": [0x400080FF, 0xE00003FF, 0x3C004000, 0xEEEEEEEE, 0x40003C00, 0xBC003800, 0x40FF8000, 0x3FF00000], |
| 874 | # base + soffset + imm (cs_smem_soffset_imm.asm); out[4..7] are seeds the shader leaves alone | 876 | # base + soffset + imm (cs_smem_soffset_imm.asm); out[4..7] are seeds the shader leaves alone |
| @@ -933,6 +935,7 @@ def run_suite(a, work: str) -> int: | |||
| 933 | "cs_w64x_sbarrier": [605, 605, 686, 686, 3032, 3013, 3032, 3031], | 935 | "cs_w64x_sbarrier": [605, 605, 686, 686, 3032, 3013, 3032, 3031], |
| 934 | "cs_w64x_load_ballot_load": [43, 74, 75, 42, 42, 18, 41, 32], | 936 | "cs_w64x_load_ballot_load": [43, 74, 75, 42, 42, 18, 41, 32], |
| 935 | "cs_w64x_andn2_exec": [1, 16, 32, 4144, 2052, 3, 8, 1544], # s_andn2_saveexec/wrexec_b64 (.asm header) | 937 | "cs_w64x_andn2_exec": [1, 16, 32, 4144, 2052, 3, 8, 1544], # s_andn2_saveexec/wrexec_b64 (.asm header) |
| 938 | "cs_w64x_saveexec_b64": [6160, 12304, 5120, 2088, 6168, 8192, 7176, 1837171], # .asm header | ||
| 936 | "cs_bpermute32": [0, 50, 162, 99, 36, 218, 183, 15], # wave32: needs 32 lanes | 939 | "cs_bpermute32": [0, 50, 162, 99, 36, 218, 183, 15], # wave32: needs 32 lanes |
| 937 | # SHADER-91: s_barrier sites in different wave-uniform branches meet (cs_barrier_divergent.asm) | 940 | # SHADER-91: s_barrier sites in different wave-uniform branches meet (cs_barrier_divergent.asm) |
| 938 | "cs_barrier_divergent": [127, 126, 125, 124, 123, 122, 121, 120], | 941 | "cs_barrier_divergent": [127, 126, 125, 124, 123, 122, 121, 120], |
| @@ -1010,8 +1013,8 @@ def run_suite(a, work: str) -> int: | |||
| 1010 | results.append((name, ok, detail)) | 1013 | results.append((name, ok, detail)) |
| 1011 | else: | 1014 | else: |
| 1012 | results.append((name, rc == 0 and "PASSED" in msg, msg.splitlines()[-1] if msg else "")) | 1015 | results.append((name, rc == 0 and "PASSED" in msg, msg.splitlines()[-1] if msg else "")) |
| 1013 | elif name == "ps_gather_wrap": | 1016 | elif name in TEXTURE_CONSTANTS: |
| 1014 | # SHADER-36: image_gather4_l_o under wrap/mirror/clamp/mirror-once S#s; every pixel holds GATHER_WRAP. | 1017 | expected = TEXTURE_CONSTANTS[name] |
| 1015 | tool = os.path.join(a.build, "vk_texture_test" + ext) | 1018 | tool = os.path.join(a.build, "vk_texture_test" + ext) |
| 1016 | raw = os.path.join(raw_dir, f"{name}.raw") | 1019 | raw = os.path.join(raw_dir, f"{name}.raw") |
| 1017 | try: | 1020 | try: |
| @@ -1023,12 +1026,12 @@ def run_suite(a, work: str) -> int: | |||
| 1023 | bad = 4096 | 1026 | bad = 4096 |
| 1024 | if rc == 0 and os.path.isfile(raw): | 1027 | if rc == 0 and os.path.isfile(raw): |
| 1025 | data = Path(raw).read_bytes() | 1028 | data = Path(raw).read_bytes() |
| 1026 | bad = 4096 if len(data) != 64 * 64 * 16 else sum(q != GATHER_WRAP for q in struct.iter_unpack("<4f", data)) | 1029 | bad = 4096 if len(data) != 64 * 64 * 16 else sum(q != expected for q in struct.iter_unpack("<4f", data)) |
| 1027 | if rc == UNSUPPORTED: | 1030 | if rc == UNSUPPORTED: |
| 1028 | results.append((name, None, unsupported_skip(msg))) | 1031 | results.append((name, None, unsupported_skip(msg))) |
| 1029 | else: | 1032 | else: |
| 1030 | results.append((name, rc == 0 and bad == 0, "4096/4096 pixels exact" if bad == 0 else | 1033 | results.append((name, rc == 0 and bad == 0, "4096/4096 pixels exact" if bad == 0 else |
| 1031 | f"{bad} pixels differ from {GATHER_WRAP}: {msg.splitlines()[-1] if msg else ''}")) | 1034 | f"{bad} pixels differ from {expected}: {msg.splitlines()[-1] if msg else ''}")) |
| 1032 | elif name == "ps_tex": | 1035 | elif name == "ps_tex": |
| 1033 | # A texture through the descriptor hash table and the bindless set. vk_bindless_test compares the | 1036 | # A texture through the descriptor hash table and the bindless set. vk_bindless_test compares the |
| 1034 | # pixels itself, and exits 77 where the device lacks a feature the set or the shader needs. | 1037 | # pixels itself, and exits 77 where the device lacks a feature the set or the shader needs. |