Commit 216d0d6c authored by Xaver Hugl's avatar Xaver Hugl
Browse files

backends/drm: only accept xrgb with legacy

xrgb is effectively universally supported, other formats may not be.
In order to make sure things work everywhere, assume only xrgb is supported.
parent 83275c3f
......@@ -103,9 +103,8 @@ bool DrmPlane::init()
}
}
if (m_supportedFormats.isEmpty()) {
qCWarning(KWIN_DRM) << "Driver doesn't advertise any formats for this plane. Falling back to XRGB8888 and ARGB8888 without modifiers";
qCWarning(KWIN_DRM) << "Driver doesn't advertise any formats for this plane. Falling back to XRGB8888 without explicit modifiers";
m_supportedFormats.insert(DRM_FORMAT_XRGB8888, {});
m_supportedFormats.insert(DRM_FORMAT_ARGB8888, {});
}
}
return success;
......
......@@ -458,8 +458,7 @@ DrmOutput *DrmPipeline::output() const
}
static const QMap<uint32_t, QVector<uint64_t>> legacyFormats = {
{DRM_FORMAT_XRGB8888, {}},
{DRM_FORMAT_ARGB8888, {}}
{DRM_FORMAT_XRGB8888, {}}
};
bool DrmPipeline::isFormatSupported(uint32_t drmFormat) const
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment