Commit 9f807822 authored by Ville Syrjälä's avatar Ville Syrjälä
Browse files

drm/i915: Skip dsc readout if the transcoder is disabled



Trying to do readout when we don't even have a cpu transcoder
is not a great idea. Don't do it.

Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220124192638.26262-1-ville.syrjala@linux.intel.com


Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
parent 6a4d8cc6
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -4379,13 +4379,13 @@ static bool hsw_get_pipe_config(struct intel_crtc *crtc,
		active = true;
	}

	if (!active)
		goto out;

	intel_dsc_get_config(pipe_config);
	if (DISPLAY_VER(dev_priv) >= 13 && !pipe_config->dsc.compression_enable)
		intel_uncompressed_joiner_get_config(pipe_config);

	if (!active)
		goto out;

	if (!transcoder_is_dsi(pipe_config->cpu_transcoder) ||
	    DISPLAY_VER(dev_priv) >= 11)
		intel_get_transcoder_timings(crtc, pipe_config);