mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-16 20:38:06 +02:00
Follow up of "vulkan/wsi/wayland: add default dma-buf feedback support". The surface feedback is dynamic, differently from the default feedback. When we receive per-surface feedback, that means that we could be using a better DRM format/modifier pair for the chain's buffers. So the next time that the client calls vkAcquireNextImageKHR(), we return VK_SUBOPTIMAL_KHR instead of VK_SUCCESS. Some clients will re-create the swapchain when receiving SUBOPTIMAL, and for those we'll re-create the chain. An optimal DRM format/modifier pair from the per-surface feedback will be used to create the images of this swapchain. Note that for now we won't be able to change the DRM format, only the modifier. That's good enough for many cases in which direct scanout would not be possible because of the modifier. In order to be able to switch the format, we'll need a mechanism to negotiate preferred formats with clients. Currently we can only expose a set of supported formats all with the same preference. Reviewed-by: Simon Ser <contact@emersion.fr> Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12226> |
||
|---|---|---|
| .. | ||
| meson.build | ||
| wsi_common.c | ||
| wsi_common.h | ||
| wsi_common_display.c | ||
| wsi_common_display.h | ||
| wsi_common_drm.c | ||
| wsi_common_drm.h | ||
| wsi_common_private.h | ||
| wsi_common_queue.h | ||
| wsi_common_wayland.c | ||
| wsi_common_win32.c | ||
| wsi_common_x11.c | ||