drm/amd/display: add full update commit hint struct
authorJun Lei <Jun.Lei@amd.com>
Tue, 12 Feb 2019 17:09:24 +0000 (12:09 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:04:02 +0000 (15:04 -0500)
In some cases we might need to do a full update. Add a commit_hints
struct for future use

Signed-off-by: Jun Lei <Jun.Lei@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/inc/core_types.h

index 5dfc2e3ede6dc892c8a6c20e9aac23800944d023..679f1441f3b7b0cb387f15472965f9b5220d7e0d 100644 (file)
@@ -1143,6 +1143,8 @@ static enum dc_status dc_commit_state_no_check(struct dc *dc, struct dc_state *c
        for (i = 0; i < context->stream_count; i++)
                context->streams[i]->mode_changed = false;
 
+       memset(&context->commit_hints, 0, sizeof(context->commit_hints));
+
        dc_release_state(dc->current_state);
 
        dc->current_state = context;
index d51693258fbcd1a8283cc3710c9b3825c2d317fc..9df1a2f486fd4bfe9aec183590acd83140cef8bc 100644 (file)
@@ -295,6 +295,10 @@ struct dc_state {
 
        struct clk_mgr *dccg;
 
+       struct {
+               bool full_update_needed : 1;
+       } commit_hints;
+
        struct kref refcount;
 };