• J
    drm/i915: split out Ironlake pipe bpp picking code · 5a354204
    Jesse Barnes 提交于
    Figuring out which pipe bpp to use is a bit painful.  It depends on both
    the encoder and display configuration attached to a pipe.  For instance,
    to drive a 24bpp framebuffer out to an 18bpp panel, we need to use 6bpc
    on the pipe but also enable dithering.  But driving that same
    framebuffer to a DisplayPort output on another pipe means using 8bpc and
    no dithering.
    
    So split out and enhance the code to handle the various cases, returning
    an appropriate pipe bpp as well as whether dithering should be enabled.
    
    Save the resulting pipe bpp in the intel_crtc struct for use by encoders
    in calculating bandwidth requirements (defaults to 24bpp on pre-ILK).
    Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
    Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk>
    Signed-off-by: NKeith Packard <keithp@keithp.com>
    5a354204
intel_drv.h 12.1 KB