mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
drm/amd/display: Remove unused dc_stream_get_crtc_position
The last user of dc_stream_get_crtc_position() was mod_freesync_get_v_position() which is removed in a previous patch in this series. Remove it. Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
2d5e8a8997
commit
fa88342931
|
|
@ -516,33 +516,6 @@ bool dc_stream_get_last_used_drr_vtotal(struct dc *dc,
|
|||
return status;
|
||||
}
|
||||
|
||||
bool dc_stream_get_crtc_position(struct dc *dc,
|
||||
struct dc_stream_state **streams, int num_streams,
|
||||
unsigned int *v_pos, unsigned int *nom_v_pos)
|
||||
{
|
||||
/* TODO: Support multiple streams */
|
||||
const struct dc_stream_state *stream = streams[0];
|
||||
int i;
|
||||
bool ret = false;
|
||||
struct crtc_position position;
|
||||
|
||||
dc_exit_ips_for_hw_access(dc);
|
||||
|
||||
for (i = 0; i < MAX_PIPES; i++) {
|
||||
struct pipe_ctx *pipe =
|
||||
&dc->current_state->res_ctx.pipe_ctx[i];
|
||||
|
||||
if (pipe->stream == stream && pipe->stream_res.stream_enc) {
|
||||
dc->hwss.get_position(&pipe, 1, &position);
|
||||
|
||||
*v_pos = position.vertical_count;
|
||||
*nom_v_pos = position.nominal_vcount;
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_DRM_AMD_SECURE_DISPLAY)
|
||||
static inline void
|
||||
dc_stream_forward_dmub_crc_window(struct dc_dmub_srv *dmub_srv,
|
||||
|
|
|
|||
|
|
@ -528,12 +528,6 @@ bool dc_stream_get_last_used_drr_vtotal(struct dc *dc,
|
|||
struct dc_stream_state *stream,
|
||||
uint32_t *refresh_rate);
|
||||
|
||||
bool dc_stream_get_crtc_position(struct dc *dc,
|
||||
struct dc_stream_state **stream,
|
||||
int num_streams,
|
||||
unsigned int *v_pos,
|
||||
unsigned int *nom_v_pos);
|
||||
|
||||
#if defined(CONFIG_DRM_AMD_SECURE_DISPLAY)
|
||||
bool dc_stream_forward_crc_window(struct dc_stream_state *stream,
|
||||
struct rect *rect,
|
||||
|
|
@ -578,12 +572,6 @@ bool dc_stream_set_gamut_remap(struct dc *dc,
|
|||
bool dc_stream_program_csc_matrix(struct dc *dc,
|
||||
struct dc_stream_state *stream);
|
||||
|
||||
bool dc_stream_get_crtc_position(struct dc *dc,
|
||||
struct dc_stream_state **stream,
|
||||
int num_streams,
|
||||
unsigned int *v_pos,
|
||||
unsigned int *nom_v_pos);
|
||||
|
||||
struct pipe_ctx *dc_stream_get_pipe_ctx(struct dc_stream_state *stream);
|
||||
|
||||
void dc_dmub_update_dirty_rect(struct dc *dc,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user