Skip to content

Commit dad6bd7

Browse files
Dillon Varonealexdeucher
authored andcommitted
drm/amd/display: Fix call to pass bpp in 16ths of a bit
[Why & How?] Call to dc_dsc_compute_bandwidth_range should have min and max bpp in 16ths of a bit. Multiply min and max bpp from policy. Signed-off-by: Dillon Varone <[email protected]> Reviewed-by: Eryk Brol <[email protected]> Acked-by: Aurabindo Pillai <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 5dac2b7 commit dad6bd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -750,8 +750,8 @@ static bool compute_mst_dsc_configs_for_link(struct drm_atomic_state *state,
750750
if (!dc_dsc_compute_bandwidth_range(
751751
stream->sink->ctx->dc->res_pool->dscs[0],
752752
stream->sink->ctx->dc->debug.dsc_min_slice_height_override,
753-
dsc_policy.min_target_bpp,
754-
dsc_policy.max_target_bpp,
753+
dsc_policy.min_target_bpp * 16,
754+
dsc_policy.max_target_bpp * 16,
755755
&stream->sink->dsc_caps.dsc_dec_caps,
756756
&stream->timing, &params[count].bw_range))
757757
params[count].bw_range.stream_kbps = dc_bandwidth_in_kbps_from_timing(&stream->timing);

0 commit comments

Comments
 (0)