aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorJonnyMako <jhnmlkvch9@gmail.com>2020-05-11 01:51:41 -0500
committerGitHub <noreply@github.com>2020-05-11 08:51:41 +0200
commit1139234117f045e6e37ac585f8026b3c125d2ceb (patch)
tree6c9a86cc1fa77c0a50a762f3d3041399b888cf34 /backend
parentf72686c0b65b9525c9003d43eb626d8c7f4cbae8 (diff)
backend/drm: fix missing cursor on external monitors with multi-GPU setup and nouveau
We need to make the multi-GPU surface current before the glFinish call. Closes: https://github.com/swaywm/sway/issues/5319
Diffstat (limited to 'backend')
-rw-r--r--backend/drm/drm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index d0928853..9e71e45e 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -1026,6 +1026,7 @@ static bool drm_connector_set_cursor(struct wlr_output *output,
}
if (plane->cursor_enabled) {
+ drm_fb_acquire(&plane->pending_fb, drm, &plane->mgpu_surf);
/* Workaround for nouveau buffers created with GBM_BO_USER_LINEAR are
* placed in NOUVEAU_GEM_DOMAIN_GART. When the bo is attached to the
* cursor plane it is moved to NOUVEAU_GEM_DOMAIN_VRAM. However, this