]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: use adjusted_mode instead of mode for checking the 6bpc force flag
authorJani Nikula <jani.nikula@intel.com>
Wed, 26 Sep 2012 15:43:10 +0000 (18:43 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 27 Sep 2012 06:42:10 +0000 (08:42 +0200)
commit37e0256ff8bfd5ff9e619deda90ab69c95c2138d
treebcbc9e7dda4b56b4f886b27865fc6a9c684ea73d
parent6950e5da3ba76c8a7fb7817e67705c42bd05183d
drm/i915: use adjusted_mode instead of mode for checking the 6bpc force flag

The dithering introduced in

commit df787bc7aa9ea341c727e39589484356033565f4
Author: Adam Jackson <ajax@redhat.com>
Date:   Tue Dec 13 15:41:00 2011 -0800

    drm/i915/dp: Dither down to 6bpc if it makes the mode fit

stores the INTEL_MODE_DP_FORCE_6BPC flag in the private_flags of the
adjusted mode, while i9xx_crtc_mode_set() and ironlake_crtc_mode_set() use
the original mode, without the flag, so it would never have any
effect. However, the BPC was clamped by VBT settings, making things work by
coincidence, until that part was removed in

commit 2daa710e93ee4e09b4b7a3369ee10cf33f16d2e9
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Fri Aug 10 11:10:20 2012 +0200

Use adjusted_mode instead of mode when checking for
INTEL_MODE_DP_FORCE_6BPC to make the flag have effect.

v2: Don't forget to fix this in i9xx_crtc_mode_set() also, pointed out by
Daniel both before and after sending the first patch.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=47621
CC: Adam Jackson <ajax@redhat.com>
CC: stable@vger.kernel.org
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c