From bbc5952f1998d4483ce5fc62f2dffadfe9168678 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Tue, 25 Jan 2022 21:37:54 +0100 Subject: [PATCH] backends/drm: don't assume we shouldn't use modifiers without IN_FORMATS Instead, use a linear modifier --- src/backends/drm/drm_object_plane.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/drm/drm_object_plane.cpp b/src/backends/drm/drm_object_plane.cpp index bedf2eb153..6967fdd50d 100644 --- a/src/backends/drm/drm_object_plane.cpp +++ b/src/backends/drm/drm_object_plane.cpp @@ -99,7 +99,7 @@ bool DrmPlane::init() } } else { for (uint32_t i = 0; i < p->count_formats; i++) { - m_supportedFormats.insert(p->formats[i], {}); + m_supportedFormats.insert(p->formats[i], {DRM_FORMAT_MOD_LINEAR}); } } if (m_supportedFormats.isEmpty()) {