From b95c93517b9c56fd6b19bd254d10ea8a3d14b3df Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Sun, 18 Dec 2022 18:29:32 +0100 Subject: [PATCH] backends/drm: fix VRR detection The pending value always retains the value initially read and is not updated when the driver changes the property value. BUG: 463172 FIXED-IN: 5.26.5 --- src/backends/drm/drm_connector.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/backends/drm/drm_connector.cpp b/src/backends/drm/drm_connector.cpp index 2acb35ca9d..6f08327ceb 100644 --- a/src/backends/drm/drm_connector.cpp +++ b/src/backends/drm/drm_connector.cpp @@ -222,10 +222,8 @@ uint32_t DrmConnector::overscan() const bool DrmConnector::vrrCapable() const { - if (const auto &prop = getProp(PropertyIndex::VrrCapable)) { - return prop->pending(); - } - return false; + const auto prop = getProp(PropertyIndex::VrrCapable); + return prop && prop->current() == 1; } bool DrmConnector::hasRgbRange() const