diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 17:00:22 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 17:00:22 -0500 |
| commit | 8860b36ebf83f146ba13fe7e7fbb52cc45873ca9 (patch) | |
| tree | 79f05baf6464642bc0b56869f73cd139ba51c635 /docs/testing.md | |
| parent | 7016a8d88344b65ce8352734c09170a1bdf07c2d (diff) | |
| parent | 71c02e9392788188d9df98109f6e9d86b16c1a30 (diff) | |
Merge pull request #3004 from Moaaz Gewili
# Conflicts:
# docs/design.md
# docs/testing.md
Diffstat (limited to 'docs/testing.md')
| -rw-r--r-- | docs/testing.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/testing.md b/docs/testing.md index 3e73c5610..bb43c21ce 100644 --- a/docs/testing.md +++ b/docs/testing.md | |||
| @@ -376,6 +376,21 @@ with `SignedZeroInfNanPreserve 32`, 5 of 7 on RX 6800 before float controls, 7 o | |||
| 376 | `check.py` and `run_gpu_tests.py` therefore accept either the fused or the exact split word independently for each of | 376 | `check.py` and `run_gpu_tests.py` therefore accept either the fused or the exact split word independently for each of |
| 377 | the 7 f32 outputs while still requiring exact f16 round-to-odd (`0x00007351`); under `LEONIDA_FMA=khr`, all 8 words | 377 | the 7 f32 outputs while still requiring exact f16 round-to-odd (`0x00007351`); under `LEONIDA_FMA=khr`, all 8 words |
| 378 | must be strictly fused. | 378 | must be strictly fused. |
| 379 | operands taken from user SGPRs so the driver cannot fold them. It passes with the default translation (`--fma glsl`, | ||
| 380 | GLSL.std.450 `Fma`) on a driver that keeps `Fma` fused, and with `LEONIDA_FMA=khr` **for `build.py`** (or for | ||
| 381 | `run_gpu_tests.py`), which emits `OpFmaKHR`. That needs `VK_KHR_shader_fma` with `shaderFmaFloat32`; the test programs | ||
| 382 | 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 | ||
| 383 | specification allows a driver to split GLSL `Fma` into two roundings, which is why `khr` exists. The AMD Windows | ||
| 384 | (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 | ||
| 385 | (`v_fma_f32`, `v_fmaak_f32`, `v_fmac_f32`), which get the split value: | ||
| 386 | |||
| 387 | - 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 | ||
| 388 | `khr` fixes it, and so does `exact`. | ||
| 389 | - The Intel UHD Graphics driver (Xe-LP, Windows 101.7088). It has no `VK_KHR_shader_fma`, so only `exact` fixes it. | ||
| 390 | |||
| 391 | `LEONIDA_FMA=exact` (`--fma exact`) builds the single rounding from plain f32 operations and needs no extension; with | ||
| 392 | 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 | ||
| 393 | (621.24) and a Radeon 780M (26.11.2). | ||
| 379 | 394 | ||
| 380 | ## Hardware oracle (optional, AMD) | 395 | ## Hardware oracle (optional, AMD) |
| 381 | 396 | ||