drm/i915/dsb: Don't use DSB to load the LUTs during full modeset
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 6 Jun 2023 19:14:56 +0000 (22:14 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 27 Sep 2023 15:40:16 +0000 (18:40 +0300)
Using the DSB for LUT loading during full modesets would require
some actual though. Let's just use mmio for the time being.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230606191504.18099-12-ville.syrjala@linux.intel.com
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
drivers/gpu/drm/i915/display/intel_color.c

index cdca3a89fa9c7688fc78170091730456415afe56..bb6eda00561374d4c5227a50111b0ec655172f92 100644 (file)
@@ -1886,6 +1886,10 @@ void intel_color_prepare_commit(struct intel_crtc_state *crtc_state)
        /* FIXME DSB has issues loading LUTs, disable it for now */
        return;
 
+       if (!crtc_state->hw.active ||
+           intel_crtc_needs_modeset(crtc_state))
+               return;
+
        if (!crtc_state->pre_csc_lut && !crtc_state->post_csc_lut)
                return;