diff options
author | Simon Ser <contact@emersion.fr> | 2020-12-22 18:23:28 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-01-10 11:24:35 +0100 |
commit | 91cb0fc4432592a8c0806d3e63dc77ce16c73cb6 (patch) | |
tree | a2261095c9dbcf92a4d50fab32bce55f81325cd6 /backend/drm/drm.c | |
parent | 5bd86b94f9a6f3b41d1bc4bbf2985632fdd6d0a7 (diff) |
backend/drm: only keep track of local buffer
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.
Diffstat (limited to 'backend/drm/drm.c')
-rw-r--r-- | backend/drm/drm.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 3340d424..6b6e49a6 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -630,10 +630,14 @@ static bool drm_connector_export_dmabuf(struct wlr_output *output, struct wlr_drm_backend *drm = conn->backend; struct wlr_drm_crtc *crtc = conn->crtc; + if (drm->parent) { + // We don't keep track of the original buffer on the parent GPU when + // using multi-GPU. + return false; + } if (!drm->session->active) { return false; } - if (!crtc) { return false; } |