Repository navigation
GPU tests: count only validation-type errors (TEST-98, @Ryx69's 3732227) - #764
rafaelpssz wants to merge 1 commit into
Conversation
The debug messenger in test/vk_test_device.h counted every error-severity message, so a broken third-party implicit layer (ReShade's, reported on an RTX 5090) failed every GPU test. Only VALIDATION-type errors are counted now; general loader and layer messages are still printed, marked "not counted". A real validation error still fails the test (checked by replaying part B of vk_command_replay_test without the layout tracker). runtime/README.md says so and mentions VK_LOADER_LAYERS_DISABLE. (cherry picked from commit 3732227, one of the two ItsNotRexed#119 commits left out when ItsNotRexed#119 landed; runtime/README.md conflict resolved onto current main: the note now follows the LEONIDA_VK_VALIDATION sentence. TEST-98.) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested
AI-assisted (Claude Code). |
|
Tested 7c83c8a on an NVIDIA GeForce RTX 4090 (driver 617.14), Windows 10 Home 22H2 (19045), MSVC 19.39, Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0, Ninja RelWithDebInfo, A real validation error is still counted. I made a tiny program on
The broken-layer case, reproduced your way (
In the probe, main counts the loader error before any test code runs (1 before the bad call, 2 after); with this PR it's 0, then 1. Real third-party layers on this machine: it has three in-the-wild implicit layers ( Build: no new warnings. Code read: the Overlap with #741: #741 does the same filtering a different way (it limits the messenger to AI-assisted (Claude Code); repository tests and a small probe on |
|
Thanks @Derpbeat, the real-error probe closes the gap I left. A real-world instance of the error case you describe turned up here meanwhile: this machine's registry still lists the Epic Games overlay layer under Agreed on #741: this PR for the filtering, and #741's sync-validation part on top of it. |
|
Tested
AI-assisted verification using repository tests and synthetic inputs. |
|
TEST-98 — independent Windows/Vulkan verification on RTX 3090 Tested I ran
The invalid manifest was supplied through a process-scoped I also submitted five synthetic debug messages to a live Vulkan instance using
AI-assisted verification using synthetic tests. No game files were used. |
|
Closing as superseded by #741, which landed in the 03:02 round and does the same counting filter (an error counts only with |
Item: TEST-98, claimed in #634 (found by @oVolkra). This is @Ryx69's 3732227 (they're the commit author), one of the two #119 commits that didn't land with #119.
Change
runtime/test/vk_test_device.h: the debug messenger counted every ERROR-severity message, so a broken or stale third-party implicit layer (an overlay, a capture tool, or a leftover registry entry) made every D3D12 test fail underLEONIDA_VK_VALIDATION=1with no real validation error. OnlyVALIDATION-type errors are counted now; loader and layer (GENERAL) messages are still printed, asvulkan (not counted): ....runtime/README.md: the note about it andVK_LOADER_LAYERS_DISABLE. The cherry-pick conflicted there because main has since dropped thed3d12_present_testbullet; the note now follows theLEONIDA_VK_VALIDATIONsentence.Tested
Windows 11, RTX 3060 (NVIDIA 616.64), Vulkan SDK 1.4.363.1 validation layer, clang-cl 23 + lld-link against the MSVC 14.44 CRT and Windows SDK 10.0.26100, on main 67204bf.
Reproduced @oVolkra's case without the registry:
VK_ADD_IMPLICIT_LAYER_PATHpointing at a folder with an invalid.json, plusLEONIDA_VK_VALIDATION=1. The loader reportsloader_get_json: Invalid JSON file ...broken_layer.json.d3d12_com_testd3d12_descriptor_testd3d12_method_variants_testd3d12_sampler2_testd3d12_typeless_rtv_testd3d12_vulkan_device_testvk_command_replay_testWithout the broken layer,
ctestwithLEONIDA_VK_VALIDATION=1: 23/23, no validation messages. That a real validation error still fails a test is from @Ryx69's original check (part B ofvk_command_replay_testwithout the layout tracker); I didn't repeat it. No game files.By @rafaelpssz, with Claude Code (AI-assisted).