backends/drm: don't check the test buffer if we don't need one

BUG: 452572
This commit is contained in:
Xaver Hugl 2022-04-21 17:41:06 +02:00
parent 941bae2810
commit 99761901ee

View file

@ -113,7 +113,7 @@ bool DrmPipeline::commitPipelinesAtomic(const QVector<DrmPipeline *> &pipelines,
return false;
};
for (const auto &pipeline : pipelines) {
if (!pipeline->pending.layer->checkTestBuffer()) {
if (pipeline->activePending() && !pipeline->pending.layer->checkTestBuffer()) {
qCWarning(KWIN_DRM) << "Checking test buffer failed for" << mode;
return failed();
}