aboutsummaryrefslogtreecommitdiff
path: root/include/backend/drm/drm.h
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-12-22 18:42:59 +0100
committerSimon Ser <contact@emersion.fr>2021-01-10 11:24:35 +0100
commitd9bbc416a62c2d280e6921da6b25128a1b3a9e22 (patch)
tree5d59bb0dbe6c6c2c6031e6cb768155c70f96b6d7 /include/backend/drm/drm.h
parent91cb0fc4432592a8c0806d3e63dc77ce16c73cb6 (diff)
backend/drm: re-use FBs
Instead of importing buffers to GBM and KMS at each frame, cache them and re-use them while the wlr_buffer is alive. This is the same as [1] and [2] but for the DRM backend. [1]: https://github.com/swaywm/wlroots/pull/2538 [2]: https://github.com/swaywm/wlroots/pull/2539
Diffstat (limited to 'include/backend/drm/drm.h')
-rw-r--r--include/backend/drm/drm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h
index 23b06847..52aacf39 100644
--- a/include/backend/drm/drm.h
+++ b/include/backend/drm/drm.h
@@ -86,6 +86,7 @@ struct wlr_drm_backend {
struct wl_listener session_active;
struct wl_listener dev_change;
+ struct wl_list fbs; // wlr_drm_fb.link
struct wl_list outputs;
struct wlr_drm_renderer renderer;