Commit 031bb305 authored by Xaver Hugl's avatar Xaver Hugl
Browse files

egldmabuf: if modifiers are not supported, send DRM_FORMAT_MOD_INVALID

An empty modifier list will get ignored and does not mean implicit
modifiers are allowed

CCBUG: 448284
parent e20f0966
Pipeline #123256 passed with stage
in 24 minutes and 39 seconds
......@@ -460,7 +460,7 @@ void EglDmabuf::setSupportedFormatsAndModifiers()
}
}
}
supportedFormats.insert(format, QSet<uint64_t>());
supportedFormats.insert(format, {DRM_FORMAT_MOD_INVALID});
}
qCDebug(KWIN_OPENGL) << "EGL driver advertises" << supportedFormats.count() << "supported dmabuf formats" << (eglQueryDmaBufModifiersEXT != nullptr ? "with" : "without") << "modifiers";
......
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