diff options
| author | hugo <63666848+hugo0024@users.noreply.github.com> | 2026-11-24 22:12:21 +0800 |
|---|---|---|
| committer | hugo <63666848+hugo0024@users.noreply.github.com> | 2026-11-28 12:44:46 +0800 |
| commit | 6064cbbb49b3fddaa44608a984ac06b44f511fa6 (patch) | |
| tree | a7ebf3d8d4f1cf212fdd5321b95a13215f0e5ab7 /docs/testing.md | |
| parent | ef8fbf09f3ba00460e1c08102b096b76702a70b6 (diff) | |
tests: build.py and check.py pick the f16 interpolation fallback from the device (TEST-CHECK-F16-FALLBACK)
run_gpu_tests.py and make_game.py translate with --f16-interp-fallback by
themselves where tools/vk_subgroup_info.py reports per_vertex_inputs
false (MoltenVK). build.py and check.py only did so with
LEONIDA_F16_INTERP_FALLBACK=1, so the two-step form on a Mac built
ps_ij_computed and ps_interp_f16_high for PerVertexKHR inputs and
check.py reported both as failed.
Both scripts now ask the device when the variable is unset, the way they
already do for the barycentric fallback, and take 1/0 (true/false, yes/no,
on/off) as run_gpu_tests.py does. On an Apple M5 (MoltenVK 1.4.2) check.py
goes from 175 of 220 pass, 39 skipped, 6 failed to 176 pass, 40 skipped,
4 failed: ps_interp_f16_high passes and ps_ij_computed is a SKIP.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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 62f5ced44..1647a85a9 100644 --- a/docs/testing.md +++ b/docs/testing.md | |||
| @@ -655,8 +655,9 @@ fallback"), so the device needs geometry shaders instead. | |||
| 655 | 655 | ||
| 656 | `ps_interp_f16_high` and `ms_f16_pack` read 16-bit interpolants as `PerVertexKHR` inputs, which need the extension | 656 | `ps_interp_f16_high` and `ms_f16_pack` read 16-bit interpolants as `PerVertexKHR` inputs, which need the extension |
| 657 | too and which `--bary-fallback` can't express. With `LEONIDA_F16_INTERP_FALLBACK=1` they read halves the producer | 657 | too and which `--bary-fallback` can't express. With `LEONIDA_F16_INTERP_FALLBACK=1` they read halves the producer |
| 658 | exports decoded instead (see Macs, below) and run with or without the bary fallback; `run_gpu_tests.py` turns that | 658 | exports decoded instead (see Macs, below) and run with or without the bary fallback; `run_gpu_tests.py`, `build.py` |
| 659 | on by itself where the device lacks the extension. Under the bary fallback without it they skip. | 659 | and `check.py` turn that on by themselves where the device lacks the extension. Under the bary fallback without it |
| 660 | they skip. | ||
| 660 | 661 | ||
| 661 | Intel Arc with Mesa ANV currently advertises the native barycentric feature but has a driver bug where translated | 662 | Intel Arc with Mesa ANV currently advertises the native barycentric feature but has a driver bug where translated |
| 662 | pixel shaders can read `BaryCoordKHR.i` as zero (SHADER-925). `make_game.py` detects ANV and automatically translates | 663 | pixel shaders can read `BaryCoordKHR.i` as zero (SHADER-925). `make_game.py` detects ANV and automatically translates |
| @@ -682,8 +683,10 @@ are not covered: none has been measured. | |||
| 682 | MoltenVK can't convert to Metal ("PerVertexKHR decoration is not supported in MSL"). `run_gpu_tests.py` asks | 683 | MoltenVK can't convert to Metal ("PerVertexKHR decoration is not supported in MSL"). `run_gpu_tests.py` asks |
| 683 | `tools/vk_subgroup_info.py` whether the device can take them and, on MoltenVK, translates with | 684 | `tools/vk_subgroup_info.py` whether the device can take them and, on MoltenVK, translates with |
| 684 | `--f16-interp-fallback` by itself: the vertex or mesh shader then also exports the decoded f16 halves | 685 | `--f16-interp-fallback` by itself: the vertex or mesh shader then also exports the decoded f16 halves |
| 685 | (`docs/design.md`, "16-bit interpolation without `PerVertexKHR`"). `LEONIDA_F16_INTERP_FALLBACK=1` or `0` forces it | 686 | (`docs/design.md`, "16-bit interpolation without `PerVertexKHR`"). `build.py` and `check.py` ask the same question, |
| 686 | on or off; `build.py` (for `check.py`) translates with the flag only when that variable is `1`. `ms_f16_pack` also runs | 687 | so the two-step form translates and judges the shaders the same way: `ps_interp_f16_high` passes and `ps_ij_computed`, |
| 688 | whose computed I/J pair needs those inputs, is left out and reported as `SKIP`. `LEONIDA_F16_INTERP_FALLBACK=1` or `0` | ||
| 689 | forces the fallback on or off in all three; set it for `build.py` and `check.py` alike. `ms_f16_pack` also runs | ||
| 687 | on a Mac with `LEONIDA_MESH_COMPUTE=1 LEONIDA_W64_EMULATE=1`. | 690 | on a Mac with `LEONIDA_MESH_COMPUTE=1 LEONIDA_W64_EMULATE=1`. |
| 688 | 691 | ||
| 689 | ## GPUs without VK_KHR_maintenance8 (NVIDIA Pascal and older) | 692 | ## GPUs without VK_KHR_maintenance8 (NVIDIA Pascal and older) |