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:
parent
dda45a7829
commit
3a5cb1c441
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue