Commit e85c2d63 authored by Jun Lei's avatar Jun Lei Committed by Alex Deucher
Browse files

drm/amd/display: add full update commit hint struct



In some cases we might need to do a full update. Add a commit_hints
struct for future use

Signed-off-by: default avatarJun Lei <Jun.Lei@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 9cc032b2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
+4 −0
Original line number Diff line number Diff line
@@ -295,6 +295,10 @@ struct dc_state {

	struct clk_mgr *dccg;

	struct {
		bool full_update_needed : 1;
	} commit_hints;

	struct kref refcount;
};