@@ -387,6 +387,9 @@ int intel_crtc_init(struct drm_i915_private *dev_priv, enum pipe pipe)
if (drm_crtc_create_histogram_property(&crtc->base,
crtc->histogram->caps))
drm_err(&dev_priv->drm, "Failed to initialize histogram properties\n");
+ if (drm_crtc_create_iet_lut_property(&crtc->base,
+ crtc->histogram->iet_caps))
+ drm_err(&dev_priv->drm, "Failed to initialize histogram properties\n");
intel_color_crtc_init(crtc);
intel_drrs_crtc_init(crtc);
@@ -7890,6 +7890,8 @@ static void intel_atomic_commit_tail(struct intel_atomic_state *state)
intel_histogram_update(crtc,
(struct drm_histogram_config *)
new_crtc_state->uapi.histogram_enable->data);
+ if (new_crtc_state->uapi.iet_lut_updated)
+ intel_histogram_set_iet_lut(crtc, new_crtc_state->uapi.iet_lut);
}
/* Underruns don't always raise interrupts, so check manually */
Upon drm getting the IET LUT value from the user through the IET_LUT property, i915 driver will write the LUT table to the hardware registers. Signed-off-by: Arun R Murthy <arun.r.murthy@intel.com> --- drivers/gpu/drm/i915/display/intel_crtc.c | 3 +++ drivers/gpu/drm/i915/display/intel_display.c | 2 ++ 2 files changed, 5 insertions(+)