Commit 6e41d728 authored by Xaver Hugl's avatar Xaver Hugl
Browse files

backends/drm: set max bpc in DrmPipeline

If it's only set in DrmConnector it may be reverted if a test commit fails

CCBUG: 448220
(cherry picked from commit 7384405a)
parent 9f2ed15b
Pipeline #153345 passed with stage
in 12 minutes and 5 seconds
......@@ -370,11 +370,6 @@ bool DrmConnector::updateProperties()
m_physicalSize = overwriteSize;
}
if (auto bpc = getProp(PropertyIndex::MaxBpc)) {
// make sure the driver allows us to use high bpc
bpc->setPending(bpc->maxValue());
}
// init modes
updateModes();
......
......@@ -241,6 +241,9 @@ void DrmPipeline::prepareAtomicModeset()
m_connector->getProp(DrmConnector::PropertyIndex::Underscan_vborder)->setPending(pending.overscan);
m_connector->getProp(DrmConnector::PropertyIndex::Underscan_hborder)->setPending(hborder);
}
if (const auto bpc = m_connector->getProp(DrmConnector::PropertyIndex::MaxBpc)) {
bpc->setPending(bpc->maxValue());
}
pending.crtc->setPending(DrmCrtc::PropertyIndex::Active, activePending());
pending.crtc->setPending(DrmCrtc::PropertyIndex::ModeId, activePending() ? mode->blobId() : 0);
......
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