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:
authorS1m0ne1997 <347981799+S1m0ne1997@users.noreply.github.com>2026-11-22 18:06:20 +0100
committerS1m0ne1997 <347981799+S1m0ne1997@users.noreply.github.com>2026-11-22 18:06:20 +0100
commit97afefdebc4ac01f1c0415e59f9522914a628ad1 (patch)
treef97a8e91c1866988df65609184fcfe5cb81195eb /scripts/run_gpu_tests.py
parent72a38ad24d5197cd057f05e35fcf74e853f8c562 (diff)
parent49475796c226c8511b9470bf97a4daf57b8af323 (diff)
Merge remote-tracking branch 'origin/main' into shader-33-vs-inputs
# Conflicts: # tests/test_shader_checks.py
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 682427e66..e2f0dabe4 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
@@ -541,8 +541,9 @@ def check_clip_half(raw_path: str, want_b: float, want_a: float) -> tuple[bool,
541# checker runs them: the test program that owns them judges them. 541# checker runs them: the test program that owns them judges them.
542OTHER_HARNESS = {"ps_m15": "d3d12_translated_draw_test", "vs_m15": "d3d12_translated_draw_test", 542OTHER_HARNESS = {"ps_m15": "d3d12_translated_draw_test", "vs_m15": "d3d12_translated_draw_test",
543 "ps_m2": "d3d12_m2_textured_test", "vs_m2": "d3d12_m2_textured_test", "ps_m2_uoff": "d3d12_m2_textured_test", 543 "ps_m2": "d3d12_m2_textured_test", "vs_m2": "d3d12_m2_textured_test", "ps_m2_uoff": "d3d12_m2_textured_test",
544 "ps_m2_array": "d3d12_m2_formats_test",
544 "ps_m3": "d3d12_m3_frame_test", "vs_m3": "d3d12_m3_frame_test", 545 "ps_m3": "d3d12_m3_frame_test", "vs_m3": "d3d12_m3_frame_test",
545 "ps_m3_post": "d3d12_m3_frame_test", 546 "ps_m3_post": "d3d12_m3_frame_test", "ps_m3_query": "d3d12_m3_frame_test",
546 "cs_m4_fill": "d3d12_m4_compute_test", "cs_m4_indirect": "d3d12_m4_compute_test", 547 "cs_m4_fill": "d3d12_m4_compute_test", "cs_m4_indirect": "d3d12_m4_compute_test",
547 "cs_buf_typed": "d3d12_buffer_uav_test", "cs_buf_counter": "d3d12_buffer_uav_test"} 548 "cs_buf_typed": "d3d12_buffer_uav_test", "cs_buf_counter": "d3d12_buffer_uav_test"}
548 549
@@ -806,10 +807,10 @@ def run_suite(a, work: str) -> int:
806 results.append((name, ok, problem or f"4096 pixels in each of {len(GET_LOD_TESTS[name])} draw(s): the " 807 results.append((name, ok, problem or f"4096 pixels in each of {len(GET_LOD_TESTS[name])} draw(s): the "
807 "clamped and the calculated LOD within 1/16")) 808 "clamped and the calculated LOD within 1/16"))
808 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", 809 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",
809 "cs_buf_swizzle", "cs_cmpx_class_f32"): 810 "cs_buf_swizzle", "cs_cmpx_class_f32", "cs_cvt_pk_u8"):
810 # num_records bounds check (cs_bounds.asm): the out-of-bounds store is dropped and the out-of-bounds 811 # num_records bounds check (cs_bounds.asm): the out-of-bounds store is dropped and the out-of-bounds
811 # load reads 0, so thread 0's four output words are fixed. One thread, no wave64 requirement. 812 # load reads 0, so thread 0's four output words are fixed. One thread, no wave64 requirement.
812 # cs_cmpx_class_f32 is per-lane and needs no particular subgroup width either. 813 # cs_cmpx_class_f32 and cs_cvt_pk_u8 are per-lane and need no particular subgroup width either.
813 # The other four pin the SMEM and raw MUBUF rules measured on an RX 6800 (derivations in each .asm). 814 # The other four pin the SMEM and raw MUBUF rules measured on an RX 6800 (derivations in each .asm).
814 rc, msg = run_cmd([vk_compute, spv, "1", "dump"], env=cs_env) 815 rc, msg = run_cmd([vk_compute, spv, "1", "dump"], env=cs_env)
815 want = { 816 want = {
@@ -827,6 +828,7 @@ def run_suite(a, work: str) -> int:
827 "cs_buf_swizzle": [0x5EED0024, 0x5EED0044, 0x5EED004C, 0x5EED0008, 0x5EED0028, 0, 0xBEEF0000, 828 "cs_buf_swizzle": [0x5EED0024, 0x5EED0044, 0x5EED004C, 0x5EED0008, 0x5EED0028, 0, 0xBEEF0000,
828 0xBEEF0001], 829 0xBEEF0001],
829 "cs_cmpx_class_f32": CMPX_CLASS_WORDS, 830 "cs_cmpx_class_f32": CMPX_CLASS_WORDS,
831 "cs_cvt_pk_u8": CVT_PK_U8_WORDS,
830 }[name] 832 }[name]
831 words = dump_words(msg) 833 words = dump_words(msg)
832 vals = words[:len(want)] if words else [] 834 vals = words[:len(want)] if words else []
@@ -1128,6 +1130,7 @@ def run_suite(a, work: str) -> int:
1128 "ps_scc_logic64": (0x0fff0fff, 0xff000000, 0xff0000ff, 0x16), 1130 "ps_scc_logic64": (0x0fff0fff, 0xff000000, 0xff0000ff, 0x16),
1129 "ps_fma_literal": (0x41B80000, 0x41800000, 0x40E00000, 0x41A40000), 1131 "ps_fma_literal": (0x41B80000, 0x41800000, 0x40E00000, 0x41A40000),
1130 "ps_f64_mods": (0x40040000, 0x3FF00000, 0x3FE40000, 0x3FF00000), # needs shaderFloat64 1132 "ps_f64_mods": (0x40040000, 0x3FF00000, 0x3FE40000, 0x3FF00000), # needs shaderFloat64
1133 "ps_outmods_f16": (0xAAAA3C00, 0xAAAA3E00, 0x7C000000, 0x3C000000),
1131 # f16 op_sel / partial writes / inline constants: RDNA2 hardware words (see the .asm headers) 1134 # f16 op_sel / partial writes / inline constants: RDNA2 hardware words (see the .asm headers)
1132 "ps_f16_med3_opsel": (0xAAAA4100, 0xAAAA4200, 0xAAAA3E00, 0x40005555), 1135 "ps_f16_med3_opsel": (0xAAAA4100, 0xAAAA4200, 0xAAAA3E00, 0x40005555),
1133 "ps_f16_med3_mods": (0x41005555, 0x3C005555, 0x41003800, 0xAAAABA00), 1136 "ps_f16_med3_mods": (0x41005555, 0x3C005555, 0x41003800, 0xAAAABA00),