upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/scripts/run_gpu_tests.py
diff options
context:
space:
mode:
authorVonsek <45567075+Vonsek@users.noreply.github.com>2026-11-22 18:29:28 +0100
committerVonsek <45567075+Vonsek@users.noreply.github.com>2026-11-22 18:29:28 +0100
commitdd678a7681f7a046aa5ff173edcbec60a1552f31 (patch)
tree2fabd43d28e3f1ae75d24b54b9f676fdc35d2221 /scripts/run_gpu_tests.py
parent3d1dbf1cef8b9240cce69b2bcdba0c09ea0f1d5e (diff)
parent49475796c226c8511b9470bf97a4daf57b8af323 (diff)
Merge main into coverage-gaps (#1299)
Conflicts: tests/semantic/regen_fixtures.py AI-assisted.
Diffstat (limited to 'scripts/run_gpu_tests.py')
-rw-r--r--scripts/run_gpu_tests.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py
index 7a508688e..e630a99be 100644
--- a/scripts/run_gpu_tests.py
+++ b/scripts/run_gpu_tests.py
@@ -28,7 +28,7 @@ from build import CLIP_CASES, clip_container, shader_source
28from check import Skip, clip_test, fmt_1010102_test, fmt_sint32_test, fmt_xy_xyz_test, tbuffer_store_test 28from check import Skip, clip_test, fmt_1010102_test, fmt_sint32_test, fmt_xy_xyz_test, tbuffer_store_test
29from compute_fixture import compute_header 29from compute_fixture import compute_header
30from check import SAMPLER_CASES, sampler_test # ps_ssharp: the S#/T# mip fields (vk_sampler_test) 30from check import SAMPLER_CASES, sampler_test # ps_ssharp: the S#/T# mip fields (vk_sampler_test)
31from check import (CMPX_CLASS_WORDS, CVT_F32_SAT_CASES, GRADIENT_TESTS, TEST_PROGRAMS, TEXTURE_MIP_DEPENDENCIES, 31from check import (CMPX_CLASS_WORDS, CVT_F32_SAT_CASES, CVT_PK_U8_WORDS, GRADIENT_TESTS, TEST_PROGRAMS, TEXTURE_MIP_DEPENDENCIES,
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)
34from check import SIGNED_MIP_TEST 34from check import SIGNED_MIP_TEST
@@ -548,8 +548,9 @@ def check_clip_half(raw_path: str, want_b: float, want_a: float) -> tuple[bool,
548# checker runs them: the test program that owns them judges them. 548# checker runs them: the test program that owns them judges them.
549OTHER_HARNESS = {"ps_m15": "d3d12_translated_draw_test", "vs_m15": "d3d12_translated_draw_test", 549OTHER_HARNESS = {"ps_m15": "d3d12_translated_draw_test", "vs_m15": "d3d12_translated_draw_test",
550 "ps_m2": "d3d12_m2_textured_test", "vs_m2": "d3d12_m2_textured_test", "ps_m2_uoff": "d3d12_m2_textured_test", 550 "ps_m2": "d3d12_m2_textured_test", "vs_m2": "d3d12_m2_textured_test", "ps_m2_uoff": "d3d12_m2_textured_test",
551 "ps_m2_array": "d3d12_m2_formats_test",
551 "ps_m3": "d3d12_m3_frame_test", "vs_m3": "d3d12_m3_frame_test", 552 "ps_m3": "d3d12_m3_frame_test", "vs_m3": "d3d12_m3_frame_test",
552 "ps_m3_post": "d3d12_m3_frame_test", 553 "ps_m3_post": "d3d12_m3_frame_test", "ps_m3_query": "d3d12_m3_frame_test",
553 "cs_m4_fill": "d3d12_m4_compute_test", "cs_m4_indirect": "d3d12_m4_compute_test", 554 "cs_m4_fill": "d3d12_m4_compute_test", "cs_m4_indirect": "d3d12_m4_compute_test",
554 "cs_buf_typed": "d3d12_buffer_uav_test", "cs_buf_counter": "d3d12_buffer_uav_test"} 555 "cs_buf_typed": "d3d12_buffer_uav_test", "cs_buf_counter": "d3d12_buffer_uav_test"}
555 556
@@ -812,10 +813,10 @@ def run_suite(a, work: str) -> int:
812 results.append((name, ok, problem or f"4096 pixels in each of {len(GET_LOD_TESTS[name])} draw(s): the " 813 results.append((name, ok, problem or f"4096 pixels in each of {len(GET_LOD_TESTS[name])} draw(s): the "
813 "clamped and the calculated LOD within 1/16")) 814 "clamped and the calculated LOD within 1/16"))
814 elif name in ("cs_bounds", "cs_smem_bounds", "cs_smem_stride_align", "cs_smem_sload_neg", "cs_buf_tail", "cs_oob_select", "cs_oob_tail", 815 elif name in ("cs_bounds", "cs_smem_bounds", "cs_smem_stride_align", "cs_smem_sload_neg", "cs_buf_tail", "cs_oob_select", "cs_oob_tail",
815 "cs_buf_swizzle", "cs_cmpx_class_f32"): 816 "cs_buf_swizzle", "cs_cmpx_class_f32", "cs_cvt_pk_u8"):
816 # num_records bounds check (cs_bounds.asm): the out-of-bounds store is dropped and the out-of-bounds 817 # num_records bounds check (cs_bounds.asm): the out-of-bounds store is dropped and the out-of-bounds
817 # load reads 0, so thread 0's four output words are fixed. One thread, no wave64 requirement. 818 # load reads 0, so thread 0's four output words are fixed. One thread, no wave64 requirement.
818 # cs_cmpx_class_f32 is per-lane and needs no particular subgroup width either. 819 # cs_cmpx_class_f32 and cs_cvt_pk_u8 are per-lane and need no particular subgroup width either.
819 # The other four pin the SMEM and raw MUBUF rules measured on an RX 6800 (derivations in each .asm). 820 # The other four pin the SMEM and raw MUBUF rules measured on an RX 6800 (derivations in each .asm).
820 rc, msg = run_cmd([vk_compute, spv, "1", "dump"], env=cs_env) 821 rc, msg = run_cmd([vk_compute, spv, "1", "dump"], env=cs_env)
821 want = { 822 want = {
@@ -833,6 +834,7 @@ def run_suite(a, work: str) -> int:
833 "cs_buf_swizzle": [0x5EED0024, 0x5EED0044, 0x5EED004C, 0x5EED0008, 0x5EED0028, 0, 0xBEEF0000, 834 "cs_buf_swizzle": [0x5EED0024, 0x5EED0044, 0x5EED004C, 0x5EED0008, 0x5EED0028, 0, 0xBEEF0000,
834 0xBEEF0001], 835 0xBEEF0001],
835 "cs_cmpx_class_f32": CMPX_CLASS_WORDS, 836 "cs_cmpx_class_f32": CMPX_CLASS_WORDS,
837 "cs_cvt_pk_u8": CVT_PK_U8_WORDS,
836 }[name] 838 }[name]
837 words = dump_words(msg) 839 words = dump_words(msg)
838 vals = words[:len(want)] if words else [] 840 vals = words[:len(want)] if words else []
@@ -1135,6 +1137,7 @@ def run_suite(a, work: str) -> int:
1135 "ps_scc_logic64": (0x0fff0fff, 0xff000000, 0xff0000ff, 0x16), 1137 "ps_scc_logic64": (0x0fff0fff, 0xff000000, 0xff0000ff, 0x16),
1136 "ps_fma_literal": (0x41B80000, 0x41800000, 0x40E00000, 0x41A40000), 1138 "ps_fma_literal": (0x41B80000, 0x41800000, 0x40E00000, 0x41A40000),
1137 "ps_f64_mods": (0x40040000, 0x3FF00000, 0x3FE40000, 0x3FF00000), # needs shaderFloat64 1139 "ps_f64_mods": (0x40040000, 0x3FF00000, 0x3FE40000, 0x3FF00000), # needs shaderFloat64
1140 "ps_outmods_f16": (0xAAAA3C00, 0xAAAA3E00, 0x7C000000, 0x3C000000),
1138 # f16 op_sel / partial writes / inline constants: RDNA2 hardware words (see the .asm headers) 1141 # f16 op_sel / partial writes / inline constants: RDNA2 hardware words (see the .asm headers)
1139 "ps_f16_med3_opsel": (0xAAAA4100, 0xAAAA4200, 0xAAAA3E00, 0x40005555), 1142 "ps_f16_med3_opsel": (0xAAAA4100, 0xAAAA4200, 0xAAAA3E00, 0x40005555),
1140 "ps_f16_med3_mods": (0x41005555, 0x3C005555, 0x41003800, 0xAAAABA00), 1143 "ps_f16_med3_mods": (0x41005555, 0x3C005555, 0x41003800, 0xAAAABA00),