<div dir="ltr">Since we cannot do DSC with this output format currently, can this check be added as part of the intel_dp_supports_dsc() ?<div><br></div><div>Regards</div><div>Manasi</div></div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 14, 2023 at 4:07 AM Ankit Nautiyal <<a href="mailto:ankit.k.nautiyal@intel.com">ankit.k.nautiyal@intel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Currently, DSC with YCBCR420 is not supported.<br>
Return -EINVAL when trying with DSC with output_format as YCBCR420.<br>
<br>
Signed-off-by: Ankit Nautiyal <<a href="mailto:ankit.k.nautiyal@intel.com" target="_blank">ankit.k.nautiyal@intel.com</a>><br>
---<br>
 drivers/gpu/drm/i915/display/intel_dp.c | 4 ++++<br>
 1 file changed, 4 insertions(+)<br>
<br>
diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c<br>
index b1431ed175bc..99a5cd370c1f 100644<br>
--- a/drivers/gpu/drm/i915/display/intel_dp.c<br>
+++ b/drivers/gpu/drm/i915/display/intel_dp.c<br>
@@ -1602,6 +1602,10 @@ int intel_dp_dsc_compute_config(struct intel_dp *intel_dp,<br>
        if (!intel_dp_supports_dsc(intel_dp, pipe_config))<br>
                return -EINVAL;<br>
<br>
+       /* Currently DSC with YCBCR420 format is not supported */<br>
+       if (pipe_config->output_format == INTEL_OUTPUT_FORMAT_YCBCR420)<br>
+               return -EINVAL;<br>
+<br>
        if (compute_pipe_bpp)<br>
                pipe_bpp = intel_dp_dsc_compute_bpp(intel_dp, pipe_config->output_format,<br>
                                                    conn_state->max_requested_bpc);<br>
-- <br>
2.25.1<br>
<br>
</blockquote></div>