diff --git a/gdk/gdk.c b/gdk/gdk.c index de171e8501..2f7a438de0 100644 --- a/gdk/gdk.c +++ b/gdk/gdk.c @@ -117,6 +117,8 @@ static const GdkDebugKey gdk_debug_keys[] = { { "vulkan", GDK_DEBUG_VULKAN, "Information about Vulkan" }, { "selection", GDK_DEBUG_SELECTION, "Information about selections" }, { "clipboard", GDK_DEBUG_CLIPBOARD, "Information about clipboards" }, + { "dmabuf", GDK_DEBUG_DMABUF, "Information about dmabuf buffers" }, + { "nograbs", GDK_DEBUG_NOGRABS, "Disable pointer and keyboard grabs (X11)", TRUE }, { "portals", GDK_DEBUG_PORTALS, "Force use of portals", TRUE }, { "no-portals", GDK_DEBUG_NO_PORTALS, "Disable use of portals", TRUE }, diff --git a/gdk/gdkdebugprivate.h b/gdk/gdkdebugprivate.h index 9ee9f7a24b..2ea227c2d9 100644 --- a/gdk/gdkdebugprivate.h +++ b/gdk/gdkdebugprivate.h @@ -36,24 +36,26 @@ typedef enum { GDK_DEBUG_VULKAN = 1 << 8, GDK_DEBUG_SELECTION = 1 << 9, GDK_DEBUG_CLIPBOARD = 1 << 10, + GDK_DEBUG_DMABUF = 1 << 11, + /* flags below are influencing behavior */ - GDK_DEBUG_NOGRABS = 1 << 11, - GDK_DEBUG_PORTALS = 1 << 12, - GDK_DEBUG_NO_PORTALS = 1 << 13, - GDK_DEBUG_GL_DISABLE = 1 << 14, - GDK_DEBUG_GL_FRACTIONAL = 1 << 15, - GDK_DEBUG_GL_LEGACY = 1 << 16, - GDK_DEBUG_GL_GLES = 1 << 17, - GDK_DEBUG_GL_DEBUG = 1 << 18, - GDK_DEBUG_GL_EGL = 1 << 19, - GDK_DEBUG_GL_GLX = 1 << 20, - GDK_DEBUG_GL_WGL = 1 << 21, - GDK_DEBUG_VULKAN_DISABLE = 1 << 22, - GDK_DEBUG_VULKAN_VALIDATE = 1 << 23, - GDK_DEBUG_DEFAULT_SETTINGS= 1 << 24, - GDK_DEBUG_HIGH_DEPTH = 1 << 25, - GDK_DEBUG_NO_VSYNC = 1 << 26, - GDK_DEBUG_DMABUF_DISABLE = 1 << 27, + GDK_DEBUG_NOGRABS = 1 << 12, + GDK_DEBUG_PORTALS = 1 << 13, + GDK_DEBUG_NO_PORTALS = 1 << 14, + GDK_DEBUG_GL_DISABLE = 1 << 15, + GDK_DEBUG_GL_FRACTIONAL = 1 << 16, + GDK_DEBUG_GL_LEGACY = 1 << 17, + GDK_DEBUG_GL_GLES = 1 << 18, + GDK_DEBUG_GL_DEBUG = 1 << 19, + GDK_DEBUG_GL_EGL = 1 << 20, + GDK_DEBUG_GL_GLX = 1 << 21, + GDK_DEBUG_GL_WGL = 1 << 22, + GDK_DEBUG_VULKAN_DISABLE = 1 << 23, + GDK_DEBUG_VULKAN_VALIDATE = 1 << 24, + GDK_DEBUG_DEFAULT_SETTINGS= 1 << 25, + GDK_DEBUG_HIGH_DEPTH = 1 << 26, + GDK_DEBUG_NO_VSYNC = 1 << 27, + GDK_DEBUG_DMABUF_DISABLE = 1 << 28, } GdkDebugFlags; extern guint _gdk_debug_flags; diff --git a/gdk/gdkdmabuftexture.c b/gdk/gdkdmabuftexture.c index 3bd74272d4..8c06c0aa3b 100644 --- a/gdk/gdkdmabuftexture.c +++ b/gdk/gdkdmabuftexture.c @@ -187,7 +187,7 @@ do_direct_download (GdkDmabufTexture *self, guchar *src_data; int bpp; - GDK_DEBUG (MISC, "Using mmap() and memcpy() for downloading a dmabuf"); + GDK_DEBUG (DMABUF, "Using mmap() and memcpy() for downloading a dmabuf"); height = gdk_texture_get_height (GDK_TEXTURE (self)); bpp = gdk_memory_format_bytes_per_pixel (gdk_texture_get_format (GDK_TEXTURE (self))); @@ -299,7 +299,7 @@ gdk_dmabuf_texture_new_from_builder (GdkDmabufTextureBuilder *builder, return NULL; } - GDK_DEBUG (MISC, "Dmabuf texture in format %c%c%c%c:%#lx", + GDK_DEBUG (DMABUF, "Dmabuf texture in format %c%c%c%c:%#lx", fourcc & 0xff, (fourcc >> 8) & 0xff, (fourcc >> 16) & 0xff, (fourcc >> 24) & 0xff, modifier); self = g_object_new (GDK_TYPE_DMABUF_TEXTURE,