Internal representation of XRGB2101010 DRM format not opaque
In meta_wayland_dma_buf_realize_texture
we translate DRM_FORMAT_XRGB2101010
to COGL_PIXEL_FORMAT_ARGB_2101010
. This sets the COGL_A_BIT
, making meta_shaped_texture_has_alpha
report true
for any texture with this format.
This is a problem, as DRM_FORMAT_XRGB2101010
is the typical chosen format by EGL when a config without alpha channel is requested. Clients doing that will likely not set an opaque region, making us waste resources.
We should probably introduce a COGL_PIXEL_FORMAT_XRGB_2101010
format (and likewise for all similar cases).