backends/drm: don't assume we have a cursor plane
CCBUG: 445507
This commit is contained in:
parent
e605ea0c46
commit
47d5d50bdf
1 changed files with 6 additions and 2 deletions
|
@ -176,7 +176,9 @@ bool DrmPipeline::commitPipelines(const QVector<DrmPipeline*> &pipelines, Commit
|
||||||
if (pipeline->pending.crtc) {
|
if (pipeline->pending.crtc) {
|
||||||
pipeline->pending.crtc->commitPending();
|
pipeline->pending.crtc->commitPending();
|
||||||
pipeline->pending.crtc->primaryPlane()->commitPending();
|
pipeline->pending.crtc->primaryPlane()->commitPending();
|
||||||
pipeline->pending.crtc->cursorPlane()->commitPending();
|
if (pipeline->pending.crtc->cursorPlane()) {
|
||||||
|
pipeline->pending.crtc->cursorPlane()->commitPending();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (mode != CommitMode::Test) {
|
if (mode != CommitMode::Test) {
|
||||||
pipeline->m_modesetPresentPending = false;
|
pipeline->m_modesetPresentPending = false;
|
||||||
|
@ -186,7 +188,9 @@ bool DrmPipeline::commitPipelines(const QVector<DrmPipeline*> &pipelines, Commit
|
||||||
pipeline->pending.crtc->primaryPlane()->setNext(pipeline->m_primaryBuffer);
|
pipeline->pending.crtc->primaryPlane()->setNext(pipeline->m_primaryBuffer);
|
||||||
pipeline->pending.crtc->commit();
|
pipeline->pending.crtc->commit();
|
||||||
pipeline->pending.crtc->primaryPlane()->commit();
|
pipeline->pending.crtc->primaryPlane()->commit();
|
||||||
pipeline->pending.crtc->cursorPlane()->commit();
|
if (pipeline->pending.crtc->cursorPlane()) {
|
||||||
|
pipeline->pending.crtc->cursorPlane()->commit();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
pipeline->m_current = pipeline->pending;
|
pipeline->m_current = pipeline->pending;
|
||||||
if (modeset && pipeline->activePending()) {
|
if (modeset && pipeline->activePending()) {
|
||||||
|
|
Loading…
Reference in a new issue