diff options
| author | milk4sale <53350507+milk4sale@users.noreply.github.com> | 2026-11-24 16:31:07 -0600 |
|---|---|---|
| committer | milk4sale <53350507+milk4sale@users.noreply.github.com> | 2026-11-24 16:31:07 -0600 |
| commit | 2eb49b1a6fdbba711a5567613297a735503a6fcb (patch) | |
| tree | 91b6825c0aee378c77ff5da224e100d757bee556 /docs/testing.md | |
| parent | eba94cbe893de58b059a4ded35c498fea32a32d0 (diff) | |
| parent | 68d1331e5fe9bb4c9d02deabeb5905e55c23b7c8 (diff) | |
Merge main into gpu-test/frexp-ldexp
Brings the branch up to date with main 68d1331e5. No conflicts; the merged tree was tested before the push (every standalone
test file under tests/ passes except tests/test_ci_registration.py, which fails on main alone since #930).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'docs/testing.md')
| -rw-r--r-- | docs/testing.md | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/docs/testing.md b/docs/testing.md index 171a2ebd7..86ead44ee 100644 --- a/docs/testing.md +++ b/docs/testing.md | |||
| @@ -171,16 +171,6 @@ python -I runtime/test/shaders/build.py <out dir> | |||
| 171 | python -I runtime/test/shaders/check.py <out dir> <folder with the test programs> | 171 | python -I runtime/test/shaders/check.py <out dir> <folder with the test programs> |
| 172 | ``` | 172 | ``` |
| 173 | 173 | ||
| 174 | For the standalone `v_mullit_f32` readback, build the full-screen triangle and the | ||
| 175 | hand-written semantic fixture, then run 120 draws with runtime SGPR inputs. | ||
| 176 | The driver checks every pixel against an integer product rounded to 24 bits. | ||
| 177 | It reports the input words, pixel and channel on the first mismatch. | ||
| 178 | |||
| 179 | ```sh | ||
| 180 | python -I runtime/test/shaders/build.py <out-dir> vs_ids ps_mullit | ||
| 181 | python -I runtime/test/shaders/mullit_readback.py <out-dir> <harness-directory> | ||
| 182 | ``` | ||
| 183 | |||
| 184 | For D3D12/runtime tests, `LEONIDA_VK_VALIDATION=1` enables `VK_LAYER_KHRONOS_validation`. When running with validation, set `DISABLE_RTSS_LAYER=1` and `DISABLE_VULKAN_OBS_CAPTURE=1` if MSI Afterburner (RivaTuner) or OBS is installed: their overlay layers can add unsupported swapchain usage, and in an elevated (administrator) terminal the loader ignores `VK_LOADER_LAYERS_DISABLE=~implicit~` (see "Known problems"). | 174 | For D3D12/runtime tests, `LEONIDA_VK_VALIDATION=1` enables `VK_LAYER_KHRONOS_validation`. When running with validation, set `DISABLE_RTSS_LAYER=1` and `DISABLE_VULKAN_OBS_CAPTURE=1` if MSI Afterburner (RivaTuner) or OBS is installed: their overlay layers can add unsupported swapchain usage, and in an elevated (administrator) terminal the loader ignores `VK_LOADER_LAYERS_DISABLE=~implicit~` (see "Known problems"). |
| 185 | 175 | ||
| 186 | `vk_compute_test`, `vk_bindless_test` and `vk_image_fuzz` read `LEONIDA_VK_VALIDATION` too (`vk_compute_test` | 176 | `vk_compute_test`, `vk_bindless_test` and `vk_image_fuzz` read `LEONIDA_VK_VALIDATION` too (`vk_compute_test` |
| @@ -470,23 +460,6 @@ Each line prints `ok`, a `SKIP` with its reason, or what differed. To add a fixt | |||
| 470 | 3. Add it to `EXPECT` in `tests/test_wave64_halves_fixtures.py` with the tier, reasons and idioms the translator | 460 | 3. Add it to `EXPECT` in `tests/test_wave64_halves_fixtures.py` with the tier, reasons and idioms the translator |
| 471 | should give it, and run `python -m pytest tests/test_wave64_halves_fixtures.py`. | 461 | should give it, and run `python -m pytest tests/test_wave64_halves_fixtures.py`. |
| 472 | 4. Run `w64_graphics.py` on a RADV GPU and say which GPU and Mesa version in the pull request. | 462 | 4. Run `w64_graphics.py` on a RADV GPU and say which GPU and Mesa version in the pull request. |
| 473 | ## GPUs with 128 bytes of push constants (AMD RDNA2 iGPUs on Windows, some Intel Arc drivers) | ||
| 474 | |||
| 475 | The translated shaders take 144 bytes of push constants: s0..s31, then the heap base and the code base. A device whose | ||
| 476 | `maxPushConstantsSize` is 128, Vulkan's minimum, can't take that, so the texture tests and every test drawn through | ||
| 477 | `vk_harness` skip there (`unsupported: need 144 push constant bytes, device has 128`); `vulkaninfo` shows the limit. | ||
| 478 | AMD's older Windows drivers report 128 on RDNA2 iGPUs (Radeon 680M on 22.40.84.06, 610M on 24.10.16.14, the Ryzen 5 | ||
| 479 | 7600's iGPU on 24.10.24); 26.11.2 reports 256 on a Radeon 610M, where these tests run without the variable below. | ||
| 480 | RADV reports more on the same chips. | ||
| 481 | |||
| 482 | To run them anyway, set `LEONIDA_PC_TAIL_UBO=1` **for both `build.py` and `check.py`** (or for | ||
| 483 | `run_gpu_tests.py`). The shaders are then translated with `--pc-tail-ubo`: s0..s31 stay in 128 push-constant bytes, | ||
| 484 | and the heap base and code base move to a uniform block at set 1 (`docs/design.md`, "Push-constant tail as a uniform | ||
| 485 | block"), which `vk_compute_test`, `vk_store_test`, `vk_harness`, `vk_texture_test`, `vk_sampler_test` and | ||
| 486 | `vk_bindless_test` bind (`runtime/test/vk_pc_tail.h`). If you set it | ||
| 487 | only for `check.py`, the shaders read the tail from push constants the programs no longer declare. `--mesh-compute` | ||
| 488 | (`LEONIDA_MESH_COMPUTE=1`) isn't combined with it yet: its vertex shader still reads the output address from push | ||
| 489 | constants, so those tests skip. | ||
| 490 | 463 | ||
| 491 | ## GPUs with 128 bytes of push constants (AMD RDNA2 iGPUs on Windows, some Intel Arc drivers) | 464 | ## GPUs with 128 bytes of push constants (AMD RDNA2 iGPUs on Windows, some Intel Arc drivers) |
| 492 | 465 | ||