Skip to content
  • Xaver Hugl's avatar
    platforms/drm: more dynamic crtc assignment · e2a08638
    Xaver Hugl authored
    Hardware constraints limit the number of crtcs and which connector + crtc
    combinations can work together. The current code is searching for working
    combinations when a hotplug happens but that's not enough, it also needs
    to happen when the user enables or disables outputs and when modesets are
    done, and the configuration change needs to be applied with a single atomic
    commit.
    
    This commit removes the hard dependency of DrmPipeline on crtcs by moving
    the pending state of outputs from the drm objects to DrmPipeline itself,
    which ensures that it's independent from the set of drm objects currently
    used. It also changes requests from KScreen to be applied truly atomically.
    e2a08638