From 2d71eb720b6f497fe630728e43a3ad8f3edb23cd Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 15 Dec 2022 18:09:14 +0200 Subject: [PATCH] backends/wayland: Allocate buffers with GBM_USE_SCANOUT too It most likely doesn't matter in real life as many compositors don't use direct scanout for windowed surfaces, but it won't hurt. --- src/backends/wayland/wayland_egl_backend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/wayland/wayland_egl_backend.cpp b/src/backends/wayland/wayland_egl_backend.cpp index 4b54674cd0..6f3be7bc6b 100644 --- a/src/backends/wayland/wayland_egl_backend.cpp +++ b/src/backends/wayland/wayland_egl_backend.cpp @@ -63,7 +63,7 @@ WaylandEglLayerBuffer::WaylandEglLayerBuffer(const QSize &size, uint32_t format, size.width(), size.height(), format, - GBM_BO_USE_RENDERING); + GBM_BO_USE_SCANOUT | GBM_BO_USE_RENDERING); } if (!m_bo) {