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
This commit is contained in:
Xaver Hugl 2022-03-20 21:06:50 +01:00
parent 6ea8463ce6
commit 7384405add
2 changed files with 3 additions and 5 deletions

View file

@ -355,11 +355,6 @@ bool DrmConnector::updateProperties()
m_physicalSize = overwriteSize; m_physicalSize = overwriteSize;
} }
if (auto bpc = getProp(PropertyIndex::MaxBpc)) {
// make sure the driver allows us to use high bpc
bpc->setPending(bpc->maxValue());
}
// update modes // update modes
bool equal = m_conn->count_modes == m_modes.count(); bool equal = m_conn->count_modes == m_modes.count();
for (int i = 0; equal && i < m_conn->count_modes; i++) { for (int i = 0; equal && i < m_conn->count_modes; i++) {

View file

@ -224,6 +224,9 @@ void DrmPipeline::prepareAtomicModeset()
m_connector->getProp(DrmConnector::PropertyIndex::Underscan_vborder)->setPending(pending.overscan); m_connector->getProp(DrmConnector::PropertyIndex::Underscan_vborder)->setPending(pending.overscan);
m_connector->getProp(DrmConnector::PropertyIndex::Underscan_hborder)->setPending(hborder); 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::Active, activePending());
pending.crtc->setPending(DrmCrtc::PropertyIndex::ModeId, activePending() ? pending.mode->blobId() : 0); pending.crtc->setPending(DrmCrtc::PropertyIndex::ModeId, activePending() ? pending.mode->blobId() : 0);