From 3192b0239aaae1e1b4dd9d5f18c4c6def96bd54d Mon Sep 17 00:00:00 2001 From: Robert Mader Date: Mon, 20 Sep 2021 16:08:32 +0200 Subject: [PATCH] wayland-dma-buf: Add support for DRM_FORMAT_XBGR2101010 Part-of: --- src/wayland/meta-wayland-dma-buf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wayland/meta-wayland-dma-buf.c b/src/wayland/meta-wayland-dma-buf.c index 25e517a1c..ae1f0f942 100644 --- a/src/wayland/meta-wayland-dma-buf.c +++ b/src/wayland/meta-wayland-dma-buf.c @@ -124,6 +124,9 @@ meta_wayland_dma_buf_realize_texture (MetaWaylandBuffer *buffer, case DRM_FORMAT_ARGB2101010: cogl_format = COGL_PIXEL_FORMAT_ARGB_2101010_PRE; break; + case DRM_FORMAT_XBGR2101010: + cogl_format = COGL_PIXEL_FORMAT_XBGR_2101010; + break; case DRM_FORMAT_ABGR2101010: cogl_format = COGL_PIXEL_FORMAT_ABGR_2101010_PRE; break; @@ -714,6 +717,7 @@ dma_buf_bind (struct wl_client *client, send_modifiers (resource, DRM_FORMAT_ARGB2101010); send_modifiers (resource, DRM_FORMAT_ABGR2101010); send_modifiers (resource, DRM_FORMAT_XRGB2101010); + send_modifiers (resource, DRM_FORMAT_ABGR2101010); send_modifiers (resource, DRM_FORMAT_RGB565); send_modifiers (resource, DRM_FORMAT_ABGR16161616F); send_modifiers (resource, DRM_FORMAT_XBGR16161616F);