diff options
| author | WHOISJARDAS <144918410+WHOISJARDAS@users.noreply.github.com> | 2026-11-22 15:38:11 +0000 |
|---|---|---|
| committer | WHOISJARDAS <144918410+WHOISJARDAS@users.noreply.github.com> | 2026-11-22 15:38:11 +0000 |
| commit | a0e8229a55196e9143fe6dca7a8b9975c7357745 (patch) | |
| tree | 37a6477c923a5037a97978d1b86fbb7328d20d53 /scripts/run_gpu_tests.py | |
| parent | e45c973ff0bbe44d5e50f7e5f7c78eda8457a694 (diff) | |
Tests: don't judge cs_signed_zero_nan's 0 * inf check on llvmpipe
Mesa llvmpipe returns 0 for out[5], the NaN check of 0 * inf with an
inline-constant 0, with or without SignedZeroInfNanPreserve, while its
other NaN checks give 1 (a run on #664, Mesa with LLVM 21.1.8). The CI
runs scripts/run_gpu_tests.py on llvmpipe, so the test would fail there.
APPLE_UNJUDGED_WORDS becomes UNJUDGED_WORDS, keyed by the first word of
the device name on vk_compute_test's "device:" line. Apple keeps words
0, 2 and 3, and llvmpipe gets word 5. Every other device still judges
all eight words.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'scripts/run_gpu_tests.py')
| -rw-r--r-- | scripts/run_gpu_tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index caeacfc6c..6e2e43bb6 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -32,7 +32,7 @@ from check import (CMPX_CLASS_WORDS, CVT_F32_SAT_CASES, GRADIENT_TESTS, TEST_PRO | |||
| 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, | 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 SIGNED_MIP_TEST |
| 35 | from check import judged_words, words_match # dump words not judged on some devices (cs_signed_zero_nan on Apple) | 35 | from check import judged_words, words_match # dump words not judged on some devices (cs_signed_zero_nan) |
| 36 | from check import TEXOFF_ARGS, texoff_problem # ps_texoff's expected words and arguments live in check.py | 36 | from check import TEXOFF_ARGS, texoff_problem # ps_texoff's expected words and arguments live in check.py |
| 37 | from check import TEXOFF_FALLBACK, texoff_env # LEONIDA_TEXOFF_FALLBACK=1: texel offsets without maintenance8 | 37 | from check import TEXOFF_FALLBACK, texoff_env # LEONIDA_TEXOFF_FALLBACK=1: texel offsets without maintenance8 |
| 38 | from check import gpu_test_timeout, timed_out # per-program time limit (LEONIDA_GPU_TEST_TIMEOUT) | 38 | from check import gpu_test_timeout, timed_out # per-program time limit (LEONIDA_GPU_TEST_TIMEOUT) |
| @@ -994,13 +994,13 @@ def run_suite(a, work: str) -> int: | |||
| 994 | if skip: # e.g. Mesa llvmpipe's 8-wide subgroups: these 32-lane masks can't come out right | 994 | if skip: # e.g. Mesa llvmpipe's 8-wide subgroups: these 32-lane masks can't come out right |
| 995 | ok, detail = None, str(skip) | 995 | ok, detail = None, str(skip) |
| 996 | else: | 996 | else: |
| 997 | want = judged_words(name, msg, want) # cs_signed_zero_nan on Apple: -0 products unjudged (#1203) | 997 | want = judged_words(name, msg, want) # cs_signed_zero_nan on Apple and llvmpipe (check.py) |
| 998 | ok, detail = judge_cs_dump(rc, msg, want, wave64=wave64, partial=partial, emulated=emulated, | 998 | ok, detail = judge_cs_dump(rc, msg, want, wave64=wave64, partial=partial, emulated=emulated, |
| 999 | hexwords=name in ("cs_store", "cs_smem_soffset_imm", "cs_w32_lds_u8_d16", | 999 | hexwords=name in ("cs_store", "cs_smem_soffset_imm", "cs_w32_lds_u8_d16", |
| 1000 | "cs_lds_b64_cmpst", "cs_signed_zero_nan")) | 1000 | "cs_lds_b64_cmpst", "cs_signed_zero_nan")) |
| 1001 | if ok and None in want: | 1001 | if ok and None in want: |
| 1002 | unjudged = ", ".join(str(i) for i, w in enumerate(want) if w is None) | 1002 | unjudged = ", ".join(str(i) for i, w in enumerate(want) if w is None) |
| 1003 | detail += f" (words {unjudged} not judged on Apple: -0 products, #1203)" | 1003 | detail += f" (words {unjudged} not judged on this device: UNJUDGED_WORDS in check.py)" |
| 1004 | results.append((name, ok, detail)) | 1004 | results.append((name, ok, detail)) |
| 1005 | elif name == "cs_imgstore": | 1005 | elif name == "cs_imgstore": |
| 1006 | rc, msg = run_cmd([vk_store, spv]) | 1006 | rc, msg = run_cmd([vk_store, spv]) |