• Daniel Vetter's avatar
    drm/i915: introduce struct intel_crtc_config · b8cecdf5
    Daniel Vetter authored
    Currently only containing the requested and the adjusted mode. And
    only crtc callbacks are converted somewhat to it, encoders will be
    done on a as-needed basis (simply too much churn in one patch
    otherwise).
    
    Future patches will add tons more useful stuff to this struct,
    starting with the very simple.
    
    v2: Store the pipe_config in the intel_crtc, so that the ->mode-set,
    ->enable and also ->disable have easy access to it.
    
    v3: Store the pipe config in the right crtc ...
    
    v4: Rebased.
    
    v5: Fixup an OOPS when trying to kfree an ERR_PTR.
    
    v6: Used drm_moode_copy and some other small cleanups as suggested
    by Ville Syrjälä.
    
    v7: drm_mode_copy preserves the mode id of the destination, so no need
    to clear it again (Ville).
    
    v8: Break a long line spotted by Paulo.
    Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
    Reviewed-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
    Reviewed-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    b8cecdf5
i915_drv.h 58.8 KB