Commit 33f06ee1 authored by Xaver Hugl's avatar Xaver Hugl
Browse files

platforms/drm: fix init with explicit modifiers

When we're adding the output to the EglGbmBackend pipelines aren't necessarily
setup yet and are thus missing the modifier list. As creating the gbm surface
immediately is useless anyways, delay that until we need it, where the modifier
list is available.

(cherry picked from commit baebaa9e)
parent a8f519dc
......@@ -193,14 +193,8 @@ bool EglGbmBackend::addOutput(DrmAbstractOutput *drmOutput)
{
Output newOutput;
newOutput.output = drmOutput;
if (isPrimary()) {
if (!resetOutput(newOutput)) {
return false;
}
} else {
if (!renderingBackend()->addOutput(drmOutput)) {
return false;
}
if (!isPrimary() && !renderingBackend()->addOutput(drmOutput)) {
return false;
}
m_outputs.insert(drmOutput, newOutput);
return true;
......
Markdown is supported
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