From 4848964c6036803b5fa0d88340960b44a113da67 Mon Sep 17 00:00:00 2001 From: Xaver Hugl <xaver.hugl@gmail.com> Date: Fri, 17 Sep 2021 00:40:41 +0200 Subject: [PATCH] platforms/drm: allow modesets when setting Broadcast RGB CCBUG: 442520 --- src/plugins/platforms/drm/drm_object_connector.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/plugins/platforms/drm/drm_object_connector.cpp b/src/plugins/platforms/drm/drm_object_connector.cpp index ed84987828..dfa6ae46a9 100644 --- a/src/plugins/platforms/drm/drm_object_connector.cpp +++ b/src/plugins/platforms/drm/drm_object_connector.cpp @@ -301,7 +301,11 @@ bool DrmConnector::vrrCapable() const bool DrmConnector::needsModeset() const { - return getProp(PropertyIndex::CrtcId)->needsCommit(); + if (getProp(PropertyIndex::CrtcId)->needsCommit()) { + return true; + } + const auto &rgb = getProp(PropertyIndex::Broadcast_RGB); + return rgb && rgb->needsCommit(); } void DrmConnector::updateModes()