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.
This commit is contained in:
Vlad Zahorodnii 2022-12-15 18:09:14 +02:00
parent a14998b790
commit 2d71eb720b

View file

@ -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) {