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