mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 04:36:07 +00:00
aux/vk: Lock vkCmdPipelineBarrier with pool mutex.
This commit is contained in:
parent
0e4e4efe79
commit
a786401bec
|
@ -618,9 +618,11 @@ vk_set_image_layout(struct vk_bundle *vk,
|
|||
.subresourceRange = subresource_range,
|
||||
};
|
||||
|
||||
os_mutex_lock(&vk->cmd_pool_mutex);
|
||||
vk->vkCmdPipelineBarrier(cmd_buffer, VK_PIPELINE_STAGE_ALL_COMMANDS_BIT,
|
||||
VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, 0, 0, NULL,
|
||||
0, NULL, 1, &barrier);
|
||||
os_mutex_unlock(&vk->cmd_pool_mutex);
|
||||
|
||||
return VK_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue