upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMatheus Gomes <39656344+matheuskshn@users.noreply.github.com>2026-11-22 13:53:56 -0300
committerMatheus Gomes <39656344+matheuskshn@users.noreply.github.com>2026-11-22 13:53:56 -0300
commit33456ca4e7fa1d1a8291be97a294dd80930c2c2d (patch)
treebbf65937a156d1b5f7dc0fabc6a605e17fcfc532 /scripts
parent4eb6155d3ac4f9d3fadb0d095c4ce13e76783615 (diff)
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.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/run_gpu_tests.py8
1 files changed, 8 insertions, 0 deletions
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:
859 vals = words[:len(USER_SGPRS_WORDS)] if words else [] 859 vals = words[:len(USER_SGPRS_WORDS)] if words else []
860 results.append((name, rc == 0 and vals == USER_SGPRS_WORDS, 860 results.append((name, rc == 0 and vals == USER_SGPRS_WORDS,
861 " ".join(hex(x) for x in vals) if vals else msg)) 861 " ".join(hex(x) for x in vals) if vals else msg))
862 elif name == "cs_f64_add":
863 rc, msg = run_cmd([vk_compute, spv, "1", "dump"], env=cs_env)
864 if rc == 77:
865 results.append((name, None, "SKIP (no shaderFloat64 on this device)"))
866 else:
867 ok, detail = judge_cs_dump(rc, msg, [0, 0x40040000], wave64=False, partial=False, emulated=False,
868 hexwords=True)
869 results.append((name, ok, detail))
862 elif name == "cs_cvt_f32_sat": 870 elif name == "cs_cvt_f32_sat":
863 # #300's saturating float -> int conversions: one dispatch per input word in s4 (VKC_SGPRS). 871 # #300's saturating float -> int conversions: one dispatch per input word in s4 (VKC_SGPRS).
864 wrong = [] 872 wrong = []