From 37ef9d73563ec0ce3475b8a01bbfd84a94a4fef7 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 14 Apr 2023 20:28:46 +0200 Subject: [PATCH] backend/drm: stop checking for wlr_client_buffer wlr_client_buffer is a bad indicator for direct scan-out. Compositors might use the underlying wlr_buffer instead. --- backend/drm/drm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/drm/drm.c b/backend/drm/drm.c index fdbab3bf..5e334545 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -1690,8 +1690,7 @@ static void handle_page_flip(int fd, unsigned seq, * data between the GPUs, even if we were using the direct scanout * interface. */ - if (!drm->parent && plane->current_fb && - wlr_client_buffer_get(plane->current_fb->wlr_buf)) { + if (!drm->parent) { present_flags |= WLR_OUTPUT_PRESENT_ZERO_COPY; }