drm/i915: Simplify intel_dsc_source_support()
We can simplify the icl check in intel_dsc_source_support() by noting that the only case when DSC is not supported is when using transcoder A. Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220124192638.26262-2-ville.syrjala@linux.intel.com
This commit is contained in:
@@ -341,19 +341,14 @@ bool intel_dsc_source_support(const struct intel_crtc_state *crtc_state)
|
|||||||
const struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc);
|
const struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc);
|
||||||
struct drm_i915_private *i915 = to_i915(crtc->base.dev);
|
struct drm_i915_private *i915 = to_i915(crtc->base.dev);
|
||||||
enum transcoder cpu_transcoder = crtc_state->cpu_transcoder;
|
enum transcoder cpu_transcoder = crtc_state->cpu_transcoder;
|
||||||
enum pipe pipe = crtc->pipe;
|
|
||||||
|
|
||||||
if (!INTEL_INFO(i915)->display.has_dsc)
|
if (!INTEL_INFO(i915)->display.has_dsc)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
/* On TGL, DSC is supported on all Pipes */
|
|
||||||
if (DISPLAY_VER(i915) >= 12)
|
if (DISPLAY_VER(i915) >= 12)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (DISPLAY_VER(i915) >= 11 &&
|
if (DISPLAY_VER(i915) >= 11 && cpu_transcoder != TRANSCODER_A)
|
||||||
(pipe != PIPE_A || cpu_transcoder == TRANSCODER_EDP ||
|
|
||||||
cpu_transcoder == TRANSCODER_DSI_0 ||
|
|
||||||
cpu_transcoder == TRANSCODER_DSI_1))
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user