Skip to content

Commit

Permalink
drm/amd/display: Remove unused code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rodrigo Siqueira authored and Alex Deucher committed May 29, 2024
1 parent 2998bcc commit ddef2cf
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 12 deletions.
1 change: 0 additions & 1 deletion drivers/gpu/drm/amd/display/dc/dc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__ */
5 changes: 0 additions & 5 deletions drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 1 addition & 5 deletions drivers/gpu/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit ddef2cf

Please sign in to comment.