]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
drm/amd/display: remove unused code
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Fri, 30 Aug 2019 20:58:29 +0000 (16:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 25 Oct 2019 20:50:08 +0000 (16:50 -0400)
Commit hints are unnecessary after front end programming redesign.

Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: Eric Bernstein <Eric.Bernstein@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
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
drivers/gpu/drm/amd/display/dc/inc/core_types.h

index 41b51f43a64b14311369b45a28c4ab1f2e357592..55b82ca44c3bfcf7f197e202f2b6cd7b34bd4348 100644 (file)
@@ -1248,8 +1248,6 @@ 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 c9792c47978ae483d0b8c7d8f768dbbf4fb19c08..893e44ca90f88fe627182d42d66995fe48ad362b 100644 (file)
@@ -2275,7 +2275,6 @@ bool dcn20_fast_validate_bw(
        int split_threshold = dc->res_pool->pipe_count / 2;
        bool avoid_split = dc->debug.pipe_split_policy != MPC_SPLIT_DYNAMIC;
 
-
        ASSERT(pipes);
        if (!pipes)
                return false;
@@ -2353,10 +2352,6 @@ bool dcn20_fast_validate_bw(
        if (vlevel > context->bw_ctx.dml.soc.num_states)
                goto validate_fail;
 
-       if ((context->stream_count > split_threshold && dc->current_state->stream_count <= split_threshold)
-               || (context->stream_count <= split_threshold && dc->current_state->stream_count > split_threshold))
-               context->commit_hints.full_update_needed = true;
-
        /*initialize pipe_just_split_from to invalid idx*/
        for (i = 0; i < MAX_PIPES; i++)
                pipe_split_from[i] = -1;
index eee78a73d88c5b0aff2c9edfe20fa399c4d114a8..a831079607cddfd3ee0ab1c46785f1850684afdb 100644 (file)
@@ -398,10 +398,6 @@ struct dc_state {
 
        struct clk_mgr *clk_mgr;
 
-       struct {
-               bool full_update_needed : 1;
-       } commit_hints;
-
        struct kref refcount;
 };