diff options
| author | TreXito <81475944+TreXito@users.noreply.github.com> | 2026-11-23 21:45:01 +0000 |
|---|---|---|
| committer | TreXito <81475944+TreXito@users.noreply.github.com> | 2026-11-23 21:45:01 +0000 |
| commit | f1d006bdbda200bb599d7652d828bb03fbf54d5a (patch) | |
| tree | a013defefc537a6767c5b05a04faeb1a829f1302 /docs | |
| parent | d030b991282748d5bbbd11a20eae6c6ea65ef36d (diff) | |
| parent | fc7d1f514d9d73c7366336c1e7adbdf5c689dfa0 (diff) | |
Merge #4025 (test/877b-shader-programs-validation)
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/testing.md | 14 |
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 | ||
| 170 | 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"). | 170 | 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"). |
| 171 | 171 | ||
| 172 | `vk_compute_test`, `vk_bindless_test` and `vk_image_fuzz` read `LEONIDA_VK_VALIDATION` too (`vk_compute_test` | 172 | The shader test programs (`vk_harness`, `vk_compute_test`, `vk_store_test`, `vk_texture_test`, `vk_sampler_test`, |
| 173 | through `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`): |
| 174 | program exit 1, so `LEONIDA_VK_VALIDATION=1 VK_KHRONOS_VALIDATION_GPUAV_ENABLE=1 python scripts/run_gpu_tests.py` fails | 174 | each validation message goes to stderr and a validation error makes the program exit 1, ending its output with |
| 175 | every 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` |
| 176 | programs (`vk_harness`, `vk_store_test`, `vk_texture_test`, `vk_sampler_test`) don't read it. | 176 | fails every test the layer objects to. GPU-assisted validation (`..._GPUAV_ENABLE=1`) |
| 177 | To 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`. | ||
| 179 | The layer prints its messages to stdout and the program's exit status doesn't change, and `run_gpu_tests.py` shows | ||
| 180 | only each test's last line, so read the program's own output. GPU-assisted validation (`..._GPUAV_ENABLE=1`) | ||
| 181 | instruments the translated shaders and reports what they actually do at run time: out-of-bounds buffer accesses, and | 177 | instruments the translated shaders and reports what they actually do at run time: out-of-bounds buffer accesses, and |
| 182 | an image read through a view whose numeric type doesn't match the shader's (a T# FORMAT that disagrees with the | 178 | an image read through a view whose numeric type doesn't match the shader's (a T# FORMAT that disagrees with the |
| 183 | bound view). It runs on llvmpipe. `VK_KHRONOS_VALIDATION_VALIDATE_SYNC=1` adds synchronization validation. | 179 | bound view). It runs on llvmpipe. `VK_KHRONOS_VALIDATION_VALIDATE_SYNC=1` adds synchronization validation. |