drm/i915/dp: Check if DSC supports the given output_format
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Thu, 9 Mar 2023 06:28:50 +0000 (11:58 +0530)
committerUma Shankar <uma.shankar@intel.com>
Mon, 3 Apr 2023 07:11:10 +0000 (12:41 +0530)
commit5011f2915b70703a0347f97b8f2ca0b56ab49978
tree2d60d303b19facfe1c368d8f1c4c6cfb9a41fe19
parenta389789c0aaf8428cd44cac4f92c8786505f5f1e
drm/i915/dp: Check if DSC supports the given output_format

Go with DSC only if the given output_format is supported.

v2: Use drm helper to get DSC format support for sink.

v3: remove drm_dp_dsc_compute_bpp.

Cc: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230309062855.393087-3-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_dp.c