aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2018-05-21 14:56:12 -0400
committerJani Nikula <jani.nikula@intel.com>2018-06-07 04:39:01 -0400
commit47541443a62a278f0a0f9a03c5403cb15bd62ded (patch)
treed1e21aeb695cecf131c1370c3887a3b998ab9a80
parentbc61ec46e83f84b7f42bd775e18567471f1aaaa6 (diff)
drm/i915: Remove bogus NV12 PLANE_COLOR_CTL setup
We already handle the color encoding mode properly. Remove the broken NV12 special case. Cc: Vidya Srinivas <vidya.srinivas@intel.com> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Fixes: 8ed30ab6aced ("drm/i915: Enable YUV to RGB for Gen10 in Plane Ctrl Reg") Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180521185613.5097-1-ville.syrjala@linux.intel.com Reviewed-By: Vidya Srinivas <vidya.srinivas@intel.com> (cherry picked from commit 012d79e6a33f095c293fe2a02b2b3b26d8c6402c) Signed-off-by: Jani Nikula <jani.nikula@intel.com>
-rw-r--r--drivers/gpu/drm/i915/intel_display.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index ad588d564198..dee3a8e659f1 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -3690,11 +3690,6 @@ u32 glk_plane_color_ctl(const struct intel_crtc_state *crtc_state,
3690 plane_color_ctl |= glk_plane_color_ctl_alpha(fb->format->format); 3690 plane_color_ctl |= glk_plane_color_ctl_alpha(fb->format->format);
3691 3691
3692 if (intel_format_is_yuv(fb->format->format)) { 3692 if (intel_format_is_yuv(fb->format->format)) {
3693 if (fb->format->format == DRM_FORMAT_NV12) {
3694 plane_color_ctl |=
3695 PLANE_COLOR_CSC_MODE_YUV709_TO_RGB709;
3696 goto out;
3697 }
3698 if (plane_state->base.color_encoding == DRM_COLOR_YCBCR_BT709) 3693 if (plane_state->base.color_encoding == DRM_COLOR_YCBCR_BT709)
3699 plane_color_ctl |= PLANE_COLOR_CSC_MODE_YUV709_TO_RGB709; 3694 plane_color_ctl |= PLANE_COLOR_CSC_MODE_YUV709_TO_RGB709;
3700 else 3695 else
@@ -3703,7 +3698,7 @@ u32 glk_plane_color_ctl(const struct intel_crtc_state *crtc_state,
3703 if (plane_state->base.color_range == DRM_COLOR_YCBCR_FULL_RANGE) 3698 if (plane_state->base.color_range == DRM_COLOR_YCBCR_FULL_RANGE)
3704 plane_color_ctl |= PLANE_COLOR_YUV_RANGE_CORRECTION_DISABLE; 3699 plane_color_ctl |= PLANE_COLOR_YUV_RANGE_CORRECTION_DISABLE;
3705 } 3700 }
3706out: 3701
3707 return plane_color_ctl; 3702 return plane_color_ctl;
3708} 3703}
3709 3704