diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 23:16:52 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 23:16:52 -0500 |
| commit | 62cc53d1e06dc7006aba0849666244ec71478e70 (patch) | |
| tree | 289d9f0b82f5369cb97e23be3fe71dd129ac9b17 /docs/testing.md | |
| parent | 251659ec3aa085b26226359d46cef1c5a7195d97 (diff) | |
| parent | 0f671416cf475c6153c921d70161661233151cc3 (diff) | |
Merge pull request #4654 from Etr0p
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
# docs/design.md
# docs/testing.md
Diffstat (limited to 'docs/testing.md')
| -rw-r--r-- | docs/testing.md | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/docs/testing.md b/docs/testing.md index d34c848d8..85443dc14 100644 --- a/docs/testing.md +++ b/docs/testing.md | |||
| @@ -310,14 +310,32 @@ Each line prints `ok`, a `SKIP` with its reason, or what differed. To add a fixt | |||
| 310 | 3. Add it to `EXPECT` in `tests/test_wave64_halves_fixtures.py` with the tier, reasons and idioms the translator | 310 | 3. Add it to `EXPECT` in `tests/test_wave64_halves_fixtures.py` with the tier, reasons and idioms the translator |
| 311 | should give it, and run `python -m pytest tests/test_wave64_halves_fixtures.py`. | 311 | should give it, and run `python -m pytest tests/test_wave64_halves_fixtures.py`. |
| 312 | 4. Run `w64_graphics.py` on a RADV GPU and say which GPU and Mesa version in the pull request. | 312 | 4. Run `w64_graphics.py` on a RADV GPU and say which GPU and Mesa version in the pull request. |
| 313 | ## GPUs with 128 bytes of push constants (AMD RDNA2 iGPUs on Windows, some Intel Arc drivers) | ||
| 314 | |||
| 315 | The translated shaders take 144 bytes of push constants: s0..s31, then the heap base and the code base. A device whose | ||
| 316 | `maxPushConstantsSize` is 128, Vulkan's minimum, can't take that, so the texture tests and every test drawn through | ||
| 317 | `vk_harness` skip there (`unsupported: need 144 push constant bytes, device has 128`); `vulkaninfo` shows the limit. | ||
| 318 | 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 | ||
| 319 | 7600's iGPU on 24.10.24); 26.11.2 reports 256 on a Radeon 610M, where these tests run without the variable below. | ||
| 320 | RADV reports more on the same chips. | ||
| 321 | |||
| 322 | To run them anyway, set `LEONIDA_PC_TAIL_UBO=1` **for both `build.py` and `check.py`** (or for | ||
| 323 | `run_gpu_tests.py`). The shaders are then translated with `--pc-tail-ubo`: s0..s31 stay in 128 push-constant bytes, | ||
| 324 | and the heap base and code base move to a uniform block at set 1 (`docs/design.md`, "Push-constant tail as a uniform | ||
| 325 | block"), which `vk_compute_test`, `vk_store_test`, `vk_harness`, `vk_texture_test`, `vk_sampler_test` and | ||
| 326 | `vk_bindless_test` bind (`runtime/test/vk_pc_tail.h`). If you set it | ||
| 327 | only for `check.py`, the shaders read the tail from push constants the programs no longer declare. `--mesh-compute` | ||
| 328 | (`LEONIDA_MESH_COMPUTE=1`) isn't combined with it yet: its vertex shader still reads the output address from push | ||
| 329 | constants, so those tests skip. | ||
| 313 | 330 | ||
| 314 | ## GPUs with 128 bytes of push constants (AMD RDNA2 iGPUs on Windows, some Intel Arc drivers) | 331 | ## GPUs with 128 bytes of push constants (AMD RDNA2 iGPUs on Windows, some Intel Arc drivers) |
| 315 | 332 | ||
| 316 | The translated shaders take 144 bytes of push constants: s0..s31, then the heap base and the code base. A device whose | 333 | The translated shaders take 144 bytes of push constants: s0..s31, then the heap base and the code base. A device whose |
| 317 | `maxPushConstantsSize` is 128, Vulkan's minimum, can't take that, so the texture tests and every test drawn through | 334 | `maxPushConstantsSize` is 128, Vulkan's minimum, can't take that, so the texture tests and every test drawn through |
| 318 | `vk_harness` skip there (`unsupported: need 144 push constant bytes, device has 128`); `vulkaninfo` shows the limit. | 335 | `vk_harness` skip there (`unsupported: need 144 push constant bytes, device has 128`); `vulkaninfo` shows the limit. |
| 319 | AMD's Windows driver reports 128 on RDNA2 iGPUs (Radeon 680M, 610M, the Ryzen 7000 iGPU); RADV reports more on the | 336 | 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 |
| 320 | same chips. | 337 | 7600's iGPU on 24.10.24); 26.11.2 reports 256 on a Radeon 610M, where these tests run without the variable below. |
| 338 | RADV reports more on the same chips. | ||
| 321 | 339 | ||
| 322 | To run them anyway, set `LEONIDA_PC_TAIL_UBO=1` **for both `build.py` and `check.py`** (or for | 340 | To run them anyway, set `LEONIDA_PC_TAIL_UBO=1` **for both `build.py` and `check.py`** (or for |
| 323 | `run_gpu_tests.py`). The shaders are then translated with `--pc-tail-ubo`: s0..s31 stay in 128 push-constant bytes, | 341 | `run_gpu_tests.py`). The shaders are then translated with `--pc-tail-ubo`: s0..s31 stay in 128 push-constant bytes, |