diff options
| author | S1m0ne1997 <347981799+S1m0ne1997@users.noreply.github.com> | 2026-11-22 17:56:02 +0100 |
|---|---|---|
| committer | S1m0ne1997 <347981799+S1m0ne1997@users.noreply.github.com> | 2026-11-22 17:56:02 +0100 |
| commit | a012fe0c1fd878ff3f42a091daa22343724b4d96 (patch) | |
| tree | 3991cf99ab125922e37773a185620b3d19021b61 /scripts/run_gpu_tests.py | |
| parent | 14f7cce13fb7d81fa334d2e6522995318bd4d439 (diff) | |
SHADER-337: GPU test of image_sample_o, image_sample_b_o and image_gather4_l_o with texel offsets
ps_texoff_forms runs the three forms on vk_texture_test's texture with ps_texoff's per-pixel offset (all 64 pairs in
-4..3). check.py and run_gpu_tests.py judge it with texoff_words(..., "ps_texoff_forms"); unit tests check that a
dropped or swapped offset fails. 4096/4096 pixels exact on an RTX 4090 and on a gfx1036 iGPU.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'scripts/run_gpu_tests.py')
| -rw-r--r-- | scripts/run_gpu_tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index 025504fb8..1b8a19de2 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -1070,7 +1070,7 @@ def run_suite(a, work: str) -> int: | |||
| 1070 | problem = sampler_test(a.build, spirv_dir) | 1070 | problem = sampler_test(a.build, spirv_dir) |
| 1071 | results.append((name, None if isinstance(problem, Skip) else not problem, | 1071 | results.append((name, None if isinstance(problem, Skip) else not problem, |
| 1072 | problem or f"{len(SAMPLER_CASES)} S#/T# cases, 4096 pixels each exact")) | 1072 | problem or f"{len(SAMPLER_CASES)} S#/T# cases, 4096 pixels each exact")) |
| 1073 | elif name in ("ps_texoff", "ps_texoff_implicit"): | 1073 | elif name in ("ps_texoff", "ps_texoff_implicit", "ps_texoff_forms"): |
| 1074 | # Texel offsets: needs vk_texture_test's texture, sampler and descriptor table (vk_harness binds none), | 1074 | # Texel offsets: needs vk_texture_test's texture, sampler and descriptor table (vk_harness binds none), |
| 1075 | # and VK_KHR_maintenance8 for the non-constant Offset; the tool exits 77 without it. | 1075 | # and VK_KHR_maintenance8 for the non-constant Offset; the tool exits 77 without it. |
| 1076 | raw = os.path.join(raw_dir, f"{name}.raw") | 1076 | raw = os.path.join(raw_dir, f"{name}.raw") |
| @@ -1082,7 +1082,7 @@ def run_suite(a, work: str) -> int: | |||
| 1082 | results.append((name, False, msg)) | 1082 | results.append((name, False, msg)) |
| 1083 | else: | 1083 | else: |
| 1084 | with open(raw, "rb") as f: | 1084 | with open(raw, "rb") as f: |
| 1085 | problem, covered = texoff_problem(f.read(), msg) | 1085 | problem, covered = texoff_problem(f.read(), msg, name=name) |
| 1086 | results.append((name, not problem, problem or f"4096/4096 pixels exact ({covered})")) | 1086 | results.append((name, not problem, problem or f"4096/4096 pixels exact ({covered})")) |
| 1087 | elif name in OTHER_HARNESS: | 1087 | elif name in OTHER_HARNESS: |
| 1088 | results.append((name, None, f"SKIP (run by {OTHER_HARNESS[name]})")) | 1088 | results.append((name, None, f"SKIP (run by {OTHER_HARNESS[name]})")) |