drm/amdgpu: Refactor flip into prepare submit and submit. (v3)
authorAndrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Mon, 5 Dec 2016 20:15:33 +0000 (15:15 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Jan 2017 16:13:31 +0000 (11:13 -0500)
commitcb341a319f7e66f879d69af929c3dadfc1a8f31e
tree0b08b6f91abb4f20851e406fc9bc77a9f2f7bb95
parent3caf861e987a3409deb0a6e0daded2429d4f4750
drm/amdgpu: Refactor flip into prepare submit and submit. (v3)

Make pflip atomic friendly. Split the fuinction into
whatever can fail part and the actual flip submit part.
Call the pre-submit function before atomic states
are swapped so in case of error we can fail the
IOCTL.

v2:
Update due to  target_vblank code change.
Fix identetation.
Change return type for amdgpu_crtc_submit_flip to void
v3: agd: fix formatting

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/amdgpu/amdgpu_display.c
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h