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 15:16:53 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 15:16:53 -0500
commit16fd347b8ce8347dd4570919c37a737fb4e67268 (patch)
tree111770bfb2c09c10c46b62dd9081161fcda23f16 /docs/testing.md
parent7e1f64311d7c58b7d148d69603be53e156b731e8 (diff)
parent446270b08afe359a3a8bcc8d50c206b989edd6bb (diff)
Merge pull request #3313 from Shrey Ratna
Diffstat (limited to 'docs/testing.md')
-rw-r--r--docs/testing.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/testing.md b/docs/testing.md
index be45b4c81..fc695d014 100644
--- a/docs/testing.md
+++ b/docs/testing.md
@@ -138,6 +138,16 @@ python -I runtime/test/shaders/mullit_readback.py <out-dir> <harness-directory>
138 138
139For 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"). 139For 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").
140 140
141The shader test programs (`vk_harness`, `vk_compute_test`, `vk_store_test`, `vk_texture_test`, `vk_bindless_test`,
142`vk_sampler_test`, `vk_image_fuzz`) don't read `LEONIDA_VK_VALIDATION`. To check one, load the layer through the
143loader and run it by hand, for example
144`VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_KHRONOS_VALIDATION_GPUAV_ENABLE=1 vk_compute_test x.spv 1 dump`.
145The layer prints its messages to stdout and the program's exit status doesn't change, and `run_gpu_tests.py` shows
146only each test's last line, so read the program's own output. GPU-assisted validation (`..._GPUAV_ENABLE=1`)
147instruments the translated shaders and reports what they actually do at run time: out-of-bounds buffer accesses, and
148an image read through a view whose numeric type doesn't match the shader's (a T# FORMAT that disagrees with the
149bound view). It runs on llvmpipe. `VK_KHRONOS_VALIDATION_VALIDATE_SYNC=1` adds synchronization validation.
150
141## The Windows runtime on Linux, under Wine or Proton 151## The Windows runtime on Linux, under Wine or Proton
142 152
143The Linux build above makes only the Vulkan programs. The loader (`gta6rt`), its shims and their tests are Windows 153The Linux build above makes only the Vulkan programs. The loader (`gta6rt`), its shims and their tests are Windows