mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-16 08:56:26 -05:00
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
This commit is contained in:
parent
91cb0fc443
commit
d9bbc416a6
4 changed files with 56 additions and 15 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue