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: b996fa8efa ("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>
This commit is contained in:
Tapani Pälli 2021-10-12 11:13:49 +03:00 committed by Marge Bot
parent e28ce12afa
commit 840c79fc9b
1 changed files with 3 additions and 0 deletions

View File

@ -904,6 +904,9 @@ anv_QueueSignalReleaseImageANDROID(
.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO,
.waitSemaphoreCount = 1,
.pWaitSemaphores = pWaitSemaphores,
.pWaitDstStageMask = &(VkPipelineStageFlags) {
VK_PIPELINE_STAGE_ALL_COMMANDS_BIT
},
},
(VkFence) VK_NULL_HANDLE);
if (result != VK_SUCCESS)