diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2021-06-18 15:10:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-18 15:10:49 +0200 |
commit | bb18a6533d9904bc33dc75ec5918eb270e1c72e8 (patch) | |
tree | 865e07a209161249f3da488477d41f302fe2c384 | |
parent | Merge pull request #6418 from clementgallet/sdl-audio-backend (diff) | |
parent | vulkan_debug_callback: Skip logging known false-positive validation errors (diff) | |
download | yuzu-bb18a6533d9904bc33dc75ec5918eb270e1c72e8.tar yuzu-bb18a6533d9904bc33dc75ec5918eb270e1c72e8.tar.gz yuzu-bb18a6533d9904bc33dc75ec5918eb270e1c72e8.tar.bz2 yuzu-bb18a6533d9904bc33dc75ec5918eb270e1c72e8.tar.lz yuzu-bb18a6533d9904bc33dc75ec5918eb270e1c72e8.tar.xz yuzu-bb18a6533d9904bc33dc75ec5918eb270e1c72e8.tar.zst yuzu-bb18a6533d9904bc33dc75ec5918eb270e1c72e8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/vulkan_common/vulkan_debug_callback.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/vulkan_common/vulkan_debug_callback.cpp b/src/video_core/vulkan_common/vulkan_debug_callback.cpp index 5c64c9bf7..0f60765bb 100644 --- a/src/video_core/vulkan_common/vulkan_debug_callback.cpp +++ b/src/video_core/vulkan_common/vulkan_debug_callback.cpp @@ -12,6 +12,14 @@ VkBool32 Callback(VkDebugUtilsMessageSeverityFlagBitsEXT severity, VkDebugUtilsMessageTypeFlagsEXT type, const VkDebugUtilsMessengerCallbackDataEXT* data, [[maybe_unused]] void* user_data) { + // Skip logging known false-positive validation errors + switch (static_cast<u32>(data->messageIdNumber)) { + case 0x682a878au: // VUID-vkCmdBindVertexBuffers2EXT-pBuffers-parameter + case 0x99fb7dfdu: // UNASSIGNED-RequiredParameter (vkCmdBindVertexBuffers2EXT pBuffers[0]) + return VK_FALSE; + default: + break; + } const std::string_view message{data->pMessage}; if (severity & VK_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT) { LOG_CRITICAL(Render_Vulkan, "{}", message); |