diff options
author | Andrey Grodzovsky <Andrey.Grodzovsky@amd.com> | 2017-05-22 20:25:48 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-09-26 18:07:33 -0400 |
commit | 893a2dd4a3ffceb3b3fa88353d8270de06195b10 (patch) | |
tree | 51e4ed1f9d3de6fba783a476140064663e17c36c /drivers | |
parent | ccaa73897109c521a9fda82a50c988e9cba947e7 (diff) | |
download | linux-893a2dd4a3ffceb3b3fa88353d8270de06195b10.tar.bz2 |
drm/amd/display: Clean unused interface.
Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/core/dc.c | 42 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dc.h | 6 |
2 files changed, 0 insertions, 48 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 4900e8073c69..f5349970b594 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -249,47 +249,6 @@ static void set_static_screen_events(struct dc *dc, core_dc->hwss.set_static_screen_control(pipes_affected, num_pipes_affected, events); } -/* This function is not expected to fail, proper implementation of - * validation will prevent this from ever being called for unsupported - * configurations. - */ -static void stream_update_scaling( - const struct dc *dc, - const struct dc_stream *dc_stream, - const struct rect *src, - const struct rect *dst) -{ - struct core_stream *stream = DC_STREAM_TO_CORE(dc_stream); - struct core_dc *core_dc = DC_TO_CORE(dc); - struct validate_context *cur_ctx = core_dc->current_context; - int i; - - if (src) - stream->public.src = *src; - - if (dst) - stream->public.dst = *dst; - - for (i = 0; i < cur_ctx->stream_count; i++) { - struct core_stream *cur_stream = cur_ctx->streams[i]; - - if (stream == cur_stream) { - struct dc_stream_status *status = &cur_ctx->stream_status[i]; - - if (status->surface_count) - if (!dc_commit_surfaces_to_stream( - &core_dc->public, - status->surfaces, - status->surface_count, - &cur_stream->public)) - /* Need to debug validation */ - BREAK_TO_DEBUGGER(); - - return; - } - } -} - static void set_drive_settings(struct dc *dc, struct link_training_settings *lt_settings, const struct dc_link *link) @@ -402,7 +361,6 @@ void set_dither_option(const struct dc_stream *dc_stream, static void allocate_dc_stream_funcs(struct core_dc *core_dc) { - core_dc->public.stream_funcs.stream_update_scaling = stream_update_scaling; if (core_dc->hwss.set_drr != NULL) { core_dc->public.stream_funcs.adjust_vmin_vmax = stream_adjust_vmin_vmax; diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h index 3b35487897b7..0d3b73a37df1 100644 --- a/drivers/gpu/drm/amd/display/dc/dc.h +++ b/drivers/gpu/drm/amd/display/dc/dc.h @@ -115,12 +115,6 @@ struct dc_stream_funcs { unsigned int *v_pos, unsigned int *nom_v_pos); - - void (*stream_update_scaling)(const struct dc *dc, - const struct dc_stream *dc_stream, - const struct rect *src, - const struct rect *dst); - bool (*set_gamut_remap)(struct dc *dc, const struct dc_stream *stream); |