drm/amd/display: refactor dc_update_surfaces_for_stream
authorTony Cheng <tony.cheng@amd.com>
Fri, 20 Jan 2017 04:57:09 +0000 (23:57 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:12:00 +0000 (17:12 -0400)
commite72f0acd369d3ddfa6e924279d4010bcdb3de31b
tree26103558e23236c9277ae5c369079356a1694dc5
parentfde2deae86220eb5c3f88bf5ee9ff47175810b34
drm/amd/display: refactor dc_update_surfaces_for_stream

- reuse existing helper functions
- helper function to make it more obvious which cases we can do optimize programming

Signed-off-by: Tony Cheng <tony.cheng@amd.com>
Reviewed-by: Yongqiang Sun <yongqiang.sun@amd.com>
Acked-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