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