OSDN Git Service

drm/amd/display: determine if a pipe is synced by plane state
authorWenjing Liu <Wenjing.Liu@amd.com>
Fri, 18 Jan 2019 23:19:51 +0000 (18:19 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Feb 2019 02:16:23 +0000 (21:16 -0500)
commit5fc0cbfad4564856ee0f323d3f88a7cff19cc3f1
tree9b2cdce6df15dc8f7eecec6ee40663edf9d6a84e
parent8f0159122714d38f89140993eb0a070f8eeb2e9d
drm/amd/display: determine if a pipe is synced by plane state

[why]
is_blanked is not a general indicator of if a pipe is synced
for all asics.
plane state is more accurate and applicable for all asics.

[how]
Remove is_blanked call and
add checking plane_state against NULL instead.

Signed-off-by: Wenjing Liu <Wenjing.Liu@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c