drm/i915/vdsc: Add bpc check in intel_dsc_compute_params
authorSuraj Kandpal <suraj.kandpal@intel.com>
Thu, 26 Sep 2024 08:13:28 +0000 (13:43 +0530)
committerSuraj Kandpal <suraj.kandpal@intel.com>
Mon, 30 Sep 2024 04:06:35 +0000 (09:36 +0530)
commit9572bdfeb1280fd1e5beb28e34e226a6bc851280
tree34d03ef0796d23d9236d9cf1745994bb7ac5bc45
parentdf3859a4aaa40783c50f43a6a8a53c7770d59ef1
drm/i915/vdsc: Add bpc check in intel_dsc_compute_params

DSC does not support bpc under 8 according to DSC 1.2a Section 2
Requirements. Return an error if that happens to be the case.

--v2
-should be bit_per_component [Mitul/Chaitanya]
-Add reference to this restriction [Chaitanya]

--v3
-Add the bpc in which we see this warning [Jani]

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240926081327.1409518-2-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_vdsc.c