diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2701-drm-amd-display-Do-post_update_surfaces-on-new-state.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2701-drm-amd-display-Do-post_update_surfaces-on-new-state.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2701-drm-amd-display-Do-post_update_surfaces-on-new-state.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2701-drm-amd-display-Do-post_update_surfaces-on-new-state.patch new file mode 100644 index 00000000..a703b080 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2701-drm-amd-display-Do-post_update_surfaces-on-new-state.patch @@ -0,0 +1,43 @@ +From ab27c08bd1e1560ab66fcca48c92936d61f57295 Mon Sep 17 00:00:00 2001 +From: Charlene Liu <charlene.liu@amd.com> +Date: Wed, 25 Oct 2017 20:30:46 -0400 +Subject: [PATCH 2701/4131] 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> +--- + drivers/gpu/drm/amd/display/dc/core/dc.c | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c +index a2501d6..da8ca4d 100644 +--- a/drivers/gpu/drm/amd/display/dc/core/dc.c ++++ b/drivers/gpu/drm/amd/display/dc/core/dc.c +@@ -1427,10 +1427,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; +@@ -1439,6 +1436,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; + +-- +2.7.4 + |