[PATCH v4 6/7] drm/i915: Use drm_crtc_enable_color_mgmt()
Jyri Sarha
jsarha at ti.com
Wed May 25 20:43:29 UTC 2016
Use drm_crtc_enable_color_mgmt() in intel_color_init() instead of obsolete
drm_helper_crtc_enable_color_mgmt().
Signed-off-by: Jyri Sarha <jsarha at ti.com>
CC: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
I have not tested this change, only compiled it, but functionally it
should be the same. Probably it would make sense to get rid off the
condition for calling drm_crtc_enable_color_mgmt() all together.
drivers/gpu/drm/i915/intel_color.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/intel_color.c b/drivers/gpu/drm/i915/intel_color.c
index 1b3f974..522f5a2 100644
--- a/drivers/gpu/drm/i915/intel_color.c
+++ b/drivers/gpu/drm/i915/intel_color.c
@@ -547,7 +547,8 @@ void intel_color_init(struct drm_crtc *crtc)
/* Enable color management support when we have degamma & gamma LUTs. */
if (INTEL_INFO(dev)->color.degamma_lut_size != 0 &&
INTEL_INFO(dev)->color.gamma_lut_size != 0)
- drm_helper_crtc_enable_color_mgmt(crtc,
+ drm_crtc_enable_color_mgmt(crtc,
INTEL_INFO(dev)->color.degamma_lut_size,
+ true,
INTEL_INFO(dev)->color.gamma_lut_size);
}
--
1.9.1
More information about the dri-devel
mailing list