Commit d0634166 authored by Xaver Hugl's avatar Xaver Hugl
Browse files

backends/drm: also check for properties in DrmPipeline::needsModeset

Otherwise we may be missing situations where a modeset is needed

BUG: 455814


(cherry picked from commit 0d302d5c)
parent 493870e9
Pipeline #202848 passed with stage
in 26 minutes and 2 seconds
......@@ -434,6 +434,20 @@ bool DrmPipeline::pruneModifier()
bool DrmPipeline::needsModeset() const
{
if (m_connector->needsModeset()) {
return true;
}
if (m_pending.crtc) {
if (m_pending.crtc->needsModeset()) {
return true;
}
if (auto primary = m_pending.crtc->primaryPlane(); primary && primary->needsModeset()) {
return true;
}
if (auto cursor = m_pending.crtc->cursorPlane(); cursor && cursor->needsModeset()) {
return true;
}
}
return m_pending.crtc != m_current.crtc
|| m_pending.active != m_current.active
|| m_pending.mode != m_current.mode
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment