diff options
Diffstat (limited to 'docs/testing.md')
| -rw-r--r-- | docs/testing.md | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/docs/testing.md b/docs/testing.md index 40ae7cb4a..d62a0cf99 100644 --- a/docs/testing.md +++ b/docs/testing.md | |||
| @@ -681,6 +681,7 @@ constants, so those tests skip. | |||
| 681 | shaders with `--mesh-serial-waves` (`docs/design.md`, "Mesh shaders with their waves in series"): the ones that | 681 | shaders with `--mesh-serial-waves` (`docs/design.md`, "Mesh shaders with their waves in series"): the ones that |
| 682 | qualify run one pass per wave in 64 invocations. The `ms_*` tests must pass with and without it; | 682 | qualify run one pass per wave in 64 invocations. The `ms_*` tests must pass with and without it; |
| 683 | `ms_w64x_wave_votes` is the one whose two waves take different branches and both give the triangle a vertex. `ms_w64x_wave_loops` is the one whose two waves run a loop of different length (5 and 9 iterations), each iteration reading a wave-wide count, so under emulation the waves reach different numbers of barriers. | 683 | `ms_w64x_wave_votes` is the one whose two waves take different branches and both give the triangle a vertex. `ms_w64x_wave_loops` is the one whose two waves run a loop of different length (5 and 9 iterations), each iteration reading a wave-wide count, so under emulation the waves reach different numbers of barriers. |
| 684 | With `LEONIDA_MESH_COMPUTE=1` as well (below), the same tests run the passes in the `--mesh-compute` form. | ||
| 684 | 685 | ||
| 685 | ## GPUs without mesh shaders (NVIDIA Pascal and older) | 686 | ## GPUs without mesh shaders (NVIDIA Pascal and older) |
| 686 | 687 | ||
| @@ -756,8 +757,9 @@ fallback"), so the device needs geometry shaders instead. | |||
| 756 | 757 | ||
| 757 | `ps_interp_f16_high` and `ms_f16_pack` read 16-bit interpolants as `PerVertexKHR` inputs, which need the extension | 758 | `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 | 759 | 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 | 760 | 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. | 761 | and `check.py` turn that on by themselves where the device lacks the extension. Under the bary fallback without it |
| 762 | they skip. | ||
| 761 | 763 | ||
| 762 | Intel Arc with Mesa ANV currently advertises the native barycentric feature but has a driver bug where translated | 764 | 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 | 765 | pixel shaders can read `BaryCoordKHR.i` as zero (SHADER-925). `make_game.py` detects ANV and automatically translates |
| @@ -788,8 +790,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 | 790 | 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 | 791 | `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 | 792 | `--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 | 793 | (`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 | 794 | so the two-step form translates and judges the shaders the same way: `ps_interp_f16_high` passes and `ps_ij_computed`, |
| 795 | whose computed I/J pair needs those inputs, is left out and reported as `SKIP`. `LEONIDA_F16_INTERP_FALLBACK=1` or `0` | ||
| 796 | 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`. | 797 | on a Mac with `LEONIDA_MESH_COMPUTE=1 LEONIDA_W64_EMULATE=1`. |
| 794 | 798 | ||
| 795 | ## GPUs without VK_KHR_maintenance8 (NVIDIA Pascal and older) | 799 | ## GPUs without VK_KHR_maintenance8 (NVIDIA Pascal and older) |