]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdf787bc7aa9ea341c727e39589484356033565f4
tree1ac33469f850f6c84df493974cf6034991dcd0c1
parent1a09bec10aa7e22ee060cc6a99664a2a57c68ee1
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
9ad157766c2074d8f86bfff8c8e2e80f99e4ad0e.

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