backends/drm: add some warnings for failing atomic tests
This commit is contained in:
parent
661fbec244
commit
255e9882b6
2 changed files with 2 additions and 0 deletions
|
@ -328,6 +328,7 @@ bool DrmGpu::updateOutputs()
|
|||
}
|
||||
}
|
||||
} else {
|
||||
qCWarning(KWIN_DRM, "Failed to find a working setup for new outputs!");
|
||||
for (const auto &pipeline : qAsConst(m_pipelines)) {
|
||||
pipeline->revertPendingChanges();
|
||||
}
|
||||
|
|
|
@ -343,6 +343,7 @@ bool DrmOutput::setGammaRamp(const GammaRamp &gamma)
|
|||
m_renderLoop->scheduleRepaint();
|
||||
return true;
|
||||
} else {
|
||||
qCWarning(KWIN_DRM) << "Applying gamma ramp failed on output" << this;
|
||||
m_pipeline->revertPendingChanges();
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue