From 38e2bf34cf1cbb8e27325492bd48ce0129714e9c Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Wed, 3 Apr 2024 15:28:56 +0200 Subject: [PATCH] backends/drm: signal dmabuf feedback if an unsupported modifier is used Otherwise the per-surface feedback never gets updated, and direct scanout fails --- src/backends/drm/drm_egl_layer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backends/drm/drm_egl_layer.cpp b/src/backends/drm/drm_egl_layer.cpp index 68875d8ca7..03bf86ed77 100644 --- a/src/backends/drm/drm_egl_layer.cpp +++ b/src/backends/drm/drm_egl_layer.cpp @@ -119,6 +119,7 @@ bool EglGbmLayer::scanout(SurfaceItem *surfaceItem) return false; } if (!formats[dmabufAttributes->format].contains(dmabufAttributes->modifier)) { + m_dmabufFeedback.scanoutFailed(surface, formats); return false; } m_scanoutTransform = neededTransform;