diff options
| author | Rain156 <77776581+Rain156@users.noreply.github.com> | 2026-11-24 21:11:46 +0800 |
|---|---|---|
| committer | Rain156 <77776581+Rain156@users.noreply.github.com> | 2026-11-24 21:11:46 +0800 |
| commit | 8e2f3f618f464d56a7bb17a41f071e31ff2d5bfb (patch) | |
| tree | 0cec5641c61cec919e4b554cecf61ea26a2242e1 /docs/testing.md | |
| parent | b398993940227956a19f7e5a381624b642d17c15 (diff) | |
| parent | 33f4a5aedeb48e27b004efe5d6ae306130d55cdd (diff) | |
Integrate the storage-image translation rules from #213
The corresponding runtime views are assembled with the other first-run rendering dependencies.
Diffstat (limited to 'docs/testing.md')
| -rw-r--r-- | docs/testing.md | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/docs/testing.md b/docs/testing.md index ad6fdc539..765f22b3b 100644 --- a/docs/testing.md +++ b/docs/testing.md | |||
| @@ -180,7 +180,29 @@ python -I runtime/test/shaders/build.py <out-dir> vs_ids ps_mullit | |||
| 180 | python -I runtime/test/shaders/mullit_readback.py <out-dir> <harness-directory> | 180 | python -I runtime/test/shaders/mullit_readback.py <out-dir> <harness-directory> |
| 181 | ``` | 181 | ``` |
| 182 | 182 | ||
| 183 | 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"). | 183 | For D3D12/runtime tests, `LEONIDA_VK_VALIDATION=1` enables `VK_LAYER_KHRONOS_validation`. When running with |
| 184 | validation, set `DISABLE_RTSS_LAYER=1` and `DISABLE_VULKAN_OBS_CAPTURE=1` if MSI Afterburner (RivaTuner) or OBS is | ||
| 185 | installed: their overlay layers can add unsupported swapchain usage, and in an elevated (administrator) terminal | ||
| 186 | the loader ignores `VK_LOADER_LAYERS_DISABLE=~implicit~` (see "Known problems"). | ||
| 187 | |||
| 188 | On Windows, `run_gpu_tests.py` assembles and translates the D3D-78 fixture and runs the UAV readback and WARP | ||
| 189 | comparison from the same build folder. Use `--filter cs_texture_uav` to run only this case: | ||
| 190 | |||
| 191 | ```powershell | ||
| 192 | $env:LEONIDA_VK_VALIDATION = "1" | ||
| 193 | python -I scripts/run_gpu_tests.py --build runtime/build --filter cs_texture_uav | ||
| 194 | ``` | ||
| 195 | |||
| 196 | Use the actual configuration subfolder for the executables with a multi-config generator. The native Windows | ||
| 197 | case reports SKIP without WARP or a sufficiently capable Vulkan device; failed translation, a missing test | ||
| 198 | executable on Windows, and readback mismatches fail the runner. Devices without sliced 3D views still run the 1D, | ||
| 199 | array and whole-mip cases and check that partial views are refused. | ||
| 200 | |||
| 201 | CTest runs the same D3D-78 descriptor creation, copy, range/refusal and clear checks with `--descriptors-only`. | ||
| 202 | That mode requires Vulkan, but not a translated shader or WARP. The GPU runner still exercises dispatch and readback. | ||
| 203 | |||
| 204 | Use `--filter cs_imgload_mip` to check 2D `image_load_mip` on FLOAT (UNORM), UINT and SINT sampled views with | ||
| 205 | both full-width and D16 loads; mip 0 contains decoy data and mip 1 holds the expected texels. | ||
| 184 | 206 | ||
| 185 | `vk_compute_test`, `vk_bindless_test` and `vk_image_fuzz` read `LEONIDA_VK_VALIDATION` too (`vk_compute_test` | 207 | `vk_compute_test`, `vk_bindless_test` and `vk_image_fuzz` read `LEONIDA_VK_VALIDATION` too (`vk_compute_test` |
| 186 | through `runtime/test/vk_validation.h`): each validation message goes to stderr and a validation error makes the | 208 | through `runtime/test/vk_validation.h`): each validation message goes to stderr and a validation error makes the |