st/vdpau: really block until surface is idle
authorGrigori Goronzy <greg@chown.ath.cx>
Wed, 9 Oct 2013 00:23:52 +0000 (02:23 +0200)
committerChristian König <christian.koenig@amd.com>
Wed, 9 Oct 2013 11:02:40 +0000 (13:02 +0200)
commitbd19e25703f483cfe48188c6bb553648415b4ecc
treed5370b9f5fb3a91df65f042d81d898166776a254
parent48563bd45c546a7759d6f739607b9f0906b4c8ad
st/vdpau: really block until surface is idle

pipe_screen::fence_finish with zero timeout returns quickly and
doesn't wait at all. Fix that, and also delete the fence afterwards,
so that QuerySurfaceStatus returns the right state later.

Addresses:
https://trac.videolan.org/vlc/ticket/9281
https://bugs.freedesktop.org/show_bug.cgi?id=68792

Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/vdpau/presentation.c