diff options
author | Wenjing Liu <wenjing.liu@amd.com> | 2021-04-22 14:01:25 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-05-10 18:06:44 -0400 |
commit | df0a271cc794639ef537f21c4c56893e40972523 (patch) | |
tree | 69dd34b25616bb4e6a1dcf9bdaece689c3511154 /drivers/gpu/drm/amd/display/dc/dc_dsc.h | |
parent | cf8b92a75646735136053ce51107bfa8cfc23191 (diff) | |
download | linux-stable-df0a271cc794639ef537f21c4c56893e40972523.tar.gz linux-stable-df0a271cc794639ef537f21c4c56893e40972523.tar.bz2 linux-stable-df0a271cc794639ef537f21c4c56893e40972523.zip |
drm/amd/display: add dsc stream overhead for dp only
[why]
Based on hardware team recommendation this additional dsc overhead
is only required for DP DSC.
[how]
Add a check for is_dp and only apply the overhead if this flag is set.
Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Reviewed-by: Chris Park <Chris.Park@amd.com>
Acked-by: Wayne Lin <Wayne.Lin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dc_dsc.h')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dc_dsc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc_dsc.h b/drivers/gpu/drm/amd/display/dc/dc_dsc.h index afddb8b7d3e4..16cc76ce3739 100644 --- a/drivers/gpu/drm/amd/display/dc/dc_dsc.h +++ b/drivers/gpu/drm/amd/display/dc/dc_dsc.h @@ -79,7 +79,7 @@ bool dc_dsc_compute_config( struct dc_dsc_config *dsc_cfg); uint32_t dc_dsc_stream_bandwidth_in_kbps(const struct dc_crtc_timing *timing, - uint32_t bpp_x16, uint32_t num_slices_h); + uint32_t bpp_x16, uint32_t num_slices_h, bool is_dp); void dc_dsc_get_policy_for_timing(const struct dc_crtc_timing *timing, uint32_t max_target_bpp_limit_override_x16, @@ -89,4 +89,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); +void dc_dsc_policy_set_disable_dsc_stream_overhead(bool disable); + #endif |