vulkan/wsi: Only wait on semaphores on the first swapchain
Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Chad Versace <chadversary@chromium.org>
This commit is contained in:
parent
b91a1953e8
commit
59e58c348e
|
@ -541,9 +541,14 @@ wsi_common_queue_present(const struct wsi_device *wsi,
|
||||||
VkSubmitInfo submit_info = {
|
VkSubmitInfo submit_info = {
|
||||||
.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO,
|
.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO,
|
||||||
.pNext = NULL,
|
.pNext = NULL,
|
||||||
.waitSemaphoreCount = pPresentInfo->waitSemaphoreCount,
|
|
||||||
.pWaitSemaphores = pPresentInfo->pWaitSemaphores,
|
|
||||||
};
|
};
|
||||||
|
if (i == 0) {
|
||||||
|
/* We only need/want to wait on semaphores once. After that, we're
|
||||||
|
* guaranteed ordering since it all happens on the same queue.
|
||||||
|
*/
|
||||||
|
submit_info.waitSemaphoreCount = pPresentInfo->waitSemaphoreCount,
|
||||||
|
submit_info.pWaitSemaphores = pPresentInfo->pWaitSemaphores,
|
||||||
|
}
|
||||||
result = wsi->QueueSubmit(queue, 1, &submit_info, swapchain->fences[0]);
|
result = wsi->QueueSubmit(queue, 1, &submit_info, swapchain->fences[0]);
|
||||||
if (result != VK_SUCCESS)
|
if (result != VK_SUCCESS)
|
||||||
goto fail_present;
|
goto fail_present;
|
||||||
|
|
Loading…
Reference in New Issue