[plasma/kwin] src/backends/drm: backends/drm: also allow linear buffers for legacy "primary plane"
Xaver Hugl <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 6e04000e7d310a716aa6d3b623d197db5a36f678 by Xaver Hugl.
Committed on 16/07/2026 at 18:38.
Pushed by zamundaaa into branch 'master'.
backends/drm: also allow linear buffers for legacy "primary plane"
While the modifier isn't "real" without explicit modifier support, this allows
for example udmabuf to be used with vkms.
M +1 -1 src/backends/drm/drm_layer.cpp
https://invent.kde.org/plasma/kwin/-/commit/6e04000e7d310a716aa6d3b623d197db5a36f678
diff --git a/src/backends/drm/drm_layer.cpp b/src/backends/drm/drm_layer.cpp
index 7e64814d9ad..8638df44549 100644
--- a/src/backends/drm/drm_layer.cpp
+++ b/src/backends/drm/drm_layer.cpp
@@ -114,7 +114,7 @@ DrmOutput *DrmPipelineLayer::drmOutput() const
return static_cast<DrmOutput *>(m_output.get());
}
-static const FormatModifierMap s_legacyFormats = {{DRM_FORMAT_XRGB8888, {DRM_FORMAT_MOD_INVALID}}};
+static const FormatModifierMap s_legacyFormats = {{DRM_FORMAT_XRGB8888, {DRM_FORMAT_MOD_INVALID, DRM_FORMAT_MOD_LINEAR}}};
static const FormatModifierMap s_legacyCursorFormats = {{DRM_FORMAT_ARGB8888, {DRM_FORMAT_MOD_LINEAR}}};
FormatModifierMap DrmPipelineLayer::supportedDrmFormats() const