Repository navigation
fix(vulkan): enable Synchronization Validation and filter validation-only debug messages - #741
Conversation
…only debug messages
|
Tested d00864d on an NVIDIA GeForce RTX 4090 (driver 617.14, Vulkan 1.4.351), Windows 10 Home 22H2 (19045), MSVC 19.39, Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0 (Khronos validation layer from that SDK), Ninja RelWithDebInfo, On the PR's own base (ee97b84, 417 commits behind main): builds clean. Every GPU test I ran reports 0 validation messages with sync validation on ( Merged onto current main (67204bf; the merge is clean):
So the replay emits back-to-back transfer writes to overlapping subresources without a transfer→transfer barrier. That looks like a real gap in the copy replay: D3D12 apps don't put a barrier between two copies into a resource that stays in Two smaller notes:
AI-assisted (Claude Code); repository tests only, no game files. |
Claimed in the coordination issue as: N/A (standalone validation hardening)
What and why
VkValidationFeaturesEXTwithVK_VALIDATION_FEATURE_ENABLE_SYNCHRONIZATION_VALIDATION_EXTwhenLEONIDA_VK_VALIDATION=1inruntime/test/vk_test_device.handruntime/shims/d3d12_vulkan_device.cpp(create_vulkan_device_standalone), so GPU tests catch pipeline barrier and memory synchronization hazards in addition to core validation.VkDebugUtilsMessengerCreateInfoEXT::messageTypeandon_validation()inruntime/test/vk_test_device.htoVK_DEBUG_UTILS_MESSAGE_TYPE_VALIDATION_BIT_EXT(matchingruntime/test/vk_bindless_test.cpp). Previously,VK_DEBUG_UTILS_MESSAGE_TYPE_GENERAL_BIT_EXTcaused unrelated broken Windows implicit loader layers (e.g. missing third-party overlay JSONs) to be counted as Vulkan validation errors and fail GPU tests.Tested
NVIDIA GeForce RTX 4070 Ti, driver 616.56, Vulkan 1.4.351 (
VK_LAYER_KHRONOS_validationwith Synchronization Validation enabled):RelWithDebInfo&Debug(/W4 /permissive- /utf-8): 0 errors, 0 warnings.ctest -C RelWithDebInfo: 23/23 PASS.RelWithDebInfo&Debug,LEONIDA_VK_VALIDATION=1):vk_command_replay_test,d3d12_com_test,d3d12_vulkan_device_test,d3d12_descriptor_test(withcs_sample.comp), andd3d12_uint_clear_test— all PASS with 0 Core + Synchronization Validation errors.dotnet build tools/rpf9dump/rpf9dump.csproj -c Release: 0 errors, 0 warnings.Checklist
CONTRIBUTING.md), including in logs or reports quoted here.docs/design.md, with how it was confirmed. (N/A — runtime/test validation only)