diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 15:16:18 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 15:16:18 -0500 |
| commit | b9ed33b241bec441e0ac63dffb5d05dda7d55605 (patch) | |
| tree | c46be05ac180641c1477fd1477c8671fa1acf0dd /scripts/run_gpu_tests.py | |
| parent | 2b53a241b14454f663cc884314b74b0e77f6321f (diff) | |
| parent | 61a9adc2a89ce247f5a598a30fe089caba55487e (diff) | |
Merge pull request #3263 from Dominik
Diffstat (limited to 'scripts/run_gpu_tests.py')
| -rw-r--r-- | scripts/run_gpu_tests.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index 9f136d1e1..8f411c80a 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -33,6 +33,7 @@ from check import (CMPX_CLASS_WORDS, CVT_F32_SAT_CASES, CVT_PK_U8_WORDS, GRADIEN | |||
| 33 | 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 | TEXTURE_MIP_TEST, GATHER_LOD_TEST, MIP_TEST_PASSES, TEXTURE_CONSTANTS, USER_SGPRS_ENV, USER_SGPRS_WORDS, Skip, mesh_v5_test, not_found_message, |
| 34 | pick_build_dir, start_failure, texture_gradient_a16_test, texture_mip_test) | 34 | pick_build_dir, start_failure, texture_gradient_a16_test, texture_mip_test) |
| 35 | from check import SIGNED_MIP_TEST | 35 | from check import SIGNED_MIP_TEST |
| 36 | from check import HEAP_INIT_EXPECTED, heap_init_env # cs_heap_init: vk_compute_test's VKC_HEAP_INIT | ||
| 36 | from check import judged_words, words_match # dump words not judged on some devices (cs_signed_zero_nan) | 37 | from check import judged_words, words_match # dump words not judged on some devices (cs_signed_zero_nan) |
| 37 | from check import TEXOFF_ARGS, texoff_problem # ps_texoff's expected words and arguments live in check.py | 38 | from check import TEXOFF_ARGS, texoff_problem # ps_texoff's expected words and arguments live in check.py |
| 38 | from check import TEXOFF_FALLBACK, texoff_env # LEONIDA_TEXOFF_FALLBACK=1: texel offsets without maintenance8 | 39 | from check import TEXOFF_FALLBACK, texoff_env # LEONIDA_TEXOFF_FALLBACK=1: texel offsets without maintenance8 |
| @@ -892,6 +893,13 @@ def run_suite(a, work: str) -> int: | |||
| 892 | want = [0x5EED1FFC, 0x8BAD1800, 0x5EED1FF0, 0x5EED1FF4, 0x9E, 0xFFFF8BAD, 0x57023FFC, 0xEEEEEEEE] | 893 | want = [0x5EED1FFC, 0x8BAD1800, 0x5EED1FF0, 0x5EED1FF4, 0x9E, 0xFFFF8BAD, 0x57023FFC, 0xEEEEEEEE] |
| 893 | ok, detail = judge_cs_dump(rc, msg, want, wave64=False, partial=False, emulated=False, hexwords=True) | 894 | ok, detail = judge_cs_dump(rc, msg, want, wave64=False, partial=False, emulated=False, hexwords=True) |
| 894 | results.append((name, ok, detail)) | 895 | results.append((name, ok, detail)) |
| 896 | elif name == "cs_heap_init": | ||
| 897 | # vk_compute_test copies VKC_HEAP_INIT's file into the heap; the shader copies its words at 0x100 to 0. | ||
| 898 | rc, msg = run_cmd([vk_compute, spv, "1", "dump"], env=dict(cs_env or os.environ, **heap_init_env())) | ||
| 899 | words = dump_words(msg) | ||
| 900 | vals = words[:len(HEAP_INIT_EXPECTED)] if words else [] | ||
| 901 | results.append((name, rc == 0 and vals == HEAP_INIT_EXPECTED, | ||
| 902 | " ".join(hex(x) for x in vals) if vals else msg)) | ||
| 895 | elif name == "cs_user_sgprs": | 903 | elif name == "cs_user_sgprs": |
| 896 | # vk_compute_test seeds s4..s7 from VKC_SGPRS; the shader stores them back. | 904 | # vk_compute_test seeds s4..s7 from VKC_SGPRS; the shader stores them back. |
| 897 | rc, msg = run_cmd([vk_compute, spv, "1", "dump"], env=dict(cs_env or os.environ, **USER_SGPRS_ENV)) | 905 | rc, msg = run_cmd([vk_compute, spv, "1", "dump"], env=dict(cs_env or os.environ, **USER_SGPRS_ENV)) |