drm/amd/display: Remove unused code
authorRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Tue, 14 May 2024 17:22:00 +0000 (11:22 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 May 2024 18:39:33 +0000 (14:39 -0400)
This commit removes some unused code with the required adjustments.

Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp.h
drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c
drivers/gpu/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c

index 1055970d388854f1ca0c0c4e4ed92585dcdaae07..31e3371b1b2ee31d4d7bd4635e2239c8a7fe0095 100644 (file)
@@ -1587,7 +1587,6 @@ struct dc_plane_state *dc_get_surface_for_mpcc(struct dc *dc,
 uint32_t dc_get_opp_for_plane(struct dc *dc, struct dc_plane_state *plane);
 
 void dc_set_disable_128b_132b_stream_overhead(bool disable);
-bool dc_get_disable_128b_132b_stream_overhead(void);
 
 /* The function returns minimum bandwidth required to drive a given timing
  * return - minimum required timing bandwidth in kbps.
index 1aaae7a5bd41ef331416781afcf98d64dac0e672..4bc85aaf17da8ef3792c0220ee26ee3c1ac8cd7a 100644 (file)
@@ -726,4 +726,4 @@ void dpp401_set_cursor_matrix(
        enum dc_color_space color_space,
        struct dc_csc_transform cursor_csc_color_matrix);
 
-#endif
+#endif /* __DCN401_DPP_H__ */
index b9d10e95ef7a51ab90293c4dd75694b475644204..a1727e5bf024796fa75da8d55ec88fe4e0ade228 100644 (file)
@@ -1261,11 +1261,6 @@ void dc_set_disable_128b_132b_stream_overhead(bool disable)
        disable_128b_132b_stream_overhead = disable;
 }
 
-bool dc_get_disable_128b_132b_stream_overhead(void)
-{
-       return disable_128b_132b_stream_overhead;
-}
-
 void dc_dsc_get_default_config_option(const struct dc *dc, struct dc_dsc_config_options *options)
 {
        options->dsc_min_slice_height_override = dc->debug.dsc_min_slice_height_override;
index 597817b5122895583ce977123f17c096c794c28e..054607c944a3873704217b4414729f65ee6281b4 100644 (file)
@@ -880,12 +880,8 @@ static void dcn401_program_compbuf_segments(struct hubbub *hubbub, unsigned comp
                                + hubbub2->det3_size + compbuf_size_seg <= hubbub2->crb_size_segs);
                REG_UPDATE(DCHUBBUB_COMPBUF_CTRL, COMPBUF_SIZE, compbuf_size_seg);
                hubbub2->compbuf_size_segments = compbuf_size_seg;
-#ifdef DIAGS_BUILD
-               REG_GET(DCHUBBUB_COMPBUF_CTRL, CONFIG_ERROR, &cur_compbuf_size_seg);
-               ASSERT(!cur_compbuf_size_seg);
-#else
+
                ASSERT(REG_GET(DCHUBBUB_COMPBUF_CTRL, CONFIG_ERROR, &cur_compbuf_size_seg) && !cur_compbuf_size_seg);
-#endif
        }
 }