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:
authorItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 23:10:19 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 23:10:19 -0500
commita6d40717817829e1b33a2938e4fe5a74a9ce0548 (patch)
treefa271d3d97946e98edf0e9e60d3177a20a5ac226 /docs/testing.md
parentdddf3beae5835fe5d48b32cb44e68eda4cd3e53b (diff)
parent65c3e1e3c2cadc6043f2a12394276b5fcc956a1e (diff)
Merge pull request #4005 from TreXito
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/testing.md')
-rw-r--r--docs/testing.md11
1 files changed, 7 insertions, 4 deletions
diff --git a/docs/testing.md b/docs/testing.md
index a07a99ccd..e3c183cd4 100644
--- a/docs/testing.md
+++ b/docs/testing.md
@@ -145,10 +145,13 @@ python -I runtime/test/shaders/mullit_readback.py <out-dir> <harness-directory>
145 145
146For 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"). 146For 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").
147 147
148The shader test programs (`vk_harness`, `vk_compute_test`, `vk_store_test`, `vk_texture_test`, `vk_bindless_test`, 148`vk_compute_test`, `vk_bindless_test` and `vk_image_fuzz` read `LEONIDA_VK_VALIDATION` too (`vk_compute_test`
149`vk_sampler_test`, `vk_image_fuzz`) don't read `LEONIDA_VK_VALIDATION`. To check one, load the layer through the 149through `runtime/test/vk_validation.h`): each validation message goes to stderr and a validation error makes the
150loader and run it by hand, for example 150program exit 1, so `LEONIDA_VK_VALIDATION=1 VK_KHRONOS_VALIDATION_GPUAV_ENABLE=1 python scripts/run_gpu_tests.py` fails
151`VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_KHRONOS_VALIDATION_GPUAV_ENABLE=1 vk_compute_test x.spv 1 dump`. 151every compute test the layer objects to; the program's output ends with "N validation errors". The other shader test
152programs (`vk_harness`, `vk_store_test`, `vk_texture_test`, `vk_sampler_test`) don't read it.
153To check one, load the layer through the loader and run it by hand, for example
154`VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_KHRONOS_VALIDATION_GPUAV_ENABLE=1 vk_harness vs.spv ps.spv out.raw`.
152The layer prints its messages to stdout and the program's exit status doesn't change, and `run_gpu_tests.py` shows 155The layer prints its messages to stdout and the program's exit status doesn't change, and `run_gpu_tests.py` shows
153only each test's last line, so read the program's own output. GPU-assisted validation (`..._GPUAV_ENABLE=1`) 156only each test's last line, so read the program's own output. GPU-assisted validation (`..._GPUAV_ENABLE=1`)
154instruments the translated shaders and reports what they actually do at run time: out-of-bounds buffer accesses, and 157instruments the translated shaders and reports what they actually do at run time: out-of-bounds buffer accesses, and