diff options
| author | 2021-06-18 10:10:49 -0300 | |
|---|---|---|
| committer | 2021-06-18 10:10:49 -0300 | |
| 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.gz yuzu-bb18a6533d9904bc33dc75ec5918eb270e1c72e8.tar.xz yuzu-bb18a6533d9904bc33dc75ec5918eb270e1c72e8.zip | |
Merge pull request #6478 from ameerj/vk-layer-settings
vulkan_debug_callback: Skip logging known false-positive validation errors
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); |