Skip to content

Commit 6dbebf4

Browse files
Joshua Aberbackalexdeucher
authored andcommitted
drm/amd/display: Acknowledge wm_optimized_required
[Why] If dc->clk_mgr->funcs->are_clock_states_equal is set, then wm_optimized_required is never checked. In that case, when going from a higher mode to a lower mode, wm_optimized_required remains true until the next mode change. [How] - move from else-if to unconditional or Signed-off-by: Joshua Aberback <[email protected]> Reviewed-by: Jun Lei <[email protected]> Reviewed-by: Nicholas Kazlauskas <[email protected]> Reviewed-by: Yongqiang Sun <[email protected]> Acked-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent d243b6f commit 6dbebf4

File tree

1 file changed

+3
-2
lines changed
  • drivers/gpu/drm/amd/display/dc/core

1 file changed

+3
-2
lines changed

drivers/gpu/drm/amd/display/dc/core/dc.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1861,8 +1861,9 @@ enum surface_update_type dc_check_update_surfaces_for_stream(
18611861
// Else we fallback to mem compare.
18621862
} else if (memcmp(&dc->current_state->bw_ctx.bw.dcn.clk, &dc->clk_mgr->clks, offsetof(struct dc_clocks, prev_p_state_change_support)) != 0) {
18631863
dc->optimized_required = true;
1864-
} else if (dc->wm_optimized_required)
1865-
dc->optimized_required = true;
1864+
}
1865+
1866+
dc->optimized_required |= dc->wm_optimized_required;
18661867
}
18671868

18681869
return type;

0 commit comments

Comments
 (0)