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 <[email protected]>
---
 drivers/gpu/drm/i915/display/intel_display.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/i915/display/intel_display.c 
b/drivers/gpu/drm/i915/display/intel_display.c
index 
191a830009e78a31e1ad3d9ca8e0596e1a1ff71e..fd81452483bff1c6542aa95b6e11874fff21bc29
 100644
--- a/drivers/gpu/drm/i915/display/intel_display.c
+++ b/drivers/gpu/drm/i915/display/intel_display.c
@@ -7579,6 +7579,9 @@ static void intel_atomic_commit_tail(struct 
intel_atomic_state *state)
                        intel_histogram_update(crtc,
                                               (struct drm_histogram_config *)
                                               
colorop->state->histogram_enable->data);
+
+               if (colorop->state->iet_lut_updated)
+                       intel_histogram_set_iet_lut(crtc, colorop->state->data);
        }
 
        /* Underruns don't always raise interrupts, so check manually */

-- 
2.25.1

Reply via email to