drm/i915/dsc: Enable YCbCr420 for VDSC
authorSuraj Kandpal <suraj.kandpal@intel.com>
Thu, 9 Mar 2023 06:28:52 +0000 (11:58 +0530)
committerUma Shankar <uma.shankar@intel.com>
Mon, 3 Apr 2023 07:11:11 +0000 (12:41 +0530)
commitdd4d6791eb0164ba59d3e105135188c355d80fa2
treeb8c010ce60d0369ff84fccdf415e4510b9f56f69
parentac754358c68214f9945bdf9cc565fa18ce1b0185
drm/i915/dsc: Enable YCbCr420 for VDSC

Implementation of VDSC for YCbCr420.
Add QP tables for 8,10,12 BPC from rc_tables.h in intel_qp_tables.c
(Derived from C-Model, which is given along with DSC1.2a Spec from Vesa)
intel_lookup_range_min/max_qp functons need to take into account the
output format. Based on that appropriate qp table need to be chosen.
Other rc_parameters need to be set where currently values for 444 format
is hardcoded in calculate_rc_parameters( ).
vdsc_cfg struct needs to be filled with output format information, where
these are hardcoded for 444 format.
Bspec: 49259

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Vandita Kulkarni <Vandita.kulkarni@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-5-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_qp_tables.c
drivers/gpu/drm/i915/display/intel_qp_tables.h
drivers/gpu/drm/i915/display/intel_vdsc.c