summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dc_dsc.h
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2021-03-18 22:15:06 -0400
committerAlex Deucher <alexander.deucher@amd.com>2021-03-23 23:37:27 -0400
commitc645e4b80c97adae029e655eccd26644b958f4b6 (patch)
tree63029de9edb4b8b5b22b3a5d75a599892958448d /drivers/gpu/drm/amd/display/dc/dc_dsc.h
parent7a78e2bc861b180f3115240c92b184d378368ef7 (diff)
downloadlinux-stable-c645e4b80c97adae029e655eccd26644b958f4b6.tar.gz
linux-stable-c645e4b80c97adae029e655eccd26644b958f4b6.tar.bz2
linux-stable-c645e4b80c97adae029e655eccd26644b958f4b6.zip
drm/amdgpu/display: properly guard dc_dsc_stream_bandwidth_in_kbps
Move the function protoype to the right header and guard the call with CONFIG_DRM_AMD_DC_DCN as DSC is only available with DCN. Fixes: 8c2f14c36f47ce ("drm/amd/display: Add changes for dsc bpp in 16ths and unify bw calculations") Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: Dillon Varone <dillon.varone@amd.com> Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dc_dsc.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dc_dsc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc_dsc.h b/drivers/gpu/drm/amd/display/dc/dc_dsc.h
index 0c5d98524536..c51d2d961b7a 100644
--- a/drivers/gpu/drm/amd/display/dc/dc_dsc.h
+++ b/drivers/gpu/drm/amd/display/dc/dc_dsc.h
@@ -88,4 +88,6 @@ void dc_dsc_policy_set_max_target_bpp_limit(uint32_t limit);
void dc_dsc_policy_set_enable_dsc_when_not_needed(bool enable);
+uint32_t dc_dsc_stream_bandwidth_in_kbps(uint32_t pix_clk_100hz, uint32_t bpp_x16);
+
#endif