diff options
| author | MoonEyes <ducoinbenjamin@yahoo.fr> | 2026-11-28 22:51:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-28 22:51:43 +0100 |
| commit | f84e071dc3439f10c10c759a3a60db094d98c778 (patch) | |
| tree | 923b4fc5a269b88deac1b0bf2c5c3b140244e248 /docs/testing.md | |
| parent | a8465211fb882e8c38cc0a39760bb8014d927289 (diff) | |
| parent | 6064cbbb49b3fddaa44608a984ac06b44f511fa6 (diff) | |
Merge pull request #822 from hugo0024/check-f16-fallback
tests: build.py and check.py pick the f16 interpolation fallback from the device (TEST-CHECK-F16-FALLBACK)
Diffstat (limited to 'docs/testing.md')
| -rw-r--r-- | docs/testing.md | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/docs/testing.md b/docs/testing.md index 40ae7cb4a..b67db6dda 100644 --- a/docs/testing.md +++ b/docs/testing.md | |||
| @@ -756,8 +756,9 @@ fallback"), so the device needs geometry shaders instead. | |||
| 756 | 756 | ||
| 757 | `ps_interp_f16_high` and `ms_f16_pack` read 16-bit interpolants as `PerVertexKHR` inputs, which need the extension | 757 | `ps_interp_f16_high` and `ms_f16_pack` read 16-bit interpolants as `PerVertexKHR` inputs, which need the extension |
| 758 | too and which `--bary-fallback` can't express. With `LEONIDA_F16_INTERP_FALLBACK=1` they read halves the producer | 758 | too and which `--bary-fallback` can't express. With `LEONIDA_F16_INTERP_FALLBACK=1` they read halves the producer |
| 759 | exports decoded instead (see Macs, below) and run with or without the bary fallback; `run_gpu_tests.py` turns that | 759 | exports decoded instead (see Macs, below) and run with or without the bary fallback; `run_gpu_tests.py`, `build.py` |
| 760 | on by itself where the device lacks the extension. Under the bary fallback without it they skip. | 760 | and `check.py` turn that on by themselves where the device lacks the extension. Under the bary fallback without it |
| 761 | they skip. | ||
| 761 | 762 | ||
| 762 | Intel Arc with Mesa ANV currently advertises the native barycentric feature but has a driver bug where translated | 763 | Intel Arc with Mesa ANV currently advertises the native barycentric feature but has a driver bug where translated |
| 763 | pixel shaders can read `BaryCoordKHR.i` as zero (SHADER-925). `make_game.py` detects ANV and automatically translates | 764 | pixel shaders can read `BaryCoordKHR.i` as zero (SHADER-925). `make_game.py` detects ANV and automatically translates |
| @@ -788,8 +789,10 @@ driverVersion 2.0.283; newer drivers keep native barycentrics, and `LEONIDA_BARY | |||
| 788 | MoltenVK can't convert to Metal ("PerVertexKHR decoration is not supported in MSL"). `run_gpu_tests.py` asks | 789 | MoltenVK can't convert to Metal ("PerVertexKHR decoration is not supported in MSL"). `run_gpu_tests.py` asks |
| 789 | `tools/vk_subgroup_info.py` whether the device can take them and, on MoltenVK, translates with | 790 | `tools/vk_subgroup_info.py` whether the device can take them and, on MoltenVK, translates with |
| 790 | `--f16-interp-fallback` by itself: the vertex or mesh shader then also exports the decoded f16 halves | 791 | `--f16-interp-fallback` by itself: the vertex or mesh shader then also exports the decoded f16 halves |
| 791 | (`docs/design.md`, "16-bit interpolation without `PerVertexKHR`"). `LEONIDA_F16_INTERP_FALLBACK=1` or `0` forces it | 792 | (`docs/design.md`, "16-bit interpolation without `PerVertexKHR`"). `build.py` and `check.py` ask the same question, |
| 792 | on or off; `build.py` (for `check.py`) translates with the flag only when that variable is `1`. `ms_f16_pack` also runs | 793 | so the two-step form translates and judges the shaders the same way: `ps_interp_f16_high` passes and `ps_ij_computed`, |
| 794 | whose computed I/J pair needs those inputs, is left out and reported as `SKIP`. `LEONIDA_F16_INTERP_FALLBACK=1` or `0` | ||
| 795 | forces the fallback on or off in all three; set it for `build.py` and `check.py` alike. `ms_f16_pack` also runs | ||
| 793 | on a Mac with `LEONIDA_MESH_COMPUTE=1 LEONIDA_W64_EMULATE=1`. | 796 | on a Mac with `LEONIDA_MESH_COMPUTE=1 LEONIDA_W64_EMULATE=1`. |
| 794 | 797 | ||
| 795 | ## GPUs without VK_KHR_maintenance8 (NVIDIA Pascal and older) | 798 | ## GPUs without VK_KHR_maintenance8 (NVIDIA Pascal and older) |