drm/i915: Turn off pipe CSC when it's not needed
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 7 Feb 2019 20:21:44 +0000 (22:21 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 8 Feb 2019 12:30:59 +0000 (14:30 +0200)
commit0593d2cd38134b9db4227897ec81eb18ab90b54a
treea19dc9fbf65d70e2758a8391a9b7a96523d864e2
parent0fc3f8e7540f59e0e059b20d5a138e5f81bcf352
drm/i915: Turn off pipe CSC when it's not needed

As with pipe gamma we can avoid the potential precision loss from
the pipe csc unit when there is no need to use it. And again
we need the same logic for updating the planes.

v2: Rebase

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190207202146.26423-6-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/intel_color.c