diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 09:14:47 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 09:14:47 -0500 |
| commit | f0cddb90f89efa3731b4da7d7c8f7fcb31525884 (patch) | |
| tree | c45beef53806671454d4dd6361156b64bc2dde14 /scripts | |
| parent | a06c341728e26df1281f0a5287d9bba01d9a874b (diff) | |
| parent | 52c3a88947366f1f3e513b7bdd0282ba7ae5ef5b (diff) | |
Merge pull request #1578 from Dominik
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/run_gpu_tests.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index 7209c364c..a88c37121 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -548,7 +548,7 @@ OTHER_HARNESS = {"ps_m15": "d3d12_translated_draw_test", "vs_m15": "d3d12_transl | |||
| 548 | # Shaders a selected test draws with, built even when the filter leaves them out (#192). | 548 | # Shaders a selected test draws with, built even when the filter leaves them out (#192). |
| 549 | 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", | 549 | 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", |
| 550 | "ps_texture_sample_d16": "vs_ids.asm", "ps_sample_c_lz": "vs_ids.asm", "ps_sample_c_lz_a16": "vs_ids.asm", | 550 | "ps_texture_sample_d16": "vs_ids.asm", "ps_sample_c_lz": "vs_ids.asm", "ps_sample_c_lz_a16": "vs_ids.asm", |
| 551 | **{name: "vs_ids.asm" for name in TEXTURE_CONSTANTS}, "ps_ssharp": "vs_ids.asm", | 551 | **{name: "vs_ids.asm" for name in TEXTURE_CONSTANTS}, "ps_ssharp": "vs_ids.asm", "ps_imgatomic": "vs_ids.asm", |
| 552 | **{name: "vs_ids.asm" for name in GRADIENT_TESTS}, "vs_clip": "ps_clip_color.asm", | 552 | **{name: "vs_ids.asm" for name in GRADIENT_TESTS}, "vs_clip": "ps_clip_color.asm", |
| 553 | "ps_interp_f16_high": "vs_f16_pack.asm", "ms_f16_pack": "ps_interp_f16_high.asm", | 553 | "ps_interp_f16_high": "vs_f16_pack.asm", "ms_f16_pack": "ps_interp_f16_high.asm", |
| 554 | "ps_interp_f32_mods": "vs_interp_consts.asm", "ps_interp_mov_mods": "vs_interp_consts.asm", | 554 | "ps_interp_f32_mods": "vs_interp_consts.asm", "ps_interp_mov_mods": "vs_interp_consts.asm", |
| @@ -1042,10 +1042,12 @@ def run_suite(a, work: str) -> int: | |||
| 1042 | else: | 1042 | else: |
| 1043 | results.append((name, rc == 0 and bad == 0, "4096/4096 pixels exact" if bad == 0 else | 1043 | results.append((name, rc == 0 and bad == 0, "4096/4096 pixels exact" if bad == 0 else |
| 1044 | f"{bad} pixels differ from {expected}: {msg.splitlines()[-1] if msg else ''}")) | 1044 | f"{bad} pixels differ from {expected}: {msg.splitlines()[-1] if msg else ''}")) |
| 1045 | elif name == "ps_tex": | 1045 | elif name in ("ps_tex", "ps_imgatomic"): |
| 1046 | # A texture through the descriptor hash table and the bindless set. vk_bindless_test compares the | 1046 | # A texture through the descriptor hash table and the bindless set (ps_tex), or image atomics in a pixel |
| 1047 | # pixels itself, and exits 77 where the device lacks a feature the set or the shader needs. | 1047 | # shader through the set's r32ui storage arrays (ps_imgatomic, drawn with vs_ids). vk_bindless_test |
| 1048 | rc, msg = run_cmd([vk_bindless, vs_tri, spv]) | 1048 | # compares the result itself, and exits 77 where the device lacks a feature the set or shader needs. |
| 1049 | vs = os.path.join(spirv_dir, "vs_ids.spv") if name == "ps_imgatomic" else vs_tri | ||
| 1050 | rc, msg = run_cmd([vk_bindless, vs, spv]) | ||
| 1049 | lines = msg.splitlines() | 1051 | lines = msg.splitlines() |
| 1050 | if rc == 77: | 1052 | if rc == 77: |
| 1051 | reason = next((ln for ln in lines if ln.startswith("unsupported:")), "unsupported device") | 1053 | reason = next((ln for ln in lines if ln.startswith("unsupported:")), "unsupported device") |