aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-04-14 20:28:46 +0200
committerSimon Ser <contact@emersion.fr>2023-07-14 15:20:35 +0200
commit37ef9d73563ec0ce3475b8a01bbfd84a94a4fef7 (patch)
tree64e1356776bcad9791bee083ccbbaaf906283484
parent67447d6cb407ac5b6405b4dbae01a38567feb111 (diff)
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.
-rw-r--r--backend/drm/drm.c3
1 files changed, 1 insertions, 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;
}