From 33456ca4e7fa1d1a8291be97a294dd80930c2c2d Mon Sep 17 00:00:00 2001 From: Matheus Gomes <39656344+matheuskshn@users.noreply.github.com> Date: Sun, 22 Nov 2026 13:53:56 -0300 Subject: fix(test): enable shaderFloat64 for compute SPIR-V that declares it Use the existing SPIR-V capability scan to request the feature before creating the Vulkan device, or report an unsupported-device skip. Add a synthetic compute case that checks both words of a binary64 result. --- scripts/run_gpu_tests.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'scripts/run_gpu_tests.py') diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index 025504fb8..4dc181faf 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py @@ -859,6 +859,14 @@ def run_suite(a, work: str) -> int: vals = words[:len(USER_SGPRS_WORDS)] if words else [] results.append((name, rc == 0 and vals == USER_SGPRS_WORDS, " ".join(hex(x) for x in vals) if vals else msg)) + elif name == "cs_f64_add": + rc, msg = run_cmd([vk_compute, spv, "1", "dump"], env=cs_env) + if rc == 77: + results.append((name, None, "SKIP (no shaderFloat64 on this device)")) + else: + ok, detail = judge_cs_dump(rc, msg, [0, 0x40040000], wave64=False, partial=False, emulated=False, + hexwords=True) + results.append((name, ok, detail)) elif name == "cs_cvt_f32_sat": # #300's saturating float -> int conversions: one dispatch per input word in s4 (VKC_SGPRS). wrong = [] -- cgit v1.2.3