platforms/drm: update plane properties before updating outputs
Seems like some drivers change the properties in the time it takes to initialize the scene
This commit is contained in:
parent
b23dfd55ac
commit
303132ae0f
1 changed files with 5 additions and 0 deletions
|
@ -230,6 +230,11 @@ bool DrmGpu::updateOutputs()
|
|||
removedOutputs.append(removed);
|
||||
}
|
||||
|
||||
// before testing output configurations, update all the plane properties as they might have changed
|
||||
for (const auto &plane : qAsConst(m_planes)) {
|
||||
plane->updateProperties();
|
||||
}
|
||||
|
||||
for (DrmConnector *con : qAsConst(pendingConnectors)) {
|
||||
DrmScopedPointer<drmModeConnector> connector(drmModeGetConnector(m_fd, con->id()));
|
||||
if (!connector) {
|
||||
|
|
Loading…
Reference in a new issue