drm/dsc: add helper for calculating rc buffer size from DPCD
authorJani Nikula <jani.nikula@intel.com>
Tue, 8 Dec 2020 12:33:53 +0000 (14:33 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 10 Dec 2020 08:49:47 +0000 (10:49 +0200)
commita8f65ba3c2655125c4933f2f6a7e1f4938859bba
treef8b5ceff240791b5b7798d659e668d68bf35c8eb
parent420798a09da722c6ba46fffae842dd6bee7826d7
drm/dsc: add helper for calculating rc buffer size from DPCD

Add a helper for calculating the rc buffer size from the DCPD offsets
DP_DSC_RC_BUF_BLK_SIZE and DP_DSC_RC_BUF_SIZE.

Cc: Alex Deucher <alexdeucher@gmail.com>
Cc: Harry Wentland <hwentlan@amd.com>
Cc: Manasi Navare <manasi.d.navare@intel.com>
Cc: Vandita Kulkarni <vandita.kulkarni@intel.com>
Reviewed-by: Vandita Kulkarni <vandita.kulkarni@intel.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/6c6aee22740fe7a8cf2b8e768bfda378850cf59a.1607429866.git.jani.nikula@intel.com
drivers/gpu/drm/drm_dsc.c
include/drm/drm_dsc.h