summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-09-21 20:49:53 -0400
committerMatthias Clasen <mclasen@redhat.com>2022-09-21 20:49:53 -0400
commit1b96828667e14a48d4a7f421133de206a8b48e84 (patch)
tree36f78632c064c27d6a7a287a93fea62e3a075910
parent7785c18c56dff8193c01c8afba49ef5c09295d56 (diff)
downloadgtk+-1b96828667e14a48d4a7f421133de206a8b48e84.tar.gz
Make vulkan-validate always available
There is no need to restrict this debug builds.
-rw-r--r--gdk/gdk.c2
-rw-r--r--gdk/gdkvulkancontext.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/gdk/gdk.c b/gdk/gdk.c
index 4d3e4eb5b6..8b7c52769c 100644
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -128,7 +128,7 @@ static const GdkDebugKey gdk_debug_keys[] = {
{ "gl-glx", GDK_DEBUG_GL_GLX, "Use GLX on X11" },
{ "gl-wgl", GDK_DEBUG_GL_WGL, "Use WGL on Windows" },
{ "vulkan-disable", GDK_DEBUG_VULKAN_DISABLE, "Disable Vulkan support" },
- { "vulkan-validate", GDK_DEBUG_VULKAN_VALIDATE, "Load the Vulkan validation layer" },
+ { "vulkan-validate", GDK_DEBUG_VULKAN_VALIDATE, "Load the Vulkan validation layer", TRUE },
{ "default-settings",GDK_DEBUG_DEFAULT_SETTINGS, "Force default values for xsettings", TRUE },
{ "high-depth", GDK_DEBUG_HIGH_DEPTH, "Use high bit depth rendering if possible", TRUE },
};
diff --git a/gdk/gdkvulkancontext.c b/gdk/gdkvulkancontext.c
index 1f464cea95..b3549a9413 100644
--- a/gdk/gdkvulkancontext.c
+++ b/gdk/gdkvulkancontext.c
@@ -1072,7 +1072,7 @@ gdk_display_create_vulkan_instance (GdkDisplay *display,
VK_VERSION_MINOR (layers[i].specVersion),
VK_VERSION_PATCH (layers[i].specVersion),
layers[i].description);
- if (GDK_DISPLAY_DEBUG_CHECK (display, VULKAN_VALIDATE) &&
+ if ((gdk_display_get_debug_flags (display) & GDK_DEBUG_VULKAN_VALIDATE) &&
g_str_equal (layers[i].layerName, "VK_LAYER_LUNARG_standard_validation"))
{
g_ptr_array_add (used_layers, (gpointer) "VK_LAYER_LUNARG_standard_validation");
@@ -1080,7 +1080,7 @@ gdk_display_create_vulkan_instance (GdkDisplay *display,
}
}
- if (GDK_DISPLAY_DEBUG_CHECK (display, VULKAN_VALIDATE) && !validate)
+ if ((gdk_display_get_debug_flags (display) & GDK_DEBUG_VULKAN_VALIDATE) && !validate)
{
g_warning ("Vulkan validation layers were requested, but not found. Running without.");
}