drm/amd/display: Clean unused interface.
authorAndrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Tue, 23 May 2017 00:25:48 +0000 (20:25 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:07:33 +0000 (18:07 -0400)
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>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/dc.h

index 4900e8073c69dea11dea4e95eeef26910edd2bd8..f5349970b594201993f843e26a92d0939ead43c2 100644 (file)
@@ -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;
index 3b35487897b7ed665822637801e5cbbedd51018f..0d3b73a37df198ab4ad8c89343bd9f31e285b711 100644 (file)
@@ -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);