aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Syrjälä <[email protected]>2023-04-13 19:49:11 +0300
committerVille Syrjälä <[email protected]>2023-05-26 17:55:13 +0300
commitd9ce4e430790ba4f45e5febd7b4bd87b0f23563e (patch)
treeb6db2f1c812a5208ede4ee9c6a3813a2074053a3
parent35c812050ebdfe5ce576cf04d1d43d02dc2dfe19 (diff)
drm/i915: Expose crtc CTM property on ilk/snb
The ilk/snb code is internally fully capable of handling the CTM property, so expose it. Note that we still choose not to expose DEGAMMA_LUT though. The hardware is capable if degamma or gamma, but not both simultanously due to lack of the split gamma mode. Exposing both LUTs might encourage userspace to try enabling both at the same time. Signed-off-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Uma Shankar <[email protected]>
-rw-r--r--drivers/gpu/drm/i915/display/intel_color.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_color.c b/drivers/gpu/drm/i915/display/intel_color.c
index 744b3a4ec99a..0f2c3c22cf59 100644
--- a/drivers/gpu/drm/i915/display/intel_color.c
+++ b/drivers/gpu/drm/i915/display/intel_color.c
@@ -3473,7 +3473,7 @@ void intel_color_crtc_init(struct intel_crtc *crtc)
gamma_lut_size = DISPLAY_INFO(i915)->color.gamma_lut_size;
degamma_lut_size = DISPLAY_INFO(i915)->color.degamma_lut_size;
- has_ctm = degamma_lut_size != 0;
+ has_ctm = DISPLAY_VER(i915) >= 5 && !IS_VALLEYVIEW(i915);
/*
* "DPALETTE_A: NOTE: The 8-bit (non-10-bit) mode is the