upleb.uk

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

summaryrefslogtreecommitdiff
path: root/docs/testing.md
diff options
context:
space:
mode:
authorItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 15:09:42 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 15:09:42 -0500
commitc4eaab94c9cd99370ed6ecf5f85ce94d20b011ad (patch)
treedb23abcc23aead80b0376ba5650fef839c4a088e /docs/testing.md
parent94a6cba5e7f913c4ae6bd5b8ac4786d962340977 (diff)
parent2426df3d5ed7bf419f8abfcbdd2a94bae9e1ae8f (diff)
Merge pull request #1518 from Henrique Vinagre
Diffstat (limited to 'docs/testing.md')
-rw-r--r--docs/testing.md12
1 files changed, 8 insertions, 4 deletions
diff --git a/docs/testing.md b/docs/testing.md
index 86e0ed328..8ae573866 100644
--- a/docs/testing.md
+++ b/docs/testing.md
@@ -294,12 +294,16 @@ without it they're skipped, which is expected, not a failure. To test the fallba
294## Fused multiply-add: GLSL Fma or OpFmaKHR 294## Fused multiply-add: GLSL Fma or OpFmaKHR
295 295
296`cs_fma_fused` checks that `v_fma_f32`, `v_fmac_f32`, `v_fmaak_f32`, `v_fmamk_f32` (and one `v_fma_f16`) round once, on 296`cs_fma_fused` checks that `v_fma_f32`, `v_fmac_f32`, `v_fmaak_f32`, `v_fmamk_f32` (and one `v_fma_f16`) round once, on
297operands taken from user SGPRs so the driver cannot fold them. It passes with the default translation (`--fma glsl`, 297operands taken from user SGPRs so the driver cannot fold them. Run it with default `--fma glsl` (GLSL.std.450 `Fma`) or
298GLSL.std.450 `Fma`) and with `LEONIDA_FMA=khr` **for `build.py`** (or for `run_gpu_tests.py`), which emits `OpFmaKHR`. 298with `LEONIDA_FMA=khr` **for `build.py`** (or for `run_gpu_tests.py`), which emits `OpFmaKHR`.
299That needs `VK_KHR_shader_fma` with `shaderFmaFloat32`; the test programs enable it when the device has it and exit 299That needs `VK_KHR_shader_fma` with `shaderFmaFloat32`; the test programs enable it when the device has it and exit
30077 (a SKIP) for a module that needs it on a device without it. The Vulkan specification allows a driver to split GLSL 30077 (a SKIP) for a module that needs it on a device without it. The Vulkan specification allows a driver to split GLSL
301`Fma` into two roundings, which is why `khr` exists. Neither the AMD (26.11.2) nor the NVIDIA (617.42) driver we tried 301`Fma` into two roundings, which is why `khr` exists: on AMD Windows (26.11.2) and NVIDIA (617.42) GLSL `Fma` stayed
302does, so `cs_fma_fused` passing with `glsl` is not evidence that every driver is safe. 302fused, whereas **Mesa RADV (26.2.6-arch3.1, AMD Radeon RX 6800, Linux)** splits 5 of the 7 f32 ops under `--fma glsl`
303(reusing the live `a * a` product in `v3`) and returns 8/8 fused exact under `LEONIDA_FMA=khr`. Under default
304`--fma glsl`, `check.py` and `run_gpu_tests.py` therefore accept either the fused or the exact split word for each of
305the 7 f32 outputs while still requiring exact f16 round-to-odd (`0x00007351`); under `LEONIDA_FMA=khr`, all 8 words
306must be strictly fused.
303 307
304## Hardware oracle (optional, AMD) 308## Hardware oracle (optional, AMD)
305 309