drm/i915/dsc: Move rc param calculation for native_420
authorSuraj Kandpal <suraj.kandpal@intel.com>
Wed, 5 Jul 2023 05:15:00 +0000 (10:45 +0530)
committerAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Wed, 12 Jul 2023 09:12:42 +0000 (14:42 +0530)
commitef4374fbc6ab4e43dd3454abca52f8e0d0064fb9
tree9f02d7a074bcc3f1ea41e970374017423b6b1fb9
parenta811c2e42a519582e7683f1a0ada6fce7e7cf832
drm/i915/dsc: Move rc param calculation for native_420

Move rc_param calculation for native_420 into calculate_rc_parameter.
second_line_bpg_offset and second_line_offset_adj are both rc params
and it would be better to have these calculated where all the other
rc parameters are calculated.

--v2
-Add the reason for commit in commit message [Jani]

--v3
-Move nsl_second_line_bpg_offset with the other 420 calculation
in calculate_rc_param [Ankit]

--v4
-Fix comment alignment [Ankit]

Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230705051502.2568245-2-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_vdsc.c