upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/testing.md
diff options
context:
space:
mode:
authorClaude <noreply@anthropic.com>2026-11-29 09:49:45 +0000
committerClaude <noreply@anthropic.com>2026-11-29 09:49:45 +0000
commitf58143876eea19e0719d51564e44b0f45dec4dbc (patch)
tree9c6b496931bcffcc750ad5aab0a078832c089b97 /docs/testing.md
parent3c108a33959e82a143f7a6c055f0c20f876c9842 (diff)
parent5844b64813cd97d1262f584155cc3f76c3e584ae (diff)
Merge ProjectLeonida/mandy main into claude/d3d-bundle-execute-indirect-37f83c
Diffstat (limited to 'docs/testing.md')
-rw-r--r--docs/testing.md12
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.
681shaders with `--mesh-serial-waves` (`docs/design.md`, "Mesh shaders with their waves in series"): the ones that 681shaders with `--mesh-serial-waves` (`docs/design.md`, "Mesh shaders with their waves in series"): the ones that
682qualify run one pass per wave in 64 invocations. The `ms_*` tests must pass with and without it; 682qualify 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.
684With `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
758too and which `--bary-fallback` can't express. With `LEONIDA_F16_INTERP_FALLBACK=1` they read halves the producer 759too and which `--bary-fallback` can't express. With `LEONIDA_F16_INTERP_FALLBACK=1` they read halves the producer
759exports decoded instead (see Macs, below) and run with or without the bary fallback; `run_gpu_tests.py` turns that 760exports decoded instead (see Macs, below) and run with or without the bary fallback; `run_gpu_tests.py`, `build.py`
760on by itself where the device lacks the extension. Under the bary fallback without it they skip. 761and `check.py` turn that on by themselves where the device lacks the extension. Under the bary fallback without it
762they skip.
761 763
762Intel Arc with Mesa ANV currently advertises the native barycentric feature but has a driver bug where translated 764Intel Arc with Mesa ANV currently advertises the native barycentric feature but has a driver bug where translated
763pixel shaders can read `BaryCoordKHR.i` as zero (SHADER-925). `make_game.py` detects ANV and automatically translates 765pixel 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
788MoltenVK can't convert to Metal ("PerVertexKHR decoration is not supported in MSL"). `run_gpu_tests.py` asks 790MoltenVK 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,
792on or off; `build.py` (for `check.py`) translates with the flag only when that variable is `1`. `ms_f16_pack` also runs 794so the two-step form translates and judges the shaders the same way: `ps_interp_f16_high` passes and `ps_ij_computed`,
795whose computed I/J pair needs those inputs, is left out and reported as `SKIP`. `LEONIDA_F16_INTERP_FALLBACK=1` or `0`
796forces the fallback on or off in all three; set it for `build.py` and `check.py` alike. `ms_f16_pack` also runs
793on a Mac with `LEONIDA_MESH_COMPUTE=1 LEONIDA_W64_EMULATE=1`. 797on 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)