Skip to content
  • Pekka Paalanen's avatar
    compositor-drm: combine mode list from heads · 060887a1
    Pekka Paalanen authored
    
    
    A single list of modes needs to be combined from the mode lists in each
    attached head. We could just concatenate the lists, but that might
    introduce duplicates. Try to avoid duplicates instead by using partially
    fuzzy matching.
    
    When a duplicate is found, try to figure out which is more suitable to
    use in place of both. If one has the preferred flag and the other
    doesn't, take the preferred one. Otherwise use the one already in the
    list.
    
    Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
    060887a1