diff options
| author | Vonsek <45567075+Vonsek@users.noreply.github.com> | 2026-11-22 16:41:27 +0100 |
|---|---|---|
| committer | Vonsek <45567075+Vonsek@users.noreply.github.com> | 2026-11-22 16:41:27 +0100 |
| commit | b87dc1e9af21b11375c29dfa1046232eccbed2db (patch) | |
| tree | 20779b86bb4cf06d377278b23b01c34dbe85d714 /scripts/run_gpu_tests.py | |
| parent | 4eb6155d3ac4f9d3fadb0d095c4ce13e76783615 (diff) | |
Tests: GPU and CPU checks for the untested d16_xyz/d16_xy typed-buffer forms
buffer_load_format_d16_xyz, tbuffer_load_format_d16_xy/_d16_xyz and
buffer_store_format_d16_xyz were translated but no test ran them. Add the
GPU test cs_fmt_d16_xyz (one thread; integer, f16 and UNORM8 loads with the
kept high half of an odd final component, the 16-bit clamp of 32-bit UINT
channels, and stores into 32_32_32_UINT and 32_32_32_FLOAT), compared over
the whole 80-word heap, and run the same fixture in test_value_semantics.py.
AI-assisted.
Diffstat (limited to 'scripts/run_gpu_tests.py')
| -rw-r--r-- | scripts/run_gpu_tests.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index 025504fb8..20feab39c 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -25,7 +25,8 @@ sys.path.insert(0, os.path.join(ROOT, "tools")) | |||
| 25 | import mc_command # noqa: E402 | 25 | import mc_command # noqa: E402 |
| 26 | sys.path.insert(0, SHADER_DIR) | 26 | sys.path.insert(0, SHADER_DIR) |
| 27 | from build import CLIP_CASES, clip_container, shader_source | 27 | 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_d16_xyz_test, fmt_sint32_test, fmt_xy_xyz_test, |
| 29 | tbuffer_store_test) | ||
| 29 | from compute_fixture import compute_header | 30 | from compute_fixture import compute_header |
| 30 | from check import SAMPLER_CASES, sampler_test # ps_ssharp: the S#/T# mip fields (vk_sampler_test) | 31 | 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, | 32 | from check import (CMPX_CLASS_WORDS, CVT_F32_SAT_CASES, GRADIENT_TESTS, TEST_PROGRAMS, TEXTURE_MIP_DEPENDENCIES, |
| @@ -845,6 +846,10 @@ def run_suite(a, work: str) -> int: | |||
| 845 | # tbuffer_store_format_*: the instruction's format, words measured natively on a Radeon 680M (the .asm header) | 846 | # tbuffer_store_format_*: the instruction's format, words measured natively on a Radeon 680M (the .asm header) |
| 846 | problem = tbuffer_store_test(a.build, spirv_dir, cs_env) | 847 | problem = tbuffer_store_test(a.build, spirv_dir, cs_env) |
| 847 | results.append((name, not problem, problem or "128/128 dumped words exact")) | 848 | results.append((name, not problem, problem or "128/128 dumped words exact")) |
| 849 | elif name == "cs_fmt_d16_xyz": | ||
| 850 | # d16_xyz / d16_xy typed-buffer loads and d16_xyz stores (cs_fmt_d16_xyz.asm header) | ||
| 851 | problem = fmt_d16_xyz_test(a.build, spirv_dir, cs_env) | ||
| 852 | results.append((name, not problem, problem or "80/80 dumped words exact")) | ||
| 848 | elif name == "cs_global_neg_offset": | 853 | elif name == "cs_global_neg_offset": |
| 849 | # Negative global_load/global_store offsets (cs_global_neg_offset.asm): 40 groups give a 0x2800-byte | 854 | # Negative global_load/global_store offsets (cs_global_neg_offset.asm): 40 groups give a 0x2800-byte |
| 850 | # heap holding both the right addresses and the 4096-lower ones. One thread, no wave64 requirement. | 855 | # heap holding both the right addresses and the 4096-lower ones. One thread, no wave64 requirement. |