drm/vc4: Fix sending of page flip completion events in FKMS mode.
authorEric Anholt <eric@anholt.net>
Thu, 2 Feb 2017 17:42:18 +0000 (09:42 -0800)
committerpopcornmix <popcornmix@gmail.com>
Mon, 20 Feb 2017 20:31:52 +0000 (20:31 +0000)
commit6974c1ecd8edcd60bd83fc5bb53d79307eb063bc
tree1b3c65aabfbab22a2e93ae36754c7cd162a7e9a8
parenta08a88d2c0ca0e43dc326c7328cb74518be10f88
drm/vc4: Fix sending of page flip completion events in FKMS mode.

In the rewrite of vc4_crtc.c for fkms, I dropped the part of the
CRTC's atomic flush handler that moved the completion event from the
proposed atomic state change to the CRTC's current state.  That meant
that when full screen pageflipping happened (glxgears -fullscreen in
X, compton, por weston), the app would end up blocked firever waiting
to draw its next frame.

Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/vc4/vc4_firmware_kms.c