drm/i915/vdsc: Set VDSC PIC_HEIGHT before using for DP DSC
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Fri, 2 Sep 2022 10:32:19 +0000 (16:02 +0530)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 12 Sep 2022 13:56:47 +0000 (09:56 -0400)
commit0785691f5711a8f210bb15a5177c2999ebd3702e
tree7e6e7139c5b04cc946b6f139eb097470ddce260b
parent80e78fcce86de0288793a0ef0f6acf37656ee4cf
drm/i915/vdsc: Set VDSC PIC_HEIGHT before using for DP DSC

Currently, pic_height of vdsc_cfg structure is being used to calculate
slice_height, before it is set for DP.

So taking out the lines to set pic_height from the helper
intel_dp_dsc_compute_params() to individual encoders, and setting
pic_height, before it is used to calculate slice_height for DP.

Fixes: 5a6d866f8e1b ("drm/i915: Get slice height before computing rc params")
Cc: Manasi Navare <manasi.d.navare@intel.com>
Cc: Vandita Kulkarni <vandita.kulkarni@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Vandita Kulkarni <vandita.kulkarni@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220902103219.1168781-1-ankit.k.nautiyal@intel.com
(cherry picked from commit e72df53dcb01ec58e0410da353551adf94c8d0f1)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/display/icl_dsi.c
drivers/gpu/drm/i915/display/intel_dp.c
drivers/gpu/drm/i915/display/intel_vdsc.c