upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTreXito <81475944+TreXito@users.noreply.github.com>2026-11-23 21:45:01 +0000
committerTreXito <81475944+TreXito@users.noreply.github.com>2026-11-23 21:45:01 +0000
commitf1d006bdbda200bb599d7652d828bb03fbf54d5a (patch)
treea013defefc537a6767c5b05a04faeb1a829f1302 /docs
parentd030b991282748d5bbbd11a20eae6c6ea65ef36d (diff)
parentfc7d1f514d9d73c7366336c1e7adbdf5c689dfa0 (diff)
Merge #4025 (test/877b-shader-programs-validation)
Diffstat (limited to 'docs')
-rw-r--r--docs/testing.md14
1 files changed, 5 insertions, 9 deletions
diff --git a/docs/testing.md b/docs/testing.md
index 34cb420af..7c9b5873f 100644
--- a/docs/testing.md
+++ b/docs/testing.md
@@ -169,15 +169,11 @@ python -I runtime/test/shaders/mullit_readback.py <out-dir> <harness-directory>
169 169
170For 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"). 170For 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").
171 171
172`vk_compute_test`, `vk_bindless_test` and `vk_image_fuzz` read `LEONIDA_VK_VALIDATION` too (`vk_compute_test` 172The shader test programs (`vk_harness`, `vk_compute_test`, `vk_store_test`, `vk_texture_test`, `vk_sampler_test`,
173through `runtime/test/vk_validation.h`): each validation message goes to stderr and a validation error makes the 173`vk_bindless_test`, `vk_image_fuzz`) read `LEONIDA_VK_VALIDATION` too (most through `runtime/test/vk_validation.h`):
174program exit 1, so `LEONIDA_VK_VALIDATION=1 VK_KHRONOS_VALIDATION_GPUAV_ENABLE=1 python scripts/run_gpu_tests.py` fails 174each validation message goes to stderr and a validation error makes the program exit 1, ending its output with
175every compute test the layer objects to; the program's output ends with "N validation errors". The other shader test 175"N validation errors". So `LEONIDA_VK_VALIDATION=1 VK_KHRONOS_VALIDATION_GPUAV_ENABLE=1 python scripts/run_gpu_tests.py`
176programs (`vk_harness`, `vk_store_test`, `vk_texture_test`, `vk_sampler_test`) don't read it. 176fails every test the layer objects to. GPU-assisted validation (`..._GPUAV_ENABLE=1`)
177To check one, load the layer through the loader and run it by hand, for example
178`VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_KHRONOS_VALIDATION_GPUAV_ENABLE=1 vk_harness vs.spv ps.spv out.raw`.
179The layer prints its messages to stdout and the program's exit status doesn't change, and `run_gpu_tests.py` shows
180only each test's last line, so read the program's own output. GPU-assisted validation (`..._GPUAV_ENABLE=1`)
181instruments the translated shaders and reports what they actually do at run time: out-of-bounds buffer accesses, and 177instruments the translated shaders and reports what they actually do at run time: out-of-bounds buffer accesses, and
182an image read through a view whose numeric type doesn't match the shader's (a T# FORMAT that disagrees with the 178an image read through a view whose numeric type doesn't match the shader's (a T# FORMAT that disagrees with the
183bound view). It runs on llvmpipe. `VK_KHRONOS_VALIDATION_VALIDATE_SYNC=1` adds synchronization validation. 179bound view). It runs on llvmpipe. `VK_KHRONOS_VALIDATION_VALIDATE_SYNC=1` adds synchronization validation.