diff options
| author | gabsilvs <142851434+gabsilvs@users.noreply.github.com> | 2026-11-22 21:19:17 -0300 |
|---|---|---|
| committer | gabsilvs <142851434+gabsilvs@users.noreply.github.com> | 2026-11-22 21:19:17 -0300 |
| commit | b9a8aca16a1550566ee042d5656d4443d6525912 (patch) | |
| tree | 8b5f1190900663d25bd6a51e15e0576c1e3dc517 /scripts/run_gpu_tests.py | |
| parent | aa2988cc555bad7ecd508b48a702adbb32fe7c95 (diff) | |
GPU tests: skip a draw when any stage needs OpFmaKHR the device lacks
docs/testing.md says a module that needs OpFmaKHR exits 77 (a SKIP) on a
device without VK_KHR_shader_fma, but only the fragment module was checked
in vk_harness, and vk_texture_test, vk_sampler_test and vk_bindless_test
never refused the vertex module (vs_ids carries FMAKHR). Under
LEONIDA_FMA=khr such a pair failed vkCreateGraphicsPipelines with -13 and
run_gpu_tests.py reported a FAIL.
ShaderFma::accepts_file() checks one module file. vk_harness (vertex module,
VKH_MESH_COMPUTE module), vk_texture_test, vk_sampler_test and
vk_bindless_test use it for every stage; vk_sampler_test also enables the
feature when the device has it, like the others. judge_cs_dump treats exit 77
with an "unsupported:" line as a skip for the non-wave64 dumps too
(cs_w32_new_ops).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015z45kpL5aWzXuYTbhn6b52
Diffstat (limited to 'scripts/run_gpu_tests.py')
| -rw-r--r-- | scripts/run_gpu_tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index 94de20f26..4a276ad2c 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -346,6 +346,10 @@ def judge_cs_dump(rc: int, msg: str, want: list[int], *, wave64: bool, partial: | |||
| 346 | no64 = partial and not emulated and not any(int(x) >= 64 for x in re.findall(r"subgroup \d+\.\.(\d+)", msg)) | 346 | no64 = partial and not emulated and not any(int(x) >= 64 for x in re.findall(r"subgroup \d+\.\.(\d+)", msg)) |
| 347 | if (wave64 and rc == 77) or (no64 and rc == 0): | 347 | if (wave64 and rc == 77) or (no64 and rc == 0): |
| 348 | return None, "SKIP (no 64-wide compute subgroup on this device)" | 348 | return None, "SKIP (no 64-wide compute subgroup on this device)" |
| 349 | if rc == 77: # the program refused the module: "unsupported: <why>" is a skip, as for every other missing feature | ||
| 350 | why = next((ln for ln in msg.splitlines() if ln.startswith("unsupported:")), None) | ||
| 351 | if why: | ||
| 352 | return None, "SKIP (" + why[len("unsupported:"):].strip() + ")" | ||
| 349 | if rc == 0 and wave64 and "compute subgroup size: 64" not in msg.splitlines(): | 353 | if rc == 0 and wave64 and "compute subgroup size: 64" not in msg.splitlines(): |
| 350 | return False, "64-wide subgroup was not confirmed (rebuild vk_compute_test)" | 354 | return False, "64-wide subgroup was not confirmed (rebuild vk_compute_test)" |
| 351 | words = dump_words(msg) | 355 | words = dump_words(msg) |