drm/amd/display: Fix handling of scaling and underscan.
authorAndrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Mon, 22 May 2017 21:55:38 +0000 (17:55 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:07:32 +0000 (18:07 -0400)
commitccaa73897109c521a9fda82a50c988e9cba947e7
treeb2b0e7eab6661a2d0c66aad208476fafa2dd8b51
parentbf2e2e2e0ea9ace6ed11423497664656943ec55f
drm/amd/display: Fix handling of scaling and underscan.

Summury of changes:

1: Both in check and commit Connector properties were handled as
   part of for_each(crtc) loop while they shoud have been handled
   in a dedicated for_each(connector)
   loop since they are connector properties. Moved.

2: Removed hacky plane add in amdgpu_dm_connector_atomic_set_property
   to force iteration on plane forconnector property. This was
   causing double call to commit_surface_for_stream both in crtc loop
   and plane loop.
3: Remove middleman DC interface and  call dc_commit_surfaces_to_stream
   directly to increase code clarity.

Remove it from atomic_commit.

Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c