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:
authorMoonEyes <ducoinbenjamin@yahoo.fr>2026-11-28 19:26:54 +0100
committerGitHub <noreply@github.com>2026-11-28 19:26:54 +0100
commitd57b78a9cdf64ca3d105c612824c17ede466a3d3 (patch)
tree08f94f59219a80bd9c06cdb380972aa82d673fba /docs/testing.md
parente2560ed6d597cef080ec7abef87d2847d31afb0a (diff)
parentfbbf6abeeb3888621c402890e282058fe6ccb552 (diff)
Merge pull request #1595 from GTAVIB4GTAVI/docs/testing-fma-dedup
docs/testing: one copy of the fused multiply-add section (DOC-TESTING-FMA-DEDUP)
Diffstat (limited to 'docs/testing.md')
-rw-r--r--docs/testing.md29
1 files changed, 8 insertions, 21 deletions
diff --git a/docs/testing.md b/docs/testing.md
index 0e4d0611f..43513b312 100644
--- a/docs/testing.md
+++ b/docs/testing.md
@@ -805,36 +805,23 @@ with `LEONIDA_FMA=khr` **for `build.py`** (or for `run_gpu_tests.py`), which emi
805That needs `VK_KHR_shader_fma` with `shaderFmaFloat32`; the test programs enable it when the device has it and exit 805That needs `VK_KHR_shader_fma` with `shaderFmaFloat32`; the test programs enable it when the device has it and exit
80677 (a SKIP) for a module that needs it on a device without it. The Vulkan specification allows a driver to split GLSL 80677 (a SKIP) for a module that needs it on a device without it. The Vulkan specification allows a driver to split GLSL
807`Fma` into two roundings, which is why `khr` exists: on AMD Windows (26.11.2) and NVIDIA (617.42) GLSL `Fma` stayed 807`Fma` into two roundings, which is why `khr` exists: on AMD Windows (26.11.2) and NVIDIA (617.42) GLSL `Fma` stayed
808fused, whereas **Mesa RADV (26.2.6-arch3.1, AMD Radeon RX 6800, Linux)** splits 5 of the 7 f32 ops under `--fma glsl`
809(reusing the live `a * a` product in `v3`) and returns 8/8 fused exact under `LEONIDA_FMA=khr`. Under default
810`--fma glsl`, `check.py` and `run_gpu_tests.py` therefore accept either the fused or the exact split word for each of
811fused, whereas **Mesa RADV (Linux)** splits several of the 7 f32 ops under `--fma glsl` — the exact split count varies 808fused, whereas **Mesa RADV (Linux)** splits several of the 7 f32 ops under `--fma glsl` — the exact split count varies
812by GPU, Mesa/ACO version, and execution modes (4 of 7 on RX 6800 / Mesa 26.2.6-arch3.1 and RX 7600 / Mesa 27.0.0-devel 809by GPU, Mesa/ACO version, and execution modes (4 of 7 on RX 6800 / Mesa 26.2.6-arch3.1 and RX 7600 / Mesa 27.0.0-devel
813with `SignedZeroInfNanPreserve 32`, 5 of 7 on RX 6800 before float controls, 7 of 7 on Radeon Pro V540 RDNA1 / Mesa 810with `SignedZeroInfNanPreserve 32`, 5 of 7 on RX 6800 before float controls, 7 of 7 on Radeon Pro V540 RDNA1 / Mesa
81425.2.8) — while returning 8/8 fused exact under `LEONIDA_FMA=khr` where supported. Under default `--fma glsl`, 81125.2.8) — while returning 8/8 fused exact under `LEONIDA_FMA=khr` where supported. Under default `--fma glsl`,
815`check.py` and `run_gpu_tests.py` therefore accept either the fused or the exact split word independently for each of 812`check.py` and `run_gpu_tests.py` therefore accept either the fused or the exact split word independently for each of
816the 7 f32 outputs while still requiring exact f16 round-to-odd (`0x00007351`); under `LEONIDA_FMA=khr`, all 8 words 813the 7 f32 outputs while still requiring exact f16 round-to-odd (`0x00007351`); under `LEONIDA_FMA=khr`, all 8 words
817must be strictly fused. 814must be strictly fused. Two drivers give the split value in words 0, 2, 3 and 5 (`v_fma_f32`, `v_fmaak_f32`,
818operands taken from user SGPRs so the driver cannot fold them. It passes with the default translation (`--fma glsl`, 815`v_fmac_f32`):
819GLSL.std.450 `Fma`) on a driver that keeps `Fma` fused, and with `LEONIDA_FMA=khr` **for `build.py`** (or for
820`run_gpu_tests.py`), which emits `OpFmaKHR`. That needs `VK_KHR_shader_fma` with `shaderFmaFloat32`; the test programs
821enable it when the device has it and exit 77 (a SKIP) for a module that needs it on a device without it. The Vulkan
822specification allows a driver to split GLSL `Fma` into two roundings, which is why `khr` exists. The AMD Windows
823(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
824(`v_fma_f32`, `v_fmaak_f32`, `v_fmac_f32`), which get the split value:
825 816
826- 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 817- 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
827 `khr` fixes it, and so does `exact`. 818 `khr` fixes it, and so does `exact`.
828- The Intel UHD Graphics driver (Xe-LP, Windows 101.7088). It has no `VK_KHR_shader_fma`, so only `exact` fixes it. 819- The Intel UHD Graphics driver (Xe-LP, Windows 101.7088). It has no `VK_KHR_shader_fma`, so `khr` can't be used
829 820 there and only `exact` fixes it.
830`LEONIDA_FMA=exact` (`--fma exact`) builds the single rounding from plain f32 operations and needs no extension; with 821
831it `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 822`LEONIDA_FMA=exact` (`--fma exact`) builds the single rounding from plain f32 operations and needs no extension; under
832(621.24) and a Radeon 780M (26.11.2). 823it, as under `khr`, all 8 words must be strictly fused, and they are on both of those, on an RTX 3050 Laptop (617.42),
833Intel UHD Graphics (Xe-LP, Windows 101.7088) splits it too, words 0, 2, 3 and 5 (`v_fma_f32`, `v_fmaak_f32`, 824an RTX 5060 Laptop (621.01), an RTX 5070 Ti (621.24) and a Radeon 780M (26.11.2).
834`v_fmac_f32`), and has no `VK_KHR_shader_fma`, so `khr` can't be used there. For such a device,
835`LEONIDA_FMA=exact` (`--fma exact`) builds the single rounding from plain f32 operations and needs no extension;
836under it, as under `khr`, all 8 words must be strictly fused, and they are on that Intel UHD and on an RTX 3050
837Laptop (617.42).
838 825
839## Hardware oracle (optional, AMD) 826## Hardware oracle (optional, AMD)
840 827