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:
authorRain156 <77776581+Rain156@users.noreply.github.com>2026-11-24 21:11:46 +0800
committerRain156 <77776581+Rain156@users.noreply.github.com>2026-11-24 21:11:46 +0800
commit8e2f3f618f464d56a7bb17a41f071e31ff2d5bfb (patch)
tree0cec5641c61cec919e4b554cecf61ea26a2242e1 /docs/testing.md
parentb398993940227956a19f7e5a381624b642d17c15 (diff)
parent33f4a5aedeb48e27b004efe5d6ae306130d55cdd (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.md24
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
180python -I runtime/test/shaders/mullit_readback.py <out-dir> <harness-directory> 180python -I runtime/test/shaders/mullit_readback.py <out-dir> <harness-directory>
181``` 181```
182 182
183For 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"). 183For D3D12/runtime tests, `LEONIDA_VK_VALIDATION=1` enables `VK_LAYER_KHRONOS_validation`. When running with
184validation, set `DISABLE_RTSS_LAYER=1` and `DISABLE_VULKAN_OBS_CAPTURE=1` if MSI Afterburner (RivaTuner) or OBS is
185installed: their overlay layers can add unsupported swapchain usage, and in an elevated (administrator) terminal
186the loader ignores `VK_LOADER_LAYERS_DISABLE=~implicit~` (see "Known problems").
187
188On Windows, `run_gpu_tests.py` assembles and translates the D3D-78 fixture and runs the UAV readback and WARP
189comparison from the same build folder. Use `--filter cs_texture_uav` to run only this case:
190
191```powershell
192$env:LEONIDA_VK_VALIDATION = "1"
193python -I scripts/run_gpu_tests.py --build runtime/build --filter cs_texture_uav
194```
195
196Use the actual configuration subfolder for the executables with a multi-config generator. The native Windows
197case reports SKIP without WARP or a sufficiently capable Vulkan device; failed translation, a missing test
198executable on Windows, and readback mismatches fail the runner. Devices without sliced 3D views still run the 1D,
199array and whole-mip cases and check that partial views are refused.
200
201CTest runs the same D3D-78 descriptor creation, copy, range/refusal and clear checks with `--descriptors-only`.
202That mode requires Vulkan, but not a translated shader or WARP. The GPU runner still exercises dispatch and readback.
203
204Use `--filter cs_imgload_mip` to check 2D `image_load_mip` on FLOAT (UNORM), UINT and SINT sampled views with
205both 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`
186through `runtime/test/vk_validation.h`): each validation message goes to stderr and a validation error makes the 208through `runtime/test/vk_validation.h`): each validation message goes to stderr and a validation error makes the