diff options
| author | AlxcBTW <187763517+AlxcBTW@users.noreply.github.com> | 2026-11-22 17:45:20 +0100 |
|---|---|---|
| committer | AlxcBTW <187763517+AlxcBTW@users.noreply.github.com> | 2026-11-22 17:45:20 +0100 |
| commit | b643dfb4e50a514584e534bcc85dc0c10e8be985 (patch) | |
| tree | 329238252dc0e81bca61fe865deccc76751b7088 /scripts/run_gpu_tests.py | |
| parent | a93da2c18534d064472a5d045e875466a4018e64 (diff) | |
| parent | 49475796c226c8511b9470bf97a4daf57b8af323 (diff) | |
Merge remote-tracking branch 'origin/main' into bf2022
# Conflicts:
# docs/design.md
# tests/test_shader_checks.py
Diffstat (limited to 'scripts/run_gpu_tests.py')
| -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 025504fb8..698ec36d0 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 |
| @@ -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. |
| 542 | OTHER_HARNESS = {"ps_m15": "d3d12_translated_draw_test", "vs_m15": "d3d12_translated_draw_test", | 542 | OTHER_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 | ||
| @@ -805,10 +806,10 @@ def run_suite(a, work: str) -> int: | |||
| 805 | results.append((name, ok, problem or f"4096 pixels in each of {len(GET_LOD_TESTS[name])} draw(s): the " | 806 | results.append((name, ok, problem or f"4096 pixels in each of {len(GET_LOD_TESTS[name])} draw(s): the " |
| 806 | "clamped and the calculated LOD within 1/16")) | 807 | "clamped and the calculated LOD within 1/16")) |
| 807 | 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", | 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", |
| 808 | "cs_buf_swizzle", "cs_cmpx_class_f32"): | 809 | "cs_buf_swizzle", "cs_cmpx_class_f32", "cs_cvt_pk_u8"): |
| 809 | # num_records bounds check (cs_bounds.asm): the out-of-bounds store is dropped and the out-of-bounds | 810 | # num_records bounds check (cs_bounds.asm): the out-of-bounds store is dropped and the out-of-bounds |
| 810 | # load reads 0, so thread 0's four output words are fixed. One thread, no wave64 requirement. | 811 | # load reads 0, so thread 0's four output words are fixed. One thread, no wave64 requirement. |
| 811 | # cs_cmpx_class_f32 is per-lane and needs no particular subgroup width either. | 812 | # cs_cmpx_class_f32 and cs_cvt_pk_u8 are per-lane and need no particular subgroup width either. |
| 812 | # The other four pin the SMEM and raw MUBUF rules measured on an RX 6800 (derivations in each .asm). | 813 | # The other four pin the SMEM and raw MUBUF rules measured on an RX 6800 (derivations in each .asm). |
| 813 | rc, msg = run_cmd([vk_compute, spv, "1", "dump"], env=cs_env) | 814 | rc, msg = run_cmd([vk_compute, spv, "1", "dump"], env=cs_env) |
| 814 | want = { | 815 | want = { |
| @@ -826,6 +827,7 @@ def run_suite(a, work: str) -> int: | |||
| 826 | "cs_buf_swizzle": [0x5EED0024, 0x5EED0044, 0x5EED004C, 0x5EED0008, 0x5EED0028, 0, 0xBEEF0000, | 827 | "cs_buf_swizzle": [0x5EED0024, 0x5EED0044, 0x5EED004C, 0x5EED0008, 0x5EED0028, 0, 0xBEEF0000, |
| 827 | 0xBEEF0001], | 828 | 0xBEEF0001], |
| 828 | "cs_cmpx_class_f32": CMPX_CLASS_WORDS, | 829 | "cs_cmpx_class_f32": CMPX_CLASS_WORDS, |
| 830 | "cs_cvt_pk_u8": CVT_PK_U8_WORDS, | ||
| 829 | }[name] | 831 | }[name] |
| 830 | words = dump_words(msg) | 832 | words = dump_words(msg) |
| 831 | vals = words[:len(want)] if words else [] | 833 | vals = words[:len(want)] if words else [] |
| @@ -1127,6 +1129,7 @@ def run_suite(a, work: str) -> int: | |||
| 1127 | "ps_scc_logic64": (0x0fff0fff, 0xff000000, 0xff0000ff, 0x16), | 1129 | "ps_scc_logic64": (0x0fff0fff, 0xff000000, 0xff0000ff, 0x16), |
| 1128 | "ps_fma_literal": (0x41B80000, 0x41800000, 0x40E00000, 0x41A40000), | 1130 | "ps_fma_literal": (0x41B80000, 0x41800000, 0x40E00000, 0x41A40000), |
| 1129 | "ps_f64_mods": (0x40040000, 0x3FF00000, 0x3FE40000, 0x3FF00000), # needs shaderFloat64 | 1131 | "ps_f64_mods": (0x40040000, 0x3FF00000, 0x3FE40000, 0x3FF00000), # needs shaderFloat64 |
| 1132 | "ps_outmods_f16": (0xAAAA3C00, 0xAAAA3E00, 0x7C000000, 0x3C000000), | ||
| 1130 | # f16 op_sel / partial writes / inline constants: RDNA2 hardware words (see the .asm headers) | 1133 | # f16 op_sel / partial writes / inline constants: RDNA2 hardware words (see the .asm headers) |
| 1131 | "ps_f16_med3_opsel": (0xAAAA4100, 0xAAAA4200, 0xAAAA3E00, 0x40005555), | 1134 | "ps_f16_med3_opsel": (0xAAAA4100, 0xAAAA4200, 0xAAAA3E00, 0x40005555), |
| 1132 | "ps_f16_med3_mods": (0x41005555, 0x3C005555, 0x41003800, 0xAAAABA00), | 1135 | "ps_f16_med3_mods": (0x41005555, 0x3C005555, 0x41003800, 0xAAAABA00), |