Skip to content

Commit 9a10c12

Browse files
Dillon Varonealexdeucher
authored andcommitted
drm/amd/display: set optimized required for comp buf changes
[Description] When compressed buffer allocation changes, optimized required flag should be set to trigger an update in optimize bandwidth. Reviewed-by: Aric Cyr <[email protected]> Acked-by: Stylon Wang <[email protected]> Signed-off-by: Dillon Varone <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 00812bf commit 9a10c12

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2011,10 +2011,13 @@ void dcn20_prepare_bandwidth(
20112011

20122012
/* decrease compbuf size */
20132013
if (hubbub->funcs->program_compbuf_size) {
2014-
if (context->bw_ctx.dml.ip.min_comp_buffer_size_kbytes)
2014+
if (context->bw_ctx.dml.ip.min_comp_buffer_size_kbytes) {
20152015
compbuf_size_kb = context->bw_ctx.dml.ip.min_comp_buffer_size_kbytes;
2016-
else
2016+
dc->wm_optimized_required |= (compbuf_size_kb != dc->current_state->bw_ctx.dml.ip.min_comp_buffer_size_kbytes);
2017+
} else {
20172018
compbuf_size_kb = context->bw_ctx.bw.dcn.compbuf_size_kb;
2019+
dc->wm_optimized_required |= (compbuf_size_kb != dc->current_state->bw_ctx.bw.dcn.compbuf_size_kb);
2020+
}
20182021

20192022
hubbub->funcs->program_compbuf_size(hubbub, compbuf_size_kb, false);
20202023
}

0 commit comments

Comments
 (0)