From cf5a4c11a1561db5c31a2783611aa6d5dbb67225 Mon Sep 17 00:00:00 2001 From: Andrey Grodzovsky Date: Wed, 28 Jun 2017 11:03:11 -0400 Subject: [PATCH] drm/amd/display: Move dm_plane_state definition to DAL header. Signed-off-by: Andrey Grodzovsky Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 8 -------- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.h | 6 ++++++ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h index 2d34f9bb5d47..2bb2fc2a6566 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h @@ -442,14 +442,6 @@ struct amdgpu_crtc { struct drm_pending_vblank_event *event; }; -/* TODO rename to dc_plane_state */ -struct dc_surface; - -struct dm_plane_state { - struct drm_plane_state base; - struct dc_surface* dc_surface; -}; - struct amdgpu_plane { struct drm_plane base; enum drm_plane_type plane_type; diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.h b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.h index b69c86826b1a..6411dd1819dd 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.h +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.h @@ -33,6 +33,12 @@ struct amdgpu_display_manager; struct dc_validation_set; struct dc_surface; +struct dm_plane_state { + struct drm_plane_state base; + struct dc_surface *dc_surface; +}; + + /*TODO Jodan Hersen use the one in amdgpu_dm*/ int amdgpu_dm_plane_init(struct amdgpu_display_manager *dm, struct amdgpu_plane *aplane, -- GitLab