anv/android: fix parameters given for vk_common_QueueSubmit
authorTapani Pälli <tapani.palli@intel.com>
Tue, 12 Oct 2021 08:13:49 +0000 (11:13 +0300)
committerMarge Bot <eric+marge@anholt.net>
Wed, 13 Oct 2021 06:00:56 +0000 (06:00 +0000)
commit840c79fc9bcba9dfa38107da37a375c18fdcdcc1
tree2a2452ba4330b22ce4f39fdf79bf9d4c51c514f4
parente28ce12afae5fddf8eedd60da1cd3f4d689fd245
anv/android: fix parameters given for vk_common_QueueSubmit

Common queue submit expects pWaitDstStageMask to be set per each
semaphore (as per Vulkan spec) and crashes if these are not given
properly.

This fixes crashes seen when running vulkan apps on Android.

v2: change the VkPipelineStageFlags given (Lionel)

Fixes: b996fa8efaa4 ("anv: implement VK_KHR_synchronization2")
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13305>
src/intel/vulkan/anv_android.c