diff options
| author | Luv Bhargava <luvbhargava7@gmail.com> | 2026-11-22 18:28:18 +0530 |
|---|---|---|
| committer | Luv Bhargava <luvbhargava7@gmail.com> | 2026-11-22 18:28:18 +0530 |
| commit | 6ba36655a1b4ee22c042bbde1d04c372949de09a (patch) | |
| tree | c80ff59c02b20925e9d2ab228b35cce1d9546df7 /docs | |
| parent | 99f99890c5ebe186ef2f9fe8ff6d675745d9e621 (diff) | |
docs: document disabling RTSS and OBS overlay layers for validation runs (TEST-228)
- Document that RivaTuner (VK_LAYER_RTSS) and OBS (VK_LAYER_OBS_HOOK) stay loaded under VK_LOADER_LAYERS_DISABLE=~implicit~
- Document DISABLE_RTSS_LAYER=1 and DISABLE_VULKAN_OBS_CAPTURE=1 to eliminate false validation errors in xbox_present and present tests
- Note the layer disable variables in both the test running section and Known problems table
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/testing.md | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/testing.md b/docs/testing.md index cc4b4040c..1b86b8ff4 100644 --- a/docs/testing.md +++ b/docs/testing.md | |||
| @@ -98,6 +98,8 @@ python -I runtime/test/shaders/build.py <out dir> | |||
| 98 | python -I runtime/test/shaders/check.py <out dir> <folder with the test programs> | 98 | python -I runtime/test/shaders/check.py <out dir> <folder with the test programs> |
| 99 | ``` | 99 | ``` |
| 100 | 100 | ||
| 101 | 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 ignore `VK_LOADER_LAYERS_DISABLE=~implicit~` and can inject unsupported swapchain flags. | ||
| 102 | |||
| 101 | ## The Windows runtime on Linux, under Wine or Proton | 103 | ## The Windows runtime on Linux, under Wine or Proton |
| 102 | 104 | ||
| 103 | The Linux build above makes only the Vulkan programs. The loader (`gta6rt`), its shims and their tests are Windows | 105 | The Linux build above makes only the Vulkan programs. The loader (`gta6rt`), its shims and their tests are Windows |
| @@ -228,7 +230,8 @@ The GPU tools of `runtime/test/shaders` (`vk_compute_test`, `vk_harness`, ...) r | |||
| 228 | | What you see | Cause | What to do | | 230 | | What you see | Cause | What to do | |
| 229 | |---|---|---| | 231 | |---|---|---| |
| 230 | | Windows refuses to start freshly built test programs ("An Application Control policy has blocked this file"), and the runner stops with a traceback | Smart App Control on Windows 11 | Turn Smart App Control off for the run | | 232 | | Windows refuses to start freshly built test programs ("An Application Control policy has blocked this file"), and the runner stops with a traceback | Smart App Control on Windows 11 | Turn Smart App Control off for the run | |
| 231 | | Validation errors without a VUID, or messages from a layer you didn't ask for | An implicit Vulkan layer from other software (Rockstar Social Club, ReShade, MangoHud, an overlay) | Set `VK_LOADER_LAYERS_DISABLE=~implicit~` | | 233 | | Validation errors without a VUID, or messages from a layer you didn't ask for | An implicit Vulkan layer from other software (Rockstar Social Club, ReShade, MangoHud, an overlay) | Set `VK_LOADER_LAYERS_DISABLE=~implicit~`. Note that third-party overlays (RivaTuner `VK_LAYER_RTSS` from MSI Afterburner, OBS `VK_LAYER_OBS_HOOK`) stay loaded under `~implicit~` and can add `VK_IMAGE_USAGE_STORAGE_BIT` to swapchains; set `DISABLE_RTSS_LAYER=1` and `DISABLE_VULKAN_OBS_CAPTURE=1` to disable them | |
| 234 | | False validation failures in `xbox_present` or present tests (e.g. sRGB swapchain `STORAGE` messages) with MSI Afterburner or OBS running | Overlay Vulkan layers (RivaTuner `VK_LAYER_RTSS`, OBS `VK_LAYER_OBS_HOOK`) remain active under `VK_LOADER_LAYERS_DISABLE=~implicit~` and inject `VK_IMAGE_USAGE_STORAGE_BIT` into swapchains | Set `DISABLE_RTSS_LAYER=1` and `DISABLE_VULKAN_OBS_CAPTURE=1` for validation runs | | ||
| 232 | | Every test crashes inside `libnvidia-eglcore.so` | NVIDIA's 535 server driver (Ubuntu 24.04's default) | Use driver 615 or newer | | 235 | | Every test crashes inside `libnvidia-eglcore.so` | NVIDIA's 535 server driver (Ubuntu 24.04's default) | Use driver 615 or newer | |
| 233 | | `build.py`: 0 translated, reason `.text` | An old `build.py` with LLVM 19 | Update to current `main` | | 236 | | `build.py`: 0 translated, reason `.text` | An old `build.py` with LLVM 19 | Update to current `main` | |
| 234 | | `vk_harness` doesn't compile: `VK_KHR_maintenance8` names unknown | Vulkan headers older than the SDK the code was written against | Update to current `main` (the code now builds without it), or use current Khronos Vulkan-Headers; conda-forge's package is too old | | 237 | | `vk_harness` doesn't compile: `VK_KHR_maintenance8` names unknown | Vulkan headers older than the SDK the code was written against | Update to current `main` (the code now builds without it), or use current Khronos Vulkan-Headers; conda-forge's package is too old | |