diff options
| author | 2021-06-17 21:10:30 -0400 | |
|---|---|---|
| committer | 2021-06-17 22:16:32 -0400 | |
| commit | 0b172d12c004404b7127b53a34bfc4321609dcbc (patch) | |
| tree | 865e07a209161249f3da488477d41f302fe2c384 | |
| parent | Merge pull request #6418 from clementgallet/sdl-audio-backend (diff) | |
| download | yuzu-0b172d12c004404b7127b53a34bfc4321609dcbc.tar.gz yuzu-0b172d12c004404b7127b53a34bfc4321609dcbc.tar.xz yuzu-0b172d12c004404b7127b53a34bfc4321609dcbc.zip | |
vulkan_debug_callback: Skip logging known false-positive validation errors
Avoids overwhelming the log with validation errors that are not applicable
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, | |||
| 12 | VkDebugUtilsMessageTypeFlagsEXT type, | 12 | VkDebugUtilsMessageTypeFlagsEXT type, |
| 13 | const VkDebugUtilsMessengerCallbackDataEXT* data, | 13 | const VkDebugUtilsMessengerCallbackDataEXT* data, |
| 14 | [[maybe_unused]] void* user_data) { | 14 | [[maybe_unused]] void* user_data) { |
| 15 | // Skip logging known false-positive validation errors | ||
| 16 | switch (static_cast<u32>(data->messageIdNumber)) { | ||
| 17 | case 0x682a878au: // VUID-vkCmdBindVertexBuffers2EXT-pBuffers-parameter | ||
| 18 | case 0x99fb7dfdu: // UNASSIGNED-RequiredParameter (vkCmdBindVertexBuffers2EXT pBuffers[0]) | ||
| 19 | return VK_FALSE; | ||
| 20 | default: | ||
| 21 | break; | ||
| 22 | } | ||
| 15 | const std::string_view message{data->pMessage}; | 23 | const std::string_view message{data->pMessage}; |
| 16 | if (severity & VK_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT) { | 24 | if (severity & VK_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT) { |
| 17 | LOG_CRITICAL(Render_Vulkan, "{}", message); | 25 | LOG_CRITICAL(Render_Vulkan, "{}", message); |