backends/drm: don't assume we shouldn't use modifiers without IN_FORMATS

Instead, use a linear modifier
This commit is contained in:
Xaver Hugl 2022-01-25 21:37:54 +01:00
parent 216d0d6c45
commit bbc5952f19

View file

@ -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()) {