drm/amd/display: Remove unused code for some dc files
authorRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Thu, 2 May 2024 23:33:22 +0000 (17:33 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 May 2024 19:46:02 +0000 (15:46 -0400)
Cleanup unused code in DC.

Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@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/dc_hw_types.h
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_mpc.h

index d19c672..0f20a3d 100644 (file)
@@ -3614,9 +3614,6 @@ static void commit_plane_for_stream_offload_fams2_flip(struct dc *dc,
        for (i = 0; i < surface_count; i++) {
                struct dc_plane_state *plane_state = srf_updates[i].surface;
 
-               /* set offload flag so driver does not program address */
-               plane_state->address.offload_flip = true;
-
                for (j = 0; j < dc->res_pool->pipe_count; j++) {
                        struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[j];
 
@@ -3638,12 +3635,6 @@ static void commit_plane_for_stream_offload_fams2_flip(struct dc *dc,
                                stream,
                                srf_updates,
                                surface_count);
-
-       /* reset offload flip flag */
-       for (i = 0; i < surface_count; i++) {
-               struct dc_plane_state *plane_state = srf_updates[i].surface;
-               plane_state->address.offload_flip = false;
-       }
 }
 
 static void commit_planes_for_stream_fast(struct dc *dc,
index 2262850..959ae0d 100644 (file)
@@ -125,9 +125,6 @@ struct dc_plane_address {
        union large_integer page_table_base;
 
        uint8_t vmid;
-       /* dc should use hw flip queue rather than directly programming the surface address.
-        * Value is determined on each flip. */
-       bool offload_flip;
 };
 
 struct dc_size {
index 54f889c..ce93003 100644 (file)
@@ -1091,10 +1091,6 @@ void mpc3_power_on_ogam_lut(
 
 void mpc3_init_mpcc(struct mpcc *mpcc, int mpcc_inst);
 
-void mpc3_mpc_init_single_inst(
-       struct mpc *mpc,
-       unsigned int mpcc_id);
-
 enum dc_lut_mode mpc3_get_ogam_current(
        struct mpc *mpc,
        int mpcc_id);