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 19:57:23 +0100
committerVonsek <45567075+Vonsek@users.noreply.github.com>2026-11-22 19:57:23 +0100
commit23b458b5f8575581617b60a9451909b9f32f3a4d (patch)
tree5b5f1bbf6f8662f440635e9c1327dc8bdbaa6ae3 /scripts/run_gpu_tests.py
parentec8ec4c9a46c6623f1a9c125afd3566da97f1e0c (diff)
rdna2spirv: image_sample_c and image_sample_c_b, depth compares with implicit LOD (EGEN-MIMG-SAMPLE-C)
image_sample_c / image_sample_c_b (and their _o forms) were Unsupported. In a pixel shader they are OpImageSampleDrefImplicitLod (Bias for _c_b); LOD 0 for _c elsewhere. The _c_b address order is bias then z-compare (the parser read the compare first). vk_texture_test now honours LEONIDA_VK_DEVICE. GPU tests ps_sample_c and ps_sample_c_b, semantic tests, design.md row. AI-assisted.
Diffstat (limited to 'scripts/run_gpu_tests.py')
-rw-r--r--scripts/run_gpu_tests.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py
index 3a23250fc..824f1f55b 100644
--- a/scripts/run_gpu_tests.py
+++ b/scripts/run_gpu_tests.py
@@ -553,6 +553,7 @@ OTHER_HARNESS = {"ps_m15": "d3d12_translated_draw_test", "vs_m15": "d3d12_transl
553# Shaders a selected test draws with, built even when the filter leaves them out (#192). 553# Shaders a selected test draws with, built even when the filter leaves them out (#192).
554DRAWN_WITH = {GATHER_LOD_TEST: "vs_ids.asm", "ps_flat": "vs_ids.asm", "ps_texture_sample": "vs_ids.asm", "ps_cube_sample": "vs_ids.asm", 554DRAWN_WITH = {GATHER_LOD_TEST: "vs_ids.asm", "ps_flat": "vs_ids.asm", "ps_texture_sample": "vs_ids.asm", "ps_cube_sample": "vs_ids.asm",
555 "ps_texture_sample_d16": "vs_ids.asm", "ps_sample_c_lz": "vs_ids.asm", "ps_sample_c_lz_a16": "vs_ids.asm", 555 "ps_texture_sample_d16": "vs_ids.asm", "ps_sample_c_lz": "vs_ids.asm", "ps_sample_c_lz_a16": "vs_ids.asm",
556 "ps_sample_c": "vs_ids.asm", "ps_sample_c_b": "vs_ids.asm",
556 **{name: "vs_ids.asm" for name in TEXTURE_CONSTANTS}, "ps_ssharp": "vs_ids.asm", "ps_imgatomic": "vs_ids.asm", 557 **{name: "vs_ids.asm" for name in TEXTURE_CONSTANTS}, "ps_ssharp": "vs_ids.asm", "ps_imgatomic": "vs_ids.asm",
557 **{name: "vs_ids.asm" for name in GRADIENT_TESTS}, "vs_clip": "ps_clip_color.asm", 558 **{name: "vs_ids.asm" for name in GRADIENT_TESTS}, "vs_clip": "ps_clip_color.asm",
558 "ps_interp_f16_high": "vs_f16_pack.asm", "ms_f16_pack": "ps_interp_f16_high.asm", 559 "ps_interp_f16_high": "vs_f16_pack.asm", "ms_f16_pack": "ps_interp_f16_high.asm",
@@ -1029,7 +1030,7 @@ def run_suite(a, work: str) -> int:
1029 ok = None if isinstance(problem, Skip) else not problem 1030 ok = None if isinstance(problem, Skip) else not problem
1030 results.append((name, ok, problem or "4096 RGBA pixels matched")) 1031 results.append((name, ok, problem or "4096 RGBA pixels matched"))
1031 elif name in ("ps_texture_sample", "ps_cube_sample", "ps_texture_sample_d16", "ps_sample_c_lz", 1032 elif name in ("ps_texture_sample", "ps_cube_sample", "ps_texture_sample_d16", "ps_sample_c_lz",
1032 "ps_sample_c_lz_a16"): 1033 "ps_sample_c_lz_a16", "ps_sample_c", "ps_sample_c_b"):
1033 # Bindless texture tests: vk_texture_test finds vs_ids.spv and the shader in its working directory. 1034 # Bindless texture tests: vk_texture_test finds vs_ids.spv and the shader in its working directory.
1034 tool = os.path.join(a.build, "vk_texture_test" + ext) 1035 tool = os.path.join(a.build, "vk_texture_test" + ext)
1035 raw = os.path.join(raw_dir, f"{name}.raw") 1036 raw = os.path.join(raw_dir, f"{name}.raw")
@@ -1038,7 +1039,8 @@ def run_suite(a, work: str) -> int:
1038 cmd = [tool, os.path.join(spirv_dir, "vs_ids.spv"), spv, raw, "0", "0", "0", "0", "0"] 1039 cmd = [tool, os.path.join(spirv_dir, "vs_ids.spv"), spv, raw, "0", "0", "0", "0", "0"]
1039 else: 1040 else:
1040 mode = {"ps_cube_sample": ["cube"], "ps_sample_c_lz": ["dref"], 1041 mode = {"ps_cube_sample": ["cube"], "ps_sample_c_lz": ["dref"],
1041 "ps_sample_c_lz_a16": ["dref_a16"]}.get(name, []) 1042 "ps_sample_c_lz_a16": ["dref_a16"], "ps_sample_c": ["dref_c"],
1043 "ps_sample_c_b": ["dref_c_b"]}.get(name, [])
1042 cmd = [tool, *mode, raw] 1044 cmd = [tool, *mode, raw]
1043 rc, msg = run_cmd(cmd, cwd=spirv_dir) 1045 rc, msg = run_cmd(cmd, cwd=spirv_dir)
1044 if rc == UNSUPPORTED: # e.g. fewer push constant bytes than the texture tests need 1046 if rc == UNSUPPORTED: # e.g. fewer push constant bytes than the texture tests need