Skip to content

libs: window: wayland: use dmabuf protocol if available

Michael Olbrich requested to merge mol/gstreamer-vaapi:dmabuf into master

Currently vaGetSurfaceBufferWl() is used to create wayland buffers. Unfortunately this is not implemented by the 'media-driver' and Mesa VA-API drivers. And the implementation provided by 'intel-vaapi-driver' is not compatible with a Wayland server that uses the iris Mesa driver.

So create the wayland buffers manually with the zwp_linux_dmabuf_v1 wayland protocol. Fall back to vaGetSurfaceBufferWl() if creating buffers via dambuf protocol fails.

Merge request reports