Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

backend/drm: re-use FBs #2568

Merged
merged 5 commits into from
Jan 10, 2021
Merged

backend/drm: re-use FBs #2568

merged 5 commits into from
Jan 10, 2021

Conversation

emersion
Copy link
Member

@emersion emersion commented Dec 22, 2020

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 #2538 and #2539 but for the DRM backend.

Closes: #2276

@emersion emersion force-pushed the drm-reuse-buffers branch 2 times, most recently from fa57ce2 to fdc04a6 Compare December 22, 2020 17:59
This will be useful once we start re-using wlr_drm_fb.
Stop keeping track of buffers on the parent GPU when multi-GPU is used.

This removes support for export_dmabuf on secondary GPUs, but renderer
v6 will bring this back by managing the swapchains in wlr_output instead
of the backends.
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]: swaywm#2538
[2]: swaywm#2539
@emersion emersion merged commit d9bbc41 into swaywm:master Jan 10, 2021
@emersion emersion deleted the drm-reuse-buffers branch January 10, 2021 10:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

backend/drm: only import buffers once
1 participant