Skip to content
Snippets Groups Projects
Commit 840c79fc authored by Tapani Pälli's avatar Tapani Pälli Committed by Marge Bot
Browse files

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: b996fa8e ("anv: implement VK_KHR_synchronization2")
Signed-off-by: default avatarTapani Pälli <tapani.palli@intel.com>
Reviewed-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: default avatarJason Ekstrand <jason@jlekstrand.net>
Part-of: <!13305>
parent e28ce12a
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment