drm/i915: Fix pipe CSC post offset calculation
Subsystems (2)
PATCH 1/1 drm/i915: Fix pipe CSC post offset calculation
From: Ville Syrjälä <[email protected]>
We were miscalculating the pipe CSC post offset for the full->limited range conversion. The resulting post offset was double what it was supposed to be, which caused blacks to come out grey when using limited range output on HSW+.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=71769
--- drivers/gpu/drm/i915/intel_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_display.c +1 -1
@@ -5991,7 +5991,7 @@ static void intel_set_pipe_csc(struct drm_crtc *crtc)uint16_t postoff =0 ;if (intel_crtc->config.limited_color_range) - postoff = (16 * (1 <<13 ) /255 ) &0x1fff ; + postoff = (16 * (1 <<12 ) /255 ) &0x1fff ;I915_WRITE (PIPE_CSC_POSTOFF_HI (pipe), postoff);I915_WRITE (PIPE_CSC_POSTOFF_ME (pipe), postoff);
Signature · 6 lines
1.8.3.2 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Daniel Vetter
AppliedQuoted 11 lines · On Thu, Nov 28, 2013 at 10:10:38PM +0200, [email protected] wrote:
From: Ville Syrjälä <[email protected]>
We were miscalculating the pipe CSC post offset for the
full->limitedrange conversion. The resulting post offset was double what it was supposed to be, which caused blacks to come out grey when using limited range output on HSW+.Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=71769
Tested-by Lauri Mylläri <[email protected]>Signed-off-by Ville Syrjälä <[email protected]>
Picked up for -fixes, thanks for the patch.
-Daniel
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch