diff options
author | Jonas Ã…dahl <jadahl@gmail.com> | 2019-09-18 16:40:41 +0200 |
---|---|---|
committer | Robert Mader <robert.mader@posteo.de> | 2020-08-07 09:02:49 +0000 |
commit | 8e673d5798049210d0afee31e130e112b260265e (patch) | |
tree | 85f2878791f7edbdcdb7555359ed74dc620af878 /src/wayland | |
parent | 115de303b0675efc2e8b0dcc96ae9444a7f114ae (diff) | |
download | mutter-8e673d5798049210d0afee31e130e112b260265e.tar.gz |
wayland/dma-buf: Advertise support for XRGB2101010 too
https://gitlab.gnome.org/GNOME/mutter/merge_requests/804
Diffstat (limited to 'src/wayland')
-rw-r--r-- | src/wayland/meta-wayland-dma-buf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wayland/meta-wayland-dma-buf.c b/src/wayland/meta-wayland-dma-buf.c index 1faea44df..c92c33226 100644 --- a/src/wayland/meta-wayland-dma-buf.c +++ b/src/wayland/meta-wayland-dma-buf.c @@ -115,6 +115,9 @@ meta_wayland_dma_buf_realize_texture (MetaWaylandBuffer *buffer, case DRM_FORMAT_ARGB8888: cogl_format = COGL_PIXEL_FORMAT_ARGB_8888_PRE; break; + case DRM_FORMAT_XRGB2101010: + cogl_format = COGL_PIXEL_FORMAT_ARGB_2101010; + break; case DRM_FORMAT_ARGB2101010: cogl_format = COGL_PIXEL_FORMAT_ARGB_2101010_PRE; break; @@ -670,6 +673,7 @@ dma_buf_bind (struct wl_client *client, send_modifiers (resource, DRM_FORMAT_ARGB8888); send_modifiers (resource, DRM_FORMAT_XRGB8888); send_modifiers (resource, DRM_FORMAT_ARGB2101010); + send_modifiers (resource, DRM_FORMAT_XRGB2101010); send_modifiers (resource, DRM_FORMAT_RGB565); } |