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:
authorMoaaz Gewili <ai4221386@deltauniv.edu.eg>2026-11-22 21:45:19 +0200
committerMoaaz Gewili <ai4221386@deltauniv.edu.eg>2026-11-22 22:07:34 +0200
commitd3e09d12f29513b96f292b5ea809e1868787f5a7 (patch)
treeeabba1ccb0e1ed17688efd76c0569a849da6761b /docs/testing.md
parent04c99b0825ac2da39fa37d560209913c06746dcc (diff)
docs: RADV splits GLSL Fma too (measured in #3004's review); khr or exact fix it there
Diffstat (limited to 'docs/testing.md')
-rw-r--r--docs/testing.md22
1 files changed, 14 insertions, 8 deletions
diff --git a/docs/testing.md b/docs/testing.md
index da8b51f7a..0e9a0edca 100644
--- a/docs/testing.md
+++ b/docs/testing.md
@@ -295,14 +295,20 @@ without it they're skipped, which is expected, not a failure. To test the fallba
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. It passes with the default translation (`--fma glsl`,
298GLSL.std.450 `Fma`) and with `LEONIDA_FMA=khr` **for `build.py`** (or for `run_gpu_tests.py`), which emits `OpFmaKHR`. 298GLSL.std.450 `Fma`) on a driver that keeps `Fma` fused, and with `LEONIDA_FMA=khr` **for `build.py`** (or for
299That needs `VK_KHR_shader_fma` with `shaderFmaFloat32`; the test programs enable it when the device has it and exit 299`run_gpu_tests.py`), which emits `OpFmaKHR`. That needs `VK_KHR_shader_fma` with `shaderFmaFloat32`; the test programs
30077 (a SKIP) for a module that needs it on a device without it. The Vulkan specification allows a driver to split GLSL 300enable it when the device has it and exit 77 (a SKIP) for a module that needs it on a device without it. The Vulkan
301`Fma` into two roundings, which is why `khr` exists. The AMD (26.11.2) and NVIDIA (617.42) drivers we tried don't, 301specification allows a driver to split GLSL `Fma` into two roundings, which is why `khr` exists. The AMD Windows
302but the Intel UHD Graphics driver (Xe-LP, Windows 101.7088) does: `cs_fma_fused` fails there with `glsl`, words 0, 2, 3 302(26.11.2) and NVIDIA (617.42) drivers we tried don't. Two do, failing `cs_fma_fused` with `glsl` in words 0, 2, 3 and 5
303and 5 (`v_fma_f32`, `v_fmaak_f32`, `v_fmac_f32`) getting the split value, and the device has no `VK_KHR_shader_fma`. 303(`v_fma_f32`, `v_fmaak_f32`, `v_fmac_f32`), which get the split value:
304For such a device, `LEONIDA_FMA=exact` (`--fma exact`) builds the single rounding from plain f32 operations and 304
305needs no extension; with it `cs_fma_fused` passes on that Intel UHD and on an RTX 3050 Laptop (617.42). 305- RADV (Mesa 26.3.1, RX 6700 XT, measured in #3004's review). It has `VK_KHR_shader_fma` since Mesa 26.2 (#1364), so
306 `khr` fixes it, and so does `exact`.
307- The Intel UHD Graphics driver (Xe-LP, Windows 101.7088). It has no `VK_KHR_shader_fma`, so only `exact` fixes it.
308
309`LEONIDA_FMA=exact` (`--fma exact`) builds the single rounding from plain f32 operations and needs no extension; with
310it `cs_fma_fused` passes on both of those, on an RTX 3050 Laptop (617.42), an RTX 5060 Laptop (621.01), an RTX 5070 Ti
311(621.24) and a Radeon 780M (26.11.2).
306 312
307## Hardware oracle (optional, AMD) 313## Hardware oracle (optional, AMD)
308 314