dmabuf: Add a debug message for format fallback

This may be helpful in pinpointing why a dmabuf format behaves
unexpectedly.
This commit is contained in:
Matthias Clasen
2023-11-12 00:51:28 +01:00
parent 1f62c693cd
commit 7cf805c8b3

View File

@@ -377,6 +377,8 @@ gdk_dmabuf_get_memory_format (guint32 fourcc,
return premultiplied ? info->premultiplied_memory_format
: info->unpremultiplied_memory_format;
GDK_DEBUG (DMABUF, "Falling back to generic ARGB for dmabuf format %.4s", (char *)&fourcc);
return premultiplied ? GDK_MEMORY_A8R8G8B8_PREMULTIPLIED
: GDK_MEMORY_A8R8G8B8;
}