wayland-dma-buf: Add support for DRM_FORMAT_XBGR2101010
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1810>
This commit is contained in:
parent
9ededb9b34
commit
3192b0239a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user