Skip to content
  • Mario Kleiner's avatar
    modesetting: Handle mixed VRR and non-VRR display setups better. · 017ce263
    Mario Kleiner authored and Povilas Kanapickas's avatar Povilas Kanapickas committed
    
    
    In a setup with both VRR capable and non-VRR capable displays,
    it was so far inconsistent if the driver would allow use of
    VRR support or not, as "is_connector_vrr_capable" was set to
    whatever the capabilities of the last added drm output were.
    Iow. the plugging order of monitors determined the outcome.
    
    Fix this: Now if at least one display is VRR capable, the driver
    will treat an X-Screen as capable for VRR, plugging order no
    longer matters.
    
    Tested with a dual-display setup with one VRR monitor and one
    non-VRR monitor. This is also beneficial with the new Option
    "AsyncFlipSecondaries".
    
    When we are at it, also add some so far missing description of
    the "VariableRefresh" driver option, copied from amdgpu-ddx.
    
    Signed-off-by: default avatarMario Kleiner <mario.kleiner.de@gmail.com>
    017ce263