drm/i915: fix bpc vs. bpp confusion in intel_crtc_compute_config
Subsystems (2)
PATCH 1/1 drm/i915: fix bpc vs. bpp confusion in intel_crtc_compute_config
Oops.
This regression has been introduced in
commit 5d2d38ddcac991f71c19d03d95bde8e14abc0352
Author: Daniel Vetter <[email protected]> Date: Wed Mar 27 00:45:01 2013 +0100
drm/i915: clean up pipe bpp confusion
--- drivers/gpu/drm/i915/intel_display.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/intel_display.c +2 -2
@@ -4006,9 +4006,9 @@ static int intel_crtc_compute_config(struct drm_crtc *crtc, adjusted_mode->hsync_start == adjusted_mode->hdisplay)return -EINVAL ; -if ((IS_G4X (dev) ||IS_VALLEYVIEW (dev)) && pipe_config->pipe_bpp >10 ) { +if ((IS_G4X (dev) ||IS_VALLEYVIEW (dev)) && pipe_config->pipe_bpp >10 *3 ) { pipe_config->pipe_bpp =10 *3 ;/* 12bpc is gen5+ */ - }else if (INTEL_INFO (dev)->gen <=4 && pipe_config->pipe_bpp >8 ) { + }else if (INTEL_INFO (dev)->gen <=4 && pipe_config->pipe_bpp >8 *3 ) {/* only a 8bpc pipe, with 6bpc dither through the panel fitter * for lvds. */ pipe_config->pipe_bpp =8 *3 ;
Signature · 1 line
1.7.11.7
Quoted 22 lines · On Wed, 17 Apr 2013 20:01:39 +0200 Daniel Vetter <[email protected]> wrote:
Oops.
This regression has been introduced in
commit
5d2d38ddcac991f71c19d03d95bde8e14abc0352Author: Daniel Vetter <[email protected]> Date: Wed Mar 27 00:45:01 2013 +0100drm/i915: clean up pipe bpp confusion
Reported-by Jesse Barnes <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/i915/intel_display.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/intel_display.c +0
-0@@ -4006,9 +4006,9 @@ static int intel_crtc_compute_config(struct drm_crtc *crtc, adjusted_mode->hsync_start == adjusted_mode->hdisplay)
drivers/gpu/drm/i915/intel_display.c static int intel_crtc_compute_config(struct drm_crtc *crtc, · line 4014
Quoted 10 lines
drivers/gpu/drm/i915/intel_display.c +2
-2return -EINVAL ; -if ((IS_G4X (dev) ||IS_VALLEYVIEW (dev)) && pipe_config->pipe_bpp >10 ) { +if ((IS_G4X (dev) ||IS_VALLEYVIEW (dev)) && pipe_config->pipe_bpp >10 *3 ) { pipe_config->pipe_bpp =10 *3 ;/* 12bpc is gen5+ */ - }else if (INTEL_INFO (dev)->gen <=4 && pipe_config->pipe_bpp >8 ) { + }else if (INTEL_INFO (dev)->gen <=4 && pipe_config->pipe_bpp >8 *3 ) {/* only a 8bpc pipe, with 6bpc dither through the panel fitter * for lvds. */ pipe_config->pipe_bpp =8 *3 ;
Yep, looks good. Thanks.
t-b me too).
Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center
Daniel Vetter
AppliedQuoted 38 lines · Jesse Barnes
Quoted 22 lines · On Wed, 17 Apr 2013 20:01:39 +0200 Daniel Vetter <[email protected]> wrote:
Oops.
This regression has been introduced in
commit
5d2d38ddcac991f71c19d03d95bde8e14abc0352Author: Daniel Vetter <[email protected]> Date: Wed Mar 27 00:45:01 2013 +0100drm/i915: clean up pipe bpp confusion
Reported-by Jesse Barnes <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/i915/intel_display.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/intel_display.c +0
-0@@ -4006,9 +4006,9 @@ static int intel_crtc_compute_config(struct drm_crtc *crtc, adjusted_mode->hsync_start == adjusted_mode->hdisplay)drivers/gpu/drm/i915/intel_display.c static int intel_crtc_compute_config(struct drm_crtc *crtc, · line 4014
Quoted 10 lines
drivers/gpu/drm/i915/intel_display.c +2
-2return -EINVAL ; -if ((IS_G4X (dev) ||IS_VALLEYVIEW (dev)) && pipe_config->pipe_bpp >10 ) { +if ((IS_G4X (dev) ||IS_VALLEYVIEW (dev)) && pipe_config->pipe_bpp >10 *3 ) { pipe_config->pipe_bpp =10 *3 ;/* 12bpc is gen5+ */ - }else if (INTEL_INFO (dev)->gen <=4 && pipe_config->pipe_bpp >8 ) { + }else if (INTEL_INFO (dev)->gen <=4 && pipe_config->pipe_bpp >8 *3 ) {/* only a 8bpc pipe, with 6bpc dither through the panel fitter * for lvds. */ pipe_config->pipe_bpp =8 *3 ;Yep, looks good. Thanks.
Quoted 2 lines
t-b me too).
Picked up for -fixes, thanks for the review.
-Daniel
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch