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
This commit is contained in:
Xaver Hugl 2022-12-18 18:29:32 +01:00
parent 2668904ae1
commit b95c93517b

View file

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