]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/mst: Call intel_pfit_compute_config() for sharpness filter
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 9 Apr 2026 10:08:40 +0000 (13:08 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 13 Apr 2026 12:50:58 +0000 (15:50 +0300)
The sharpness filter property is on the CRTC (as opposed to the
connector) so the expectation is that it's usable on all output
types. Since the sharpness filter is now fully integrateds into
the normal pfit code intel_pfit_compute_config() must be called
from the encoder .compute_config() on all relevant output types.

Sharpness filter is supported on LNL+ so only HDMI and DP SST/MST
outputs are actually relevant. I already took care of HDMI and
DP SST, but (as usual) forgot about DP MST. Add the missing
intel_pfit_compute_config() call to make the sharpness filter
operational on DP MST as well.

Cc: Nemesa Garg <nemesa.garg@intel.com>
Fixes: d4686f34bbeb ("drm/i915/pfit: Call intel_pfit_compute_config() unconditionally on (e)DP/HDMI")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260409100841.1907-1-ville.syrjala@linux.intel.com
Reviewed-by: Nemesa Garg <nemesa.garg@intel.com>
drivers/gpu/drm/i915/display/intel_dp_mst.c

index 94f2c3a7ec5911350556683a270bc095027dfcfd..9150763ca1434da301b52fb26d9085e3b6059d43 100644 (file)
@@ -723,6 +723,10 @@ static int mst_stream_compute_config(struct intel_encoder *encoder,
        pipe_config->output_format = INTEL_OUTPUT_FORMAT_RGB;
        pipe_config->has_pch_encoder = false;
 
+       ret = intel_pfit_compute_config(pipe_config, conn_state);
+       if (ret)
+               return ret;
+
        for_each_joiner_candidate(connector, adjusted_mode, num_joined_pipes) {
                if (num_joined_pipes > 1)
                        pipe_config->joiner_pipes = GENMASK(crtc->pipe + num_joined_pipes - 1,