OSDN Git Service

drm/amd/display: Remove redundant call
authorNoah Abradjian <noah.abradjian@amd.com>
Wed, 13 Nov 2019 22:06:40 +0000 (17:06 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Dec 2019 21:31:24 +0000 (16:31 -0500)
[Why]
I was advised that we don't need this call of program_front_end, as
earlier and later calls in the same sequence are sufficient.

[How]
Remove first call of program_front_end in dc_commit_state_no_check.

Signed-off-by: Noah Abradjian <noah.abradjian@amd.com>
Reviewed-by: Yongqiang Sun <yongqiang.sun@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c

index 55f22a1..39fe38c 100644 (file)
@@ -1167,8 +1167,6 @@ static enum dc_status dc_commit_state_no_check(struct dc *dc, struct dc_state *c
                                context->stream_status[i].plane_count,
                                context); /* use new pipe config in new context */
                }
-       if (dc->hwss.program_front_end_for_ctx)
-               dc->hwss.program_front_end_for_ctx(dc, context);
 
        /* Program hardware */
        for (i = 0; i < dc->res_pool->pipe_count; i++) {