Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/i915/color: Do not pre-load LUTs with DB registers

Since Double Buffered LUT registers can be written in active region
no need to preload them.

Signed-off-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Animesh Manna <animesh.manna@intel.com>
Link: https://lore.kernel.org/r/20250523062041.166468-11-chaitanya.kumar.borah@intel.com

authored by

Chaitanya Kumar Borah and committed by
Animesh Manna
88d7e284 d94a92b7

+4
+4
drivers/gpu/drm/i915/display/intel_color.c
··· 2041 2041 static bool intel_can_preload_luts(struct intel_atomic_state *state, 2042 2042 struct intel_crtc *crtc) 2043 2043 { 2044 + struct intel_display *display = to_intel_display(state); 2044 2045 const struct intel_crtc_state *old_crtc_state = 2045 2046 intel_atomic_get_old_crtc_state(state, crtc); 2047 + 2048 + if (HAS_DOUBLE_BUFFERED_LUT(display)) 2049 + return false; 2046 2050 2047 2051 return !old_crtc_state->post_csc_lut && 2048 2052 !old_crtc_state->pre_csc_lut;