drm/i915/dsc: move rc_buf_thresh values to common helper
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Wed, 17 May 2023 10:28:01 +0000 (13:28 +0300)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Fri, 19 May 2023 21:13:59 +0000 (17:13 -0400)
commit169219213c144abf0f2cc86886df218159dbe4b7
tree45099f63841fcdcb48df52a3a56be0512f6e377d
parenta8c4b36ecac1d71bfde8d1f64a30ce694c4fc44d
drm/i915/dsc: move rc_buf_thresh values to common helper

The rc_buf_thresh values are common to all DSC implementations. Move
them to the common helper together with the code to propagate them to
the drm_dsc_config.

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230517102807.2181589-3-dmitry.baryshkov@linaro.org
Acked-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/display/drm_dsc_helper.c
drivers/gpu/drm/i915/display/intel_vdsc.c
include/drm/display/drm_dsc_helper.h