mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
drm/amd/display: Do post_update_surfaces on new state
Signed-off-by: Charlene Liu <charlene.liu@amd.com> Reviewed-by: Anthony Koo <Anthony.Koo@amd.com> Acked-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
ea00f2979b
commit
c2a5b5008a
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue