drm/i915: read bpp from vbt only for older panels
authorThulasimani,Sivakumar <sivakumar.thulasimani@intel.com>
Fri, 31 Jul 2015 05:35:27 +0000 (11:05 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 5 Aug 2015 08:30:58 +0000 (10:30 +0200)
commit22ce5628a1df81b50fc86fb686f470f15c1c96ef
tree6090021a36c47b2333860a7584f5d01d2aa23e08
parentd37ae19a6c21bc358f69e1dca410743c98347fe2
drm/i915: read bpp from vbt only for older panels

BPP bits defined in VBT should be used only on panels whose
edid version is 1.3 or older. EDID version 1.4 introduced offsets
where bpp is defined and read into display_info, hence bpp from
VBT will be used only when bpc in display_info is zero.

v2: use display_info.bpc for deciding when to use vbt_bpp (Jani)

Signed-off-by: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c