diff options
author | Simon Ser <contact@emersion.fr> | 2019-10-22 19:29:18 +0200 |
---|---|---|
committer | Scott Anderson <ascent12@hotmail.com> | 2019-10-22 21:50:31 +0000 |
commit | fd25e2ca116f4c16f48aa62cabf46ce171f2bf41 (patch) | |
tree | 11620e521ab0e470378e218fc93f3aecde5c0b84 /include/backend | |
parent | 61a6f2b928bc585040a7eb02594562c2fb5d66a9 (diff) |
backend/drm: track gbm_bo during direct scan-out
We need to destroy the gbm_bo we imported and drmModeRmFb.
Closes: https://github.com/swaywm/sway/issues/4662
Diffstat (limited to 'include/backend')
-rw-r--r-- | include/backend/drm/drm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h index fdee3fad..7f66f9c9 100644 --- a/include/backend/drm/drm.h +++ b/include/backend/drm/drm.h @@ -131,8 +131,10 @@ struct wlr_drm_connector { struct wlr_dmabuf_attributes pending_dmabuf; // Buffer submitted to the kernel but not yet displayed struct wlr_buffer *pending_buffer; + struct gbm_bo *pending_bo; // Buffer currently being displayed struct wlr_buffer *current_buffer; + struct gbm_bo *current_bo; }; struct wlr_drm_backend *get_drm_backend_from_backend( |