From 44ba603c0ef5ee05e89e7021c7df8061b3d5f56b Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 4 May 2019 12:07:37 +0300 Subject: backend/drm: hold buffers while scanning out --- include/backend/drm/drm.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h index a20002b0..3821c358 100644 --- a/include/backend/drm/drm.h +++ b/include/backend/drm/drm.h @@ -149,7 +149,12 @@ struct wlr_drm_connector { struct wl_event_source *retry_pageflip; struct wl_list link; + // DMA-BUF to be displayed on next commit struct wlr_dmabuf_attributes pending_dmabuf; + // Buffer submitted to the kernel but not yet displayed + struct wlr_buffer *pending_buffer; + // Buffer currently being displayed + struct wlr_buffer *current_buffer; }; struct wlr_drm_backend *get_drm_backend_from_backend( -- cgit v1.2.3