Skip to content

vulkan/wsi: prefer the Wayland linux-dmabuf protocol

Simon Ser requested to merge emersion/mesa:vk-wl-linux-dmabuf into main

When the linux-dmabuf protocol is available, prefer it over the old wl_drm protocol. Previously wl_drm was used when modifiers aren't supported, however linux-dmabuf supports formats without modifiers too. In this case, linux-dmabuf will send a DRM_FORMAT_MOD_INVALID modifier for each supported format 1.

All of this allows compositors to better handle these buffers, getting a DMA-BUF and implementing features like direct scan-out.

A similar logic has been implemented for EGL 2.

Signed-off-by: Simon Ser contact@emersion.fr


cc @daniels

Tested with vkcube on AMD

Edited by Jordan Justen

Merge request reports