egl/android: require ANDROID_native_fence_sync for buffer age
authorChia-I Wu <olvaffe@gmail.com>
Thu, 7 Feb 2019 23:14:19 +0000 (15:14 -0800)
committerMarge Bot <eric+marge@anholt.net>
Mon, 9 Mar 2020 18:27:11 +0000 (18:27 +0000)
commitf3728816afbbe39a563ec02ba65f3b1516d79881
tree0ea9c5f9f60f90763c252f2cf9ad8b2a8283a4d1
parentc7976ed43a7faa8a987b7b90e8f05471fde70620
egl/android: require ANDROID_native_fence_sync for buffer age

Querying buffer age requires a buffer to be dequeued.  But dequeuing
without ANDROID_native_fence_sync might imply eglClientWaitSync,
which results in a deadlock as the display lock is already held by
eglQuerySurface.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/221>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/221>
src/egl/drivers/dri2/platform_android.c