aboutsummaryrefslogtreecommitdiff
path: root/include/backend/drm
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-05-04 12:07:37 +0300
committerDrew DeVault <sir@cmpwn.com>2019-06-07 09:06:11 -0400
commit44ba603c0ef5ee05e89e7021c7df8061b3d5f56b (patch)
tree2ed839b37da289a1d5cb1985bc1dff1190020580 /include/backend/drm
parentff6b352d754cd19fc33b87fbc3d9d524f6484e35 (diff)
backend/drm: hold buffers while scanning out
Diffstat (limited to 'include/backend/drm')
-rw-r--r--include/backend/drm/drm.h5
1 files changed, 5 insertions, 0 deletions
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(