drm/amd/display: Build stream update and plane updates in dm
authorBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Mon, 20 Aug 2018 17:32:07 +0000 (13:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Sep 2018 03:42:00 +0000 (22:42 -0500)
commita87fa9938749bcdcdec4376e9e7d1ccb39ebbd8a
tree763cc5c118477544e27e15e15b31b41de17ac29b
parent43c40a02c1b1bbedbf7c1c10392cf885a0bb3f46
drm/amd/display: Build stream update and plane updates in dm

[Why]
We currently lock modeset by setting a boolean in dm. We want to lock
Based on what DC tells us.

[How]
Build stream_updates and plane_update based on what changed. Then we
call check_update_surfaces_for_stream() to get the update type
We lock only if update_type is not fast

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