[mutter] wayland-dma-buf: Add support for DRM_FORMAT_XBGR2101010
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] wayland-dma-buf: Add support for DRM_FORMAT_XBGR2101010
- Date: Mon, 20 Sep 2021 15:08:32 +0000 (UTC)
commit 3192b0239aaae1e1b4dd9d5f18c4c6def96bd54d
Author: Robert Mader <robert mader posteo de>
Date: Mon Sep 20 16:08:32 2021 +0200
wayland-dma-buf: Add support for DRM_FORMAT_XBGR2101010
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1810>
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 25e517a1c4..ae1f0f9422 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]