DRM_FORMAT_XRGB2101010 dma buffer format is not handled causing mpv failure on Wayland with Iris Mesa's driver
mpv may use DRM_FORMAT_XRGB2101010 dma buffer however mutter doesn't handle it producing the following error:
[destroyed object]: error 7: failed to import supplied dmabufs: Unsupported buffer format 808669784
Setup:
- gen8+ Intel GPU (Broadwell and later)
- Mesa >= 19.1
- Wayland
-
MESA_LOADER_DRIVER_OVERRIDE=iris
in/etc/profile
or.profile
to enable iris driver mpv --hwdec=no
In meta-wayland-dma-buf.c#L98-124 I don't see DRM_FORMAT_XRGB2101010
being handled, only DRM_FORMAT_ARGB2101010
.
On the other hand mpv may use XRGB2101010
for the surface mpv/context_drm_egl.c#L766-L774. And by launching mpv with WAYLAND_DEBUG=1
I see dma buffer with format 808669784
is being created.
Original issue in Mesa: https://gitlab.freedesktop.org/mesa/mesa/issues/2220