diff options
| author | quartz-heron-58 <245169279+quartz-heron-58@users.noreply.github.com> | 2026-11-27 11:29:22 +0800 |
|---|---|---|
| committer | quartz-heron-58 <245169279+quartz-heron-58@users.noreply.github.com> | 2026-11-27 11:29:22 +0800 |
| commit | fbceecf04241aaea01c386f09cb86b1dccb279c6 (patch) | |
| tree | e4051eda011373e32889432a93f2e3130dea81bf /docs/testing.md | |
| parent | e954dc8c160849b643f3b74aff9115b94336cd9a (diff) | |
mesh-serial-waves: unit tests, the design row, the GPU runner's switch
tests/test_mesh_serial_waves.py: the module shape of a program that
qualifies (64 invocations, the pass loop, the index from the built-in,
the exchange's own place, per-pass copies of the exports, one
OpSetMeshOutputsEXT), that every initialised Function variable is set
again per pass, and that ms_wave_info_s3 (LDS), a 32-thread program,
native wave64 and --mesh-compute are unchanged by the flag.
LEONIDA_MESH_SERIAL_WAVES=1 is read by scripts/run_gpu_tests.py, like the
other translation switches, and no longer by rdna2spirv.py itself.
docs/design.md and docs/testing.md say what the flag does and how it is
tested; conftest gives ms_w64x_wave_votes its 128-vertex PSV0.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'docs/testing.md')
| -rw-r--r-- | docs/testing.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/testing.md b/docs/testing.md index 671c5548c..4d4e450a4 100644 --- a/docs/testing.md +++ b/docs/testing.md | |||
| @@ -574,6 +574,13 @@ only for `check.py`, the shaders read the tail from push constants the programs | |||
| 574 | (`LEONIDA_MESH_COMPUTE=1`) isn't combined with it yet: its vertex shader still reads the output address from push | 574 | (`LEONIDA_MESH_COMPUTE=1`) isn't combined with it yet: its vertex shader still reads the output address from push |
| 575 | constants, so those tests skip. | 575 | constants, so those tests skip. |
| 576 | 576 | ||
| 577 | ## Mesh shaders with their waves in series | ||
| 578 | |||
| 579 | `LEONIDA_MESH_SERIAL_WAVES=1` for `run_gpu_tests.py`, together with `LEONIDA_W64_EMULATE=1`, translates the mesh | ||
| 580 | shaders with `--mesh-serial-waves` (`docs/design.md`, "Mesh shaders with their waves in series"): the ones that | ||
| 581 | qualify run one pass per wave in 64 invocations. The `ms_*` tests must pass with and without it; | ||
| 582 | `ms_w64x_wave_votes` is the one whose two waves take different branches and both give the triangle a vertex. | ||
| 583 | |||
| 577 | ## GPUs without mesh shaders (NVIDIA Pascal and older) | 584 | ## GPUs without mesh shaders (NVIDIA Pascal and older) |
| 578 | 585 | ||
| 579 | Without `VK_EXT_mesh_shader`, the `ms_*` tests are skipped; that's expected, not a failure. To test the path that | 586 | Without `VK_EXT_mesh_shader`, the `ms_*` tests are skipped; that's expected, not a failure. To test the path that |