Commit c2a5b500 authored by Charlene Liu's avatar Charlene Liu Committed by Alex Deucher

drm/amd/display: Do post_update_surfaces on new state

Signed-off-by: default avatarCharlene Liu <charlene.liu@amd.com>
Reviewed-by: default avatarAnthony Koo <Anthony.Koo@amd.com>
Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent ea00f297
...@@ -1469,10 +1469,7 @@ void dc_commit_updates_for_stream(struct dc *dc, ...@@ -1469,10 +1469,7 @@ void dc_commit_updates_for_stream(struct dc *dc,
stream_update, stream_update,
update_type, update_type,
context); context);
/*update current_State*/
if (update_type >= UPDATE_TYPE_FULL)
dc_post_update_surfaces_to_stream(dc);
if (dc->current_state != context) { if (dc->current_state != context) {
struct dc_state *old = dc->current_state; struct dc_state *old = dc->current_state;
...@@ -1481,6 +1478,9 @@ void dc_commit_updates_for_stream(struct dc *dc, ...@@ -1481,6 +1478,9 @@ void dc_commit_updates_for_stream(struct dc *dc,
dc_release_state(old); 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; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment