diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-04-17 14:01:39 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-04-18 03:43:33 -0400 |
commit | bd080ee57c2173cefdcadc39c7863a76c249d049 (patch) | |
tree | 7cf965d2b7e677020fe1cbe9d7f89bdfce6b4884 | |
parent | 3b117c8f2815bc4dd36b0b2c4b6490ad7d10b758 (diff) |
drm/i915: fix bpc vs. bpp confusion in intel_crtc_compute_config
Oops.
This regression has been introduced in
commit 5d2d38ddcac991f71c19d03d95bde8e14abc0352
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date: Wed Mar 27 00:45:01 2013 +0100
drm/i915: clean up pipe bpp confusion
Reported-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index c5bf283c27b3..6e423e04c35e 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -4003,9 +4003,9 @@ static bool intel_crtc_compute_config(struct drm_crtc *crtc, | |||
4003 | adjusted_mode->hsync_start == adjusted_mode->hdisplay) | 4003 | adjusted_mode->hsync_start == adjusted_mode->hdisplay) |
4004 | return false; | 4004 | return false; |
4005 | 4005 | ||
4006 | if ((IS_G4X(dev) || IS_VALLEYVIEW(dev)) && pipe_config->pipe_bpp > 10) { | 4006 | if ((IS_G4X(dev) || IS_VALLEYVIEW(dev)) && pipe_config->pipe_bpp > 10*3) { |
4007 | pipe_config->pipe_bpp = 10*3; /* 12bpc is gen5+ */ | 4007 | pipe_config->pipe_bpp = 10*3; /* 12bpc is gen5+ */ |
4008 | } else if (INTEL_INFO(dev)->gen <= 4 && pipe_config->pipe_bpp > 8) { | 4008 | } else if (INTEL_INFO(dev)->gen <= 4 && pipe_config->pipe_bpp > 8*3) { |
4009 | /* only a 8bpc pipe, with 6bpc dither through the panel fitter | 4009 | /* only a 8bpc pipe, with 6bpc dither through the panel fitter |
4010 | * for lvds. */ | 4010 | * for lvds. */ |
4011 | pipe_config->pipe_bpp = 8*3; | 4011 | pipe_config->pipe_bpp = 8*3; |