diff options
author | Fernando S <fsahmkow27@gmail.com> | 2021-09-11 22:35:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-11 22:35:52 +0200 |
commit | 472aad69db9480936eae4d3f07397f4bf71a1d47 (patch) | |
tree | 40364432f55cc13389ca918236283b19447780ff /src/video_core/renderer_vulkan/vk_scheduler.h | |
parent | Merge pull request #6981 from ameerj/nvflinger-hb-format (diff) | |
parent | renderer_vulkan: Wait on present semaphore at queue submit (diff) | |
download | yuzu-472aad69db9480936eae4d3f07397f4bf71a1d47.tar yuzu-472aad69db9480936eae4d3f07397f4bf71a1d47.tar.gz yuzu-472aad69db9480936eae4d3f07397f4bf71a1d47.tar.bz2 yuzu-472aad69db9480936eae4d3f07397f4bf71a1d47.tar.lz yuzu-472aad69db9480936eae4d3f07397f4bf71a1d47.tar.xz yuzu-472aad69db9480936eae4d3f07397f4bf71a1d47.tar.zst yuzu-472aad69db9480936eae4d3f07397f4bf71a1d47.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_scheduler.h')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_scheduler.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_vulkan/vk_scheduler.h b/src/video_core/renderer_vulkan/vk_scheduler.h index cf39a2363..759ed5a48 100644 --- a/src/video_core/renderer_vulkan/vk_scheduler.h +++ b/src/video_core/renderer_vulkan/vk_scheduler.h @@ -34,10 +34,10 @@ public: ~VKScheduler(); /// Sends the current execution context to the GPU. - void Flush(VkSemaphore semaphore = nullptr); + void Flush(VkSemaphore signal_semaphore = nullptr, VkSemaphore wait_semaphore = nullptr); /// Sends the current execution context to the GPU and waits for it to complete. - void Finish(VkSemaphore semaphore = nullptr); + void Finish(VkSemaphore signal_semaphore = nullptr, VkSemaphore wait_semaphore = nullptr); /// Waits for the worker thread to finish executing everything. After this function returns it's /// safe to touch worker resources. @@ -191,7 +191,7 @@ private: void AllocateWorkerCommandBuffer(); - void SubmitExecution(VkSemaphore semaphore); + void SubmitExecution(VkSemaphore signal_semaphore, VkSemaphore wait_semaphore); void AllocateNewContext(); |