mirror of https://gitee.com/openkylin/linux.git
drm/amd/display: Remove additional FEC link bandwidth reduction
[why] This is now done in the original link bandwidth calculation and DSC must not do this anymore. [how] Remove the line of code that should have been removed when transition to correctly applying FEC overhead was made. Signed-off-by: Nikola Cornij <nikola.cornij@amd.com> Reviewed-by: Wenjing Liu <Wenjing.Liu@amd.com> Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
b7d39c5878
commit
87029eb4fa
|
@ -311,19 +311,18 @@ static void get_dsc_bandwidth_range(
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* - 'true' if DSC was required by policy and was successfully applied
|
* - 'true' if DSC was required by policy and was successfully applied
|
||||||
* - 'false' if DSC was not necessary (e.g. if uncompressed stream fits 'target_bandwidth'),
|
* - 'false' if DSC was not necessary (e.g. if uncompressed stream fits 'target_bandwidth_kbps'),
|
||||||
* or if it couldn't be applied based on DSC policy.
|
* or if it couldn't be applied based on DSC policy.
|
||||||
*/
|
*/
|
||||||
static bool decide_dsc_target_bpp_x16(
|
static bool decide_dsc_target_bpp_x16(
|
||||||
const struct dc_dsc_policy *policy,
|
const struct dc_dsc_policy *policy,
|
||||||
const struct dsc_enc_caps *dsc_common_caps,
|
const struct dsc_enc_caps *dsc_common_caps,
|
||||||
const int target_bandwidth,
|
const int target_bandwidth_kbps,
|
||||||
const struct dc_crtc_timing *timing,
|
const struct dc_crtc_timing *timing,
|
||||||
int *target_bpp_x16)
|
int *target_bpp_x16)
|
||||||
{
|
{
|
||||||
bool should_use_dsc = false;
|
bool should_use_dsc = false;
|
||||||
struct dc_dsc_bw_range range;
|
struct dc_dsc_bw_range range;
|
||||||
float target_bandwidth_kbps = target_bandwidth * 0.97f; // 3% overhead for FEC
|
|
||||||
|
|
||||||
memset(&range, 0, sizeof(range));
|
memset(&range, 0, sizeof(range));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue