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.
This commit is contained in:
Simon Ser 2023-04-14 20:28:46 +02:00
parent 67447d6cb4
commit 37ef9d7356
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}