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:
Xaver Hugl 2021-07-07 03:40:06 +02:00
parent b23dfd55ac
commit 303132ae0f

View file

@ -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) {