diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 15:09:42 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 15:09:42 -0500 |
| commit | c4eaab94c9cd99370ed6ecf5f85ce94d20b011ad (patch) | |
| tree | db23abcc23aead80b0376ba5650fef839c4a088e /scripts/run_gpu_tests.py | |
| parent | 94a6cba5e7f913c4ae6bd5b8ac4786d962340977 (diff) | |
| parent | 2426df3d5ed7bf419f8abfcbdd2a94bae9e1ae8f (diff) | |
Merge pull request #1518 from Henrique Vinagre
Diffstat (limited to 'scripts/run_gpu_tests.py')
| -rw-r--r-- | scripts/run_gpu_tests.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index 5ecd373b5..5549bed39 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -42,6 +42,7 @@ from check import (WAVE32_LANE_DUMPS, WAVE32_LANE_ENV, bitmask_perm_narrow_skip, | |||
| 42 | from check import PIXEL_VERTEX, interp_f16_high_problem, ij_computed_problem, mandelbrot_problem # pixel producers and checks | 42 | from check import PIXEL_VERTEX, interp_f16_high_problem, ij_computed_problem, mandelbrot_problem # pixel producers and checks |
| 43 | from check import GET_LOD_TESTS, STORE_WORDS, get_lod_test, store_words_problem # TEST-184: image atomics and queries | 43 | from check import GET_LOD_TESTS, STORE_WORDS, get_lod_test, store_words_problem # TEST-184: image atomics and queries |
| 44 | from check import wide_pixel_skip # ps_w64x_readlane: judged only where the fragment stage was required 64-wide | 44 | from check import wide_pixel_skip # ps_w64x_readlane: judged only where the fragment stage was required 64-wide |
| 45 | from check import FMA_FUSED_ENV, judge_fma_fused # cs_fma_fused: strict under LEONIDA_FMA=khr, fused/split under glsl | ||
| 45 | 46 | ||
| 46 | 47 | ||
| 47 | def make_dxbc(chunks: list[tuple[bytes, bytes]]) -> bytes: | 48 | def make_dxbc(chunks: list[tuple[bytes, bytes]]) -> bytes: |
| @@ -922,6 +923,18 @@ def run_suite(a, work: str) -> int: | |||
| 922 | n = len(CVT_F32_SAT_CASES) | 923 | n = len(CVT_F32_SAT_CASES) |
| 923 | results.append((name, not wrong, f"{n}/{n} inputs exact" if not wrong | 924 | results.append((name, not wrong, f"{n}/{n} inputs exact" if not wrong |
| 924 | else f"{len(wrong)}/{n} inputs wrong, first {wrong[0]}")) | 925 | else f"{len(wrong)}/{n} inputs wrong, first {wrong[0]}")) |
| 926 | elif name == "cs_fma_fused": | ||
| 927 | # Single-rounded f32 FMA (+ f16 round-to-odd): strict under LEONIDA_FMA=khr (OpFmaKHR, exit 77 if | ||
| 928 | # unsupported), fused-or-split f32 allowed under default --fma glsl (e.g. Mesa RADV splits 5/7). | ||
| 929 | rc, msg = run_cmd([vk_compute, spv, "1", "dump"], env=dict(cs_env or os.environ, **FMA_FUSED_ENV)) | ||
| 930 | if rc == UNSUPPORTED: | ||
| 931 | results.append((name, None, unsupported_skip(msg))) | ||
| 932 | elif rc != 0: | ||
| 933 | results.append((name, False, msg)) | ||
| 934 | else: | ||
| 935 | khr = os.environ.get("LEONIDA_FMA") == "khr" | ||
| 936 | ok, detail = judge_fma_fused(dump_words(msg), khr=khr) | ||
| 937 | results.append((name, ok, detail)) | ||
| 925 | elif name == "cs_wavemask": | 938 | elif name == "cs_wavemask": |
| 926 | # Whole-wave mask test, as in check.py: needs a 64-wide subgroup, skipped where the device has none. | 939 | # Whole-wave mask test, as in check.py: needs a 64-wide subgroup, skipped where the device has none. |
| 927 | # With LEONIDA_W64_EMULATE=1 it was translated with --wave64-emulate and runs on any subgroup size. | 940 | # With LEONIDA_W64_EMULATE=1 it was translated with --wave64-emulate and runs on any subgroup size. |