diff options
| author | Moaaz Gewili <ai4221386@deltauniv.edu.eg> | 2026-11-22 21:45:19 +0200 |
|---|---|---|
| committer | Moaaz Gewili <ai4221386@deltauniv.edu.eg> | 2026-11-22 22:07:34 +0200 |
| commit | d3e09d12f29513b96f292b5ea809e1868787f5a7 (patch) | |
| tree | eabba1ccb0e1ed17688efd76c0569a849da6761b /docs/testing.md | |
| parent | 04c99b0825ac2da39fa37d560209913c06746dcc (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.md | 22 |
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 |
| 297 | operands taken from user SGPRs so the driver cannot fold them. It passes with the default translation (`--fma glsl`, | 297 | operands taken from user SGPRs so the driver cannot fold them. It passes with the default translation (`--fma glsl`, |
| 298 | GLSL.std.450 `Fma`) and with `LEONIDA_FMA=khr` **for `build.py`** (or for `run_gpu_tests.py`), which emits `OpFmaKHR`. | 298 | GLSL.std.450 `Fma`) on a driver that keeps `Fma` fused, and with `LEONIDA_FMA=khr` **for `build.py`** (or for |
| 299 | That 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 |
| 300 | 77 (a SKIP) for a module that needs it on a device without it. The Vulkan specification allows a driver to split GLSL | 300 | enable 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, | 301 | specification allows a driver to split GLSL `Fma` into two roundings, which is why `khr` exists. The AMD Windows |
| 302 | but 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 |
| 303 | and 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: |
| 304 | For such a device, `LEONIDA_FMA=exact` (`--fma exact`) builds the single rounding from plain f32 operations and | 304 | |
| 305 | needs 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 | ||
| 310 | it `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 | ||