vulkan: Demote g_critical() to g_warning()
For VK_DEBUG_REPORT_WARNING_BIT_EXT we should always have used g_warning(). For VK_DEBUG_REPORT_ERROR_BIT_EXT g_critical() is technically the right choice, but Mesa has been using this flag for normal warnings, so until that gets fixed, we don't want to throw criticals. Related: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31292 Fixes: !7020
This commit is contained in:
@@ -1639,9 +1639,9 @@ gdk_vulkan_debug_report (VkDebugReportFlagsEXT flags,
|
||||
void* pUserData)
|
||||
{
|
||||
if (flags & VK_DEBUG_REPORT_ERROR_BIT_EXT)
|
||||
g_critical ("Vulkan: %s: %s", pLayerPrefix, pMessage);
|
||||
g_warning ("Vulkan: %s: %s", pLayerPrefix, pMessage);
|
||||
else if (flags & VK_DEBUG_REPORT_WARNING_BIT_EXT)
|
||||
g_critical ("Vulkan: %s: %s", pLayerPrefix, pMessage);
|
||||
g_warning ("Vulkan: %s: %s", pLayerPrefix, pMessage);
|
||||
else if (flags & VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT)
|
||||
g_warning ("Vulkan: %s: %s", pLayerPrefix, pMessage);
|
||||
else if (flags & VK_DEBUG_REPORT_DEBUG_BIT_EXT)
|
||||
|
||||
Reference in New Issue
Block a user