From: Mikko Rasa Date: Wed, 16 Mar 2022 10:13:11 +0000 (+0200) Subject: Adjust Vulkan debug message output X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=eddae342dd069589319029b48986b14dbbe5165b;p=libs%2Fgui.git Adjust Vulkan debug message output All the information seems to already be included in the message, so printing it is unnecessary. Also include informational messages. --- diff --git a/source/graphics/vkxlib/vulkancontext.cpp b/source/graphics/vkxlib/vulkancontext.cpp index 51a623b..3b5476b 100644 --- a/source/graphics/vkxlib/vulkancontext.cpp +++ b/source/graphics/vkxlib/vulkancontext.cpp @@ -121,7 +121,7 @@ void VulkanContext::platform_init(const VulkanOptions &opts) { VkDebugReportCallbackCreateInfoEXT debug_report_create_info = { }; debug_report_create_info.sType = VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT; - debug_report_create_info.flags = VK_DEBUG_REPORT_WARNING_BIT_EXT|VK_DEBUG_REPORT_ERROR_BIT_EXT|VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT; + debug_report_create_info.flags = VK_DEBUG_REPORT_WARNING_BIT_EXT|VK_DEBUG_REPORT_ERROR_BIT_EXT|VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT|VK_DEBUG_REPORT_INFORMATION_BIT_EXT; debug_report_create_info.pfnCallback = &Private::debug_report_func; debug_report_create_info.pUserData = this; @@ -254,9 +254,9 @@ VulkanContext::Private::Private(): debug_report_callback(0) { } -VkBool32 VulkanContext::Private::debug_report_func(VkDebugReportFlagsEXT, VkDebugReportObjectTypeEXT obj_type, uint64_t obj_id, size_t, int32_t, const char *layer_prefix, const char *message, void *) +VkBool32 VulkanContext::Private::debug_report_func(VkDebugReportFlagsEXT, VkDebugReportObjectTypeEXT, uint64_t, size_t, int32_t, const char *, const char *message, void *) { - IO::print(IO::cerr, "Vulkan debug report from %s: Object %d of type %d: %s\n", layer_prefix, obj_type, obj_id, message); + IO::print(IO::cerr, "%s\n", message); return VK_FALSE; }