st/dri: fix deadlock when waiting on android fences
authorMarek Olšák <marek.olsak@amd.com>
Fri, 10 Nov 2017 18:08:50 +0000 (19:08 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 11 Nov 2017 03:12:53 +0000 (04:12 +0100)
commit3a71eac783ea5a1c16772f8ec91c4a01ca32504d
tree12c37d5374251f25dafd8b10fd7eb316df01672e
parent881f6e741fe0f63df1aa6aadba7e2eb64269cb20
st/dri: fix deadlock when waiting on android fences

Android fences can't be deferred, because st/dri calls fence_finish
with ctx = NULL, so the driver can't flush u_threaded_context.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/include/state_tracker/st_api.h
src/gallium/state_trackers/dri/dri_helpers.c
src/mesa/state_tracker/st_manager.c