Commit baf0f7b8 authored by Xaver Hugl's avatar Xaver Hugl
Browse files

backends/drm: add fallback for systems without gbm modifier support

It was missing for lease outputs, which causes all atomic tests to fail

BUG: 454961
parent c3f5f8ce
Pipeline #188138 passed with stage
in 13 minutes and 58 seconds
......@@ -40,6 +40,10 @@ bool DrmLeaseEglGbmLayer::checkTestBuffer()
modifiers << mod;
newBo = gbm_bo_create_with_modifiers(m_pipeline->gpu()->gbmDevice(), size.width(), size.height(), DRM_FORMAT_XRGB8888, modifiers.constData(), mods.count());
if (!newBo && errno == ENOSYS) {
// gbm implementation doesn't support modifiers
newBo = gbm_bo_create(m_pipeline->gpu()->gbmDevice(), size.width(), size.height(), DRM_FORMAT_XRGB8888, GBM_BO_USE_SCANOUT);
if (newBo) {
m_framebuffer = DrmFramebuffer::createFramebuffer(std::make_shared<GbmBuffer>(m_pipeline->gpu(), newBo));
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