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:
parent
6ea8463ce6
commit
7384405add
2 changed files with 3 additions and 5 deletions
|
@ -355,11 +355,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());
|
||||
}
|
||||
|
||||
// update modes
|
||||
bool equal = m_conn->count_modes == m_modes.count();
|
||||
for (int i = 0; equal && i < m_conn->count_modes; i++) {
|
||||
|
|
|
@ -224,6 +224,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() ? pending.mode->blobId() : 0);
|
||||
|
|
Loading…
Reference in a new issue