From 303132ae0f21579d589d73b5a613f2699055aaac Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Wed, 7 Jul 2021 03:40:06 +0200 Subject: [PATCH] platforms/drm: update plane properties before updating outputs Seems like some drivers change the properties in the time it takes to initialize the scene --- src/plugins/platforms/drm/drm_gpu.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/platforms/drm/drm_gpu.cpp b/src/plugins/platforms/drm/drm_gpu.cpp index 235704f512..405d7ec8f3 100644 --- a/src/plugins/platforms/drm/drm_gpu.cpp +++ b/src/plugins/platforms/drm/drm_gpu.cpp @@ -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 connector(drmModeGetConnector(m_fd, con->id())); if (!connector) {