backends/drm: only set pageflipPending when wanted

It shouldn't be set when the pipeline wants to be disabled. Whenever that
happens it will wait forever for the pageflip that doesn't come
This commit is contained in:
Xaver Hugl 2021-11-25 15:41:47 +01:00
parent dda45a7829
commit 3a5cb1c441

View file

@ -183,7 +183,9 @@ bool DrmPipeline::commitPipelines(const QVector<DrmPipeline*> &pipelines, Commit
}
}
if (mode != CommitMode::Test) {
pipeline->m_pageflipPending = true;
if (pipeline->activePending()) {
pipeline->m_pageflipPending = true;
}
pipeline->m_connector->commit();
if (pipeline->pending.crtc) {
pipeline->pending.crtc->primaryPlane()->setNext(pipeline->m_primaryBuffer);