mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
vulkan: print criticals/warnings for vulkan errors/warnings
Simplifies finding the erronous cases in using the Vulkan API incorrectly.
This commit is contained in:
parent
475a2b0acd
commit
b55134a4dd
1 changed files with 2 additions and 0 deletions
|
@ -151,9 +151,11 @@ _gst_vk_debug_callback (VkDebugReportFlagsEXT msgFlags,
|
|||
if (msgFlags & VK_DEBUG_REPORT_ERROR_BIT_EXT) {
|
||||
GST_CAT_ERROR (GST_VULKAN_DEBUG_CAT, "[%s] Code %d : %s", pLayerPrefix,
|
||||
msgCode, pMsg);
|
||||
g_critical ("[%s] Code %d : %s", pLayerPrefix, msgCode, pMsg);
|
||||
} else if (msgFlags & VK_DEBUG_REPORT_WARNING_BIT_EXT) {
|
||||
GST_CAT_WARNING (GST_VULKAN_DEBUG_CAT, "[%s] Code %d : %s", pLayerPrefix,
|
||||
msgCode, pMsg);
|
||||
g_warning ("[%s] Code %d : %s", pLayerPrefix, msgCode, pMsg);
|
||||
} else if (msgFlags & VK_DEBUG_REPORT_INFORMATION_BIT_EXT) {
|
||||
GST_CAT_LOG (GST_VULKAN_DEBUG_CAT, "[%s] Code %d : %s", pLayerPrefix,
|
||||
msgCode, pMsg);
|
||||
|
|
Loading…
Reference in a new issue