backends/drm: add some warnings for failing atomic tests

This commit is contained in:
Xaver Hugl 2022-04-05 01:10:37 +02:00
parent 661fbec244
commit 255e9882b6
2 changed files with 2 additions and 0 deletions

View file

@ -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();
}

View file

@ -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;
}