drm/i915/dp: Dither down to 6bpc if it makes the mode fit
authorAdam Jackson <ajax@redhat.com>
Tue, 13 Dec 2011 23:41:00 +0000 (15:41 -0800)
committerKeith Packard <keithp@keithp.com>
Fri, 16 Dec 2011 16:49:59 +0000 (08:49 -0800)
commit3b5c78a35cf7511c15e09a9b0ffab290a42d9bcf
tree1ac33469f850f6c84df493974cf6034991dcd0c1
parentf45b55575cedb7efa782e43f1ea74338456d0381
drm/i915/dp: Dither down to 6bpc if it makes the mode fit

Some active adaptors (VGA usually) only have two lanes at 2.7GHz.
That's a maximum pixel clock of 144MHz at 8bpc, but 192MHz at 6bpc.

Fixes Asus UX31 panel being black at startup due to no valid modes since
dc22ee6fc18ce0f15424e753e8473c306ece95c1.

v2: Rebased to current code, resulting in the fix applying to EDP panels as
    well.  Also changed from spatio-temporal to just spatial dithering on
    pre-ironlake, to be conssitent (and less visual flicker)

Signed-off-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Tested-by: Eric Anholt <eric@anholt.net>
Tested-by: Dirk Hohndel <hohndel@infradead.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_drv.h