From 885497a4456256a147d9e7e30daa3170e461d7d6 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Thu, 28 Sep 2017 22:33:31 +0200 Subject: vo_gpu: vulkan: reorganize vk_cmd slightly Instead of associating a single VkSemaphore with every command buffer and allowing the user to ad-hoc wait on it during submission, make the raw semaphores-to-signal array work like the raw semaphores-to-wait-on array. Doesn't really provide a clear benefit yet, but it's required for upcoming modifications. --- video/out/vulkan/ra_vk.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'video/out/vulkan/ra_vk.h') diff --git a/video/out/vulkan/ra_vk.h b/video/out/vulkan/ra_vk.h index 893421bc59..d15b6380f0 100644 --- a/video/out/vulkan/ra_vk.h +++ b/video/out/vulkan/ra_vk.h @@ -18,13 +18,12 @@ struct ra_tex *ra_vk_wrap_swapchain_img(struct ra *ra, VkImage vkimg, // This function flushes the command buffers, transitions `tex` (which must be // a wrapped swapchain image) into a format suitable for presentation, and -// submits the current rendering commands. The indicated semaphore must fire -// before the submitted command can run. If `done` is non-NULL, it will be -// set to a semaphore that fires once the command completes. If `inflight` +// submits the current rendering commands. `acquired` must fire before the +// command can run, and `done` will fire after it completes. If `inflight` // is non-NULL, it will be incremented when the command starts and decremented // when it completes. bool ra_vk_submit(struct ra *ra, struct ra_tex *tex, VkSemaphore acquired, - VkSemaphore *done, int *inflight); + VkSemaphore done, int *inflight); // May be called on a struct ra of any type. Returns NULL if the ra is not // a vulkan ra. -- cgit v1.2.3