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:
parent
2668904ae1
commit
b95c93517b
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue