st/mesa: allow multiple concurrent waiters in ClientWaitSync
authorMarek Olšák <marek.olsak@amd.com>
Tue, 25 Oct 2016 11:10:49 +0000 (13:10 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 26 Oct 2016 11:02:58 +0000 (13:02 +0200)
commitb687f766fddb7b39479cd9ee0427984029ea3559
treef37675d986f099368e5366da6a5f4b3d6b4713f1
parentf240ad98bc05281ea7013d91973cb5f932ae9434
st/mesa: allow multiple concurrent waiters in ClientWaitSync

so->fence can be unreferenced by one thread while another thread is
somewhere in ClientWaitSync and expecting so->fence to be non-NULL.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98172

Cc: 12.0 13.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_cb_syncobj.c