diff options
| author | Moaaz Gewili <ai4221386@deltauniv.edu.eg> | 2026-11-22 20:37:17 +0200 |
|---|---|---|
| committer | Moaaz Gewili <ai4221386@deltauniv.edu.eg> | 2026-11-23 00:00:12 +0200 |
| commit | 04361d0a3957d212269b59157f4dd99261eebb7b (patch) | |
| tree | a00a18b3f26e76758a72d64c35013bb836e3fcf7 /scripts/run_gpu_tests.py | |
| parent | 4c52ce27a6cf4af2bbf07a343ede39c5f1572b8d (diff) | |
Translator: --fma exact, a single-rounded f32 FMA without VK_KHR_shader_fma (SHADER-497)
Diffstat (limited to 'scripts/run_gpu_tests.py')
| -rw-r--r-- | scripts/run_gpu_tests.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index 94de20f26..4d7e2fbc2 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -747,7 +747,7 @@ def run_suite(a, work: str) -> int: | |||
| 747 | cmd.append("--mesh-compute") | 747 | cmd.append("--mesh-compute") |
| 748 | if pc_tail_ubo(): # 128 push-constant bytes; heap base and code base from a uniform block at set 1 | 748 | if pc_tail_ubo(): # 128 push-constant bytes; heap base and code base from a uniform block at set 1 |
| 749 | cmd.append("--pc-tail-ubo") | 749 | cmd.append("--pc-tail-ubo") |
| 750 | if os.environ.get("LEONIDA_FMA") in ("glsl", "khr"): # fused multiply-add: GLSL Fma or OpFmaKHR (docs/design.md) | 750 | if os.environ.get("LEONIDA_FMA") in ("glsl", "khr", "exact"): # GLSL Fma, OpFmaKHR or emulated (docs/design.md) |
| 751 | cmd += ["--fma", os.environ["LEONIDA_FMA"]] | 751 | cmd += ["--fma", os.environ["LEONIDA_FMA"]] |
| 752 | rc, out = run_cmd(cmd, gpu=False) | 752 | rc, out = run_cmd(cmd, gpu=False) |
| 753 | print("=== rdna2spirv.py ===") | 753 | print("=== rdna2spirv.py ===") |
| @@ -938,7 +938,8 @@ def run_suite(a, work: str) -> int: | |||
| 938 | results.append((name, False, msg)) | 938 | results.append((name, False, msg)) |
| 939 | else: | 939 | else: |
| 940 | khr = os.environ.get("LEONIDA_FMA") == "khr" | 940 | khr = os.environ.get("LEONIDA_FMA") == "khr" |
| 941 | ok, detail = judge_fma_fused(dump_words(msg), khr=khr) | 941 | exact = os.environ.get("LEONIDA_FMA") == "exact" # SHADER-497: as strict as khr |
| 942 | ok, detail = judge_fma_fused(dump_words(msg), khr=khr, exact=exact) | ||
| 942 | results.append((name, ok, detail)) | 943 | results.append((name, ok, detail)) |
| 943 | elif name == "cs_wavemask": | 944 | elif name == "cs_wavemask": |
| 944 | # Whole-wave mask test, as in check.py: needs a 64-wide subgroup, skipped where the device has none. | 945 | # Whole-wave mask test, as in check.py: needs a 64-wide subgroup, skipped where the device has none. |