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:
Diffstat (limited to 'docs/testing.md')
-rw-r--r--docs/testing.md16
1 files changed, 0 insertions, 16 deletions
diff --git a/docs/testing.md b/docs/testing.md
index fc695d014..d661916bb 100644
--- a/docs/testing.md
+++ b/docs/testing.md
@@ -241,22 +241,6 @@ Each line prints `ok`, a `SKIP` with its reason, or what differed. To add a fixt
2413. Add it to `EXPECT` in `tests/test_wave64_halves_fixtures.py` with the tier, reasons and idioms the translator 2413. Add it to `EXPECT` in `tests/test_wave64_halves_fixtures.py` with the tier, reasons and idioms the translator
242 should give it, and run `python -m pytest tests/test_wave64_halves_fixtures.py`. 242 should give it, and run `python -m pytest tests/test_wave64_halves_fixtures.py`.
2434. Run `w64_graphics.py` on a RADV GPU and say which GPU and Mesa version in the pull request. 2434. Run `w64_graphics.py` on a RADV GPU and say which GPU and Mesa version in the pull request.
244## GPUs with 128 bytes of push constants (AMD RDNA2 iGPUs on Windows, some Intel Arc drivers)
245
246The translated shaders take 144 bytes of push constants: s0..s31, then the heap base and the code base. A device whose
247`maxPushConstantsSize` is 128, Vulkan's minimum, can't take that, so the texture tests and every test drawn through
248`vk_harness` skip there (`unsupported: need 144 push constant bytes, device has 128`); `vulkaninfo` shows the limit.
249AMD's Windows driver reports 128 on RDNA2 iGPUs (Radeon 680M, 610M, the Ryzen 7000 iGPU); RADV reports more on the
250same chips.
251
252To run them anyway, set `LEONIDA_PC_TAIL_UBO=1` **for both `build.py` and `check.py`** (or for
253`run_gpu_tests.py`). The shaders are then translated with `--pc-tail-ubo`: s0..s31 stay in 128 push-constant bytes,
254and the heap base and code base move to a uniform block at set 1 (`docs/design.md`, "Push-constant tail as a uniform
255block"), which `vk_compute_test`, `vk_store_test`, `vk_harness`, `vk_texture_test`, `vk_sampler_test` and
256`vk_bindless_test` bind (`runtime/test/vk_pc_tail.h`). If you set it
257only for `check.py`, the shaders read the tail from push constants the programs no longer declare. `--mesh-compute`
258(`LEONIDA_MESH_COMPUTE=1`) isn't combined with it yet: its vertex shader still reads the output address from push
259constants, so those tests skip.
260 244
261## GPUs with 128 bytes of push constants (AMD RDNA2 iGPUs on Windows, some Intel Arc drivers) 245## GPUs with 128 bytes of push constants (AMD RDNA2 iGPUs on Windows, some Intel Arc drivers)
262 246