drm/amdgpu/display: use blanked rather than plane state for sync groups
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 2 Jun 2020 21:22:48 +0000 (17:22 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:16 +0000 (01:59 -0400)
commit3a3a720eb3bf75bf144180f6e040d7d7b42775e1
tree889e03ae1e46139d94adb2b042b28f68f730d4d8
parent4ec6c0a2080bad4aafda0160f4d1ff984cebd452
drm/amdgpu/display: use blanked rather than plane state for sync groups

We may end up with no planes set yet, depending on the ordering, but we
should have the proper blanking state which is either handled by either
DPG or TG depending on the hardware generation.  Check both to determine
the proper blanked state.

Bug: https://gitlab.freedesktop.org/drm/amd/issues/781
Fixes: 5fc0cbfad45648 ("drm/amd/display: determine if a pipe is synced by plane state")
Cc: nicholas.kazlauskas@amd.com
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c