aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/inc/resource.h
diff options
context:
space:
mode:
authorAric Cyr <aric.cyr@amd.com>2016-12-29 15:27:12 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 17:09:40 -0400
commitab2541b67395088b9de8ebf3943ef9ef86bccc41 (patch)
treec4f25d2560d5f619d8a151f65c43a99f86592267 /drivers/gpu/drm/amd/display/dc/inc/resource.h
parent624d7c4708b27be2dc095579394efadd80f090dd (diff)
drm/amd/display: Remove dc_target object
dc_target does not fit well into DRM framework so removed it. This will prevent the driver from leveraging the pipe-split code for tiled displays, so will have to be handled at a higher level. Most places that used dc_target now directly use dc_stream instead. Signed-off-by: Aric Cyr <aric.cyr@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/inc/resource.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/inc/resource.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/inc/resource.h b/drivers/gpu/drm/amd/display/dc/inc/resource.h
index adf297ec33b6..d96c64bb0a70 100644
--- a/drivers/gpu/drm/amd/display/dc/inc/resource.h
+++ b/drivers/gpu/drm/amd/display/dc/inc/resource.h
@@ -118,25 +118,26 @@ struct pipe_ctx *resource_get_head_pipe_for_stream(
118bool resource_attach_surfaces_to_context( 118bool resource_attach_surfaces_to_context(
119 const struct dc_surface *const *surfaces, 119 const struct dc_surface *const *surfaces,
120 int surface_count, 120 int surface_count,
121 const struct dc_target *dc_target, 121 const struct dc_stream *dc_stream,
122 struct validate_context *context); 122 struct validate_context *context);
123 123
124struct pipe_ctx *find_idle_secondary_pipe(struct resource_context *res_ctx); 124struct pipe_ctx *find_idle_secondary_pipe(struct resource_context *res_ctx);
125 125
126bool resource_is_stream_unchanged( 126bool resource_is_stream_unchanged(
127 const struct validate_context *old_context, struct core_stream *stream); 127 const struct validate_context *old_context, const struct core_stream *stream);
128
129bool is_stream_unchanged(
130 const struct core_stream *old_stream, const struct core_stream *stream);
128 131
129bool is_target_unchanged(
130 const struct core_target *old_target, const struct core_target *target);
131bool resource_validate_attach_surfaces( 132bool resource_validate_attach_surfaces(
132 const struct dc_validation_set set[], 133 const struct dc_validation_set set[],
133 int set_count, 134 int set_count,
134 const struct validate_context *old_context, 135 const struct validate_context *old_context,
135 struct validate_context *context); 136 struct validate_context *context);
136 137
137void validate_guaranteed_copy_target( 138void validate_guaranteed_copy_streams(
138 struct validate_context *context, 139 struct validate_context *context,
139 int max_targets); 140 int max_streams);
140 141
141void resource_validate_ctx_update_pointer_after_copy( 142void resource_validate_ctx_update_pointer_after_copy(
142 const struct validate_context *src_ctx, 143 const struct validate_context *src_ctx,