summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/inc
diff options
context:
space:
mode:
authorHarry Wentland <harry.wentland@amd.com>2017-07-20 11:43:32 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 18:15:35 -0400
commite12cfcb1d447cc937d1abc6f4aab8bbe5f88542e (patch)
tree92fc6fef16ac8e946d88ba7136607b304f7f1494 /drivers/gpu/drm/amd/display/dc/inc
parent08b1688620426ad3e09fc7a98aabc28dda30cde6 (diff)
downloadlinux-e12cfcb1d447cc937d1abc6f4aab8bbe5f88542e.tar.gz
linux-e12cfcb1d447cc937d1abc6f4aab8bbe5f88542e.tar.bz2
linux-e12cfcb1d447cc937d1abc6f4aab8bbe5f88542e.zip
drm/amd/display: Roll core_surface into dc_surface
Signed-off-by: Harry Wentland <harry.wentland@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@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')
-rw-r--r--drivers/gpu/drm/amd/display/dc/inc/core_types.h16
-rw-r--r--drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h4
-rw-r--r--drivers/gpu/drm/amd/display/dc/inc/resource.h2
3 files changed, 4 insertions, 18 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/inc/core_types.h b/drivers/gpu/drm/amd/display/dc/inc/core_types.h
index cc65cfdea66f..07a1aec5a28b 100644
--- a/drivers/gpu/drm/amd/display/dc/inc/core_types.h
+++ b/drivers/gpu/drm/amd/display/dc/inc/core_types.h
@@ -40,23 +40,9 @@ struct core_stream;
#define MAX_CLOCK_SOURCES 7
-/********* core_surface **********/
-#define DC_SURFACE_TO_CORE(dc_surface) \
- container_of(dc_surface, struct core_surface, public)
-
#define DC_GAMMA_TO_CORE(dc_gamma) \
container_of(dc_gamma, struct core_gamma, public)
-struct core_surface {
- struct dc_surface public;
- struct dc_surface_status status;
- struct dc_context *ctx;
-
- /* private to dc_surface.c */
- enum dc_irq_source irq_source;
- int ref_count;
-};
-
struct core_gamma {
struct dc_gamma public;
struct dc_context *ctx;
@@ -263,7 +249,7 @@ struct resource_pool {
};
struct pipe_ctx {
- struct core_surface *surface;
+ struct dc_surface *surface;
struct core_stream *stream;
struct mem_input *mi;
diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h b/drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h
index d865df802c88..2343beb4ef87 100644
--- a/drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h
+++ b/drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h
@@ -59,7 +59,7 @@ struct hw_sequencer_funcs {
void (*apply_ctx_for_surface)(
struct core_dc *dc,
- struct core_surface *surface,
+ const struct dc_surface *surface,
struct validate_context *context);
void (*set_plane_config)(
@@ -88,7 +88,7 @@ struct hw_sequencer_funcs {
bool (*set_input_transfer_func)(
struct pipe_ctx *pipe_ctx,
- const struct core_surface *surface);
+ const struct dc_surface *surface);
bool (*set_output_transfer_func)(
struct pipe_ctx *pipe_ctx,
diff --git a/drivers/gpu/drm/amd/display/dc/inc/resource.h b/drivers/gpu/drm/amd/display/dc/inc/resource.h
index 04e5fd1d8c89..ed94df16a2d3 100644
--- a/drivers/gpu/drm/amd/display/dc/inc/resource.h
+++ b/drivers/gpu/drm/amd/display/dc/inc/resource.h
@@ -119,7 +119,7 @@ struct pipe_ctx *resource_get_head_pipe_for_stream(
const struct core_stream *stream);
bool resource_attach_surfaces_to_context(
- const struct dc_surface *const *surfaces,
+ struct dc_surface *const *surfaces,
int surface_count,
const struct dc_stream *dc_stream,
struct validate_context *context,