diff options
author | Dmytro Laktyushkin <[email protected]> | 2017-01-24 15:45:33 -0500 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2017-09-26 17:12:59 -0400 |
commit | 998166a6116bea93f6e1672177581b689b008bf7 (patch) | |
tree | 426771f93bf0b544681c04724a2daa22401c72a6 | |
parent | 6728b30c974e38711f70dc38edf68503bf71c4a9 (diff) |
drm/amd/display: Make new pixel clock more obvious
Signed-off-by: Dmytro Laktyushkin <[email protected]>
Reviewed-by: Tony Cheng <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/core/dc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 499ef561bbfc..e05e4199e38a 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -1066,6 +1066,7 @@ bool dc_pre_update_surfaces_to_stream( int i, j; struct core_dc *core_dc = DC_TO_CORE(dc); uint32_t prev_disp_clk = core_dc->current_context->bw_results.dispclk_khz; + int new_disp_clk; struct dc_stream_status *stream_status = NULL; struct validate_context *context; struct validate_context *temp_context; @@ -1150,6 +1151,7 @@ bool dc_pre_update_surfaces_to_stream( ret = false; goto unexpected_fail; } + new_disp_clk = context->bw_results.dispclk_khz; if (core_dc->res_pool->funcs->apply_clk_constraints) { temp_context = core_dc->res_pool->funcs->apply_clk_constraints( @@ -1166,7 +1168,7 @@ bool dc_pre_update_surfaces_to_stream( context = temp_context; } - if (prev_disp_clk < context->bw_results.dispclk_khz) { + if (prev_disp_clk < new_disp_clk) { pplib_apply_display_requirements(core_dc, context, &context->pp_display_cfg); context->res_ctx.pool->display_clock->funcs->set_clock( |