From: Charlene Liu Date: Thu, 26 Oct 2017 00:30:46 +0000 (-0400) Subject: drm/amd/display: Do post_update_surfaces on new state X-Git-Tag: v4.19~1610^2~33^2~185 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c2a5b5008a92efdf816cf3c3b9f37aa8d6f8b54e;p=platform%2Fkernel%2Flinux-rpi.git drm/amd/display: Do post_update_surfaces on new state Signed-off-by: Charlene Liu Reviewed-by: Anthony Koo Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 507b117..01ec1ed 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -1469,10 +1469,7 @@ void dc_commit_updates_for_stream(struct dc *dc, stream_update, update_type, context); - - if (update_type >= UPDATE_TYPE_FULL) - dc_post_update_surfaces_to_stream(dc); - + /*update current_State*/ if (dc->current_state != context) { struct dc_state *old = dc->current_state; @@ -1481,6 +1478,9 @@ void dc_commit_updates_for_stream(struct dc *dc, dc_release_state(old); } + /*let's use current_state to update watermark etc*/ + if (update_type >= UPDATE_TYPE_FULL) + dc_post_update_surfaces_to_stream(dc); return;