anv/android: Re-implement AcquireImageANDROID
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 1 Feb 2021 21:03:33 +0000 (15:03 -0600)
committerMarge Bot <eric+marge@anholt.net>
Thu, 18 Feb 2021 06:11:05 +0000 (06:11 +0000)
commit7c63be7ffc067592ca08a2a26a881e55e87c6948
treedacbad05e2da18ef14c03f4b161e2d22310bf2a9
parentfa3cd19697ca54e26189886ca19d63370a258079
anv/android: Re-implement AcquireImageANDROID

Instead of doing a vkQueueSubmit() and hoping for the best, use the
actual sync FD that gets passed in from SurfaceFlinger.  The semaphore
and fence FD import functions already handle the -1 case for us so the
implementation is almost trivial.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Tested-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Chad Versace <chad@kiwitree.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8814>
src/intel/vulkan/anv_android.c