From 18a72f7187ea2629671449ff6202292225235e82 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Mon, 3 Oct 2022 21:34:30 +0200 Subject: [PATCH] backends/drm: also force linear layout for dumb buffer cursors While it usually shouldn't make a difference, it ensures that the buffer import always works properly CCBUG: 456306 --- src/backends/drm/drm_egl_layer_surface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/drm/drm_egl_layer_surface.cpp b/src/backends/drm/drm_egl_layer_surface.cpp index ceb101fbf4..0e416a0279 100644 --- a/src/backends/drm/drm_egl_layer_surface.cpp +++ b/src/backends/drm/drm_egl_layer_surface.cpp @@ -59,7 +59,7 @@ void EglGbmLayerSurface::destroyResources() std::optional EglGbmLayerSurface::startRendering(const QSize &bufferSize, DrmPlane::Transformations renderOrientation, DrmPlane::Transformations bufferOrientation, const QMap> &formats, BufferTarget target) { - if (!checkGbmSurface(bufferSize, formats, target == BufferTarget::Linear)) { + if (!checkGbmSurface(bufferSize, formats, target == BufferTarget::Linear || target == BufferTarget::Dumb)) { return std::nullopt; } if (!m_gbmSurface->makeContextCurrent()) {