[gtk+] gdk: Tone down Vulkan validation
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gdk: Tone down Vulkan validation
- Date: Tue, 26 Sep 2017 22:20:06 +0000 (UTC)
commit d812fc8a941e8633bc629e47505efa1b3b7af815
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Sep 26 18:17:27 2017 -0400
gdk: Tone down Vulkan validation
Don't show informational messages by default, only warnings
and errors. This makes it much easier to see what is going
on.
gdk/gdkvulkancontext.c | 22 ++++++----------------
1 files changed, 6 insertions(+), 16 deletions(-)
---
diff --git a/gdk/gdkvulkancontext.c b/gdk/gdkvulkancontext.c
index 32478d8..79e067d 100644
--- a/gdk/gdkvulkancontext.c
+++ b/gdk/gdkvulkancontext.c
@@ -681,26 +681,16 @@ gdk_vulkan_debug_report (VkDebugReportFlagsEXT flags,
void* pUserData)
{
if (flags & VK_DEBUG_REPORT_ERROR_BIT_EXT)
- {
- g_critical ("Vulkan: %s: %s", pLayerPrefix, pMessage);
- }
+ g_critical ("Vulkan: %s: %s", pLayerPrefix, pMessage);
else if (flags & VK_DEBUG_REPORT_WARNING_BIT_EXT)
- {
- g_critical ("Vulkan: %s: %s", pLayerPrefix, pMessage);
- }
+ g_critical ("Vulkan: %s: %s", pLayerPrefix, pMessage);
else if (flags & VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT)
- {
- g_warning ("Vulkan: %s: %s", pLayerPrefix, pMessage);
- }
+ g_warning ("Vulkan: %s: %s", pLayerPrefix, pMessage);
else if (flags & VK_DEBUG_REPORT_DEBUG_BIT_EXT)
- {
- g_debug ("Vulkan: %s: %s", pLayerPrefix, pMessage);
- }
+ g_debug ("Vulkan: %s: %s", pLayerPrefix, pMessage);
else
- {
- g_message ("Vulkan: %s: %s", pLayerPrefix, pMessage);
- }
-
+ g_info ("Vulkan: %s: %s", pLayerPrefix, pMessage);
+
return VK_FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]