drm/atomic: Save flip flags in drm_crtc_state
authorAndrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Thu, 2 Feb 2017 21:56:29 +0000 (16:56 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Feb 2017 17:32:20 +0000 (12:32 -0500)
commit6cbe5c466d73360506a24d98a2e71e47ae02e3ef
tree8272fa8208c6fe5cdb6ae3fd468a794ceeeea902
parentbb18dfcc640d0551073e756e0af2ff60bea89e6d
drm/atomic: Save flip flags in drm_crtc_state

Allows using atomic flip helpers for drivers
using ASYNC flip.
Remove ASYNC_FLIP restriction in helpers and
caches the page flip flags in drm_crtc_state
to be used in the low level drivers.

v2:
Resending the patch since the original was broken.

v3:
Save flag in crtc_state instead of plane_state

v4:
Reset the flag before using again.

v5:
Fix type in header.
Rename the field to pageflip_flags.
Remove unrelated hunk.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1486072591-3893-2-git-send-email-Andrey.Grodzovsky@amd.com
drivers/gpu/drm/drm_atomic_helper.c
include/drm/drm_crtc.h