summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc
diff options
context:
space:
mode:
authorHarry Wentland <harry.wentland@amd.com>2017-10-16 20:10:00 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-10-21 16:52:37 -0400
commit565f26a39d8e49745fda00d2303138aea831fd29 (patch)
tree51f4429a768f9eb41b4d672b5b28d23d4fc4a1ae /drivers/gpu/drm/amd/display/dc
parent3eea71e36fcd04d0a3e735ee3cf4dbbe9934e3c8 (diff)
downloadlinux-stable-565f26a39d8e49745fda00d2303138aea831fd29.tar.gz
linux-stable-565f26a39d8e49745fda00d2303138aea831fd29.tar.bz2
linux-stable-565f26a39d8e49745fda00d2303138aea831fd29.zip
drm/amd/display: Small comment on dc_commit_planes_to_stream
Having one struct on the stack was somewhat confusing. Also mention that the whole function should eventually go. Signed-off-by: Harry Wentland <harry.wentland@amd.com> Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc')
-rw-r--r--drivers/gpu/drm/amd/display/dc/core/dc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
index 7a0593d4ca62..a71392ffc46d 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
@@ -918,6 +918,12 @@ bool dc_post_update_surfaces_to_stream(struct dc *dc)
return true;
}
+/*
+ * TODO this whole function needs to go
+ *
+ * dc_surface_update is needlessly complex. See if we can just replace this
+ * with a dc_plane_state and follow the atomic model a bit more closely here.
+ */
bool dc_commit_planes_to_stream(
struct dc *dc,
struct dc_plane_state **plane_states,
@@ -925,6 +931,7 @@ bool dc_commit_planes_to_stream(
struct dc_stream_state *dc_stream,
struct dc_state *state)
{
+ /* no need to dynamically allocate this. it's pretty small */
struct dc_surface_update updates[MAX_SURFACES];
struct dc_flip_addrs *flip_addr;
struct dc_plane_info *plane_info;