• Daniel Vetter's avatar
    drm/i915: add direct encoder disable/enable infrastructure · ef9c3aee
    Daniel Vetter authored
    Just prep work, not yet put to some use.
    
    Note that because we're still using the crtc helper to switch modes
    (and their complicated way to do partial modesets), we need to call
    the encoder's disable function unconditionally.
    
    But once this is cleaned up we shouldn't call the encoder's disable
    function unconditionally any more, because then we know that we'll
    only call it if the encoder is actually enabled. Also note that we
    then need to be careful about which crtc we're filtering the encoder
    list on: We want to filter on the crtc of the _current_ mode, not the
    one we're about to set up.
    
    For the enabling side we need to do the same trick. And again, we
    should be able to simplify this quite a bit when things have settled
    into place.
    
    Also note that this simply does not take cloning into account, so dpms
    needs to be handled specially for the few outputs where we even bother
    with it.
    Reviewed-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
    Signed-Off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    ef9c3aee
intel_display.c 196 KB