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
master
Xaver Hugl 3 years ago
parent dda45a7829
commit 3a5cb1c441

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

Loading…
Cancel
Save