diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-07-07 08:12:21 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-07-07 08:30:22 +0200 |
commit | 86a874a2fce5ec9ab6513eee689af1a63278dc9e (patch) | |
tree | fcd5009275c24ad92fd72ba94dc0abc20ba39fbe /src/video_core/renderer_vulkan/vk_scheduler.cpp | |
parent | Merge pull request #2674 from lioncash/reporter (diff) | |
download | yuzu-86a874a2fce5ec9ab6513eee689af1a63278dc9e.tar yuzu-86a874a2fce5ec9ab6513eee689af1a63278dc9e.tar.gz yuzu-86a874a2fce5ec9ab6513eee689af1a63278dc9e.tar.bz2 yuzu-86a874a2fce5ec9ab6513eee689af1a63278dc9e.tar.lz yuzu-86a874a2fce5ec9ab6513eee689af1a63278dc9e.tar.xz yuzu-86a874a2fce5ec9ab6513eee689af1a63278dc9e.tar.zst yuzu-86a874a2fce5ec9ab6513eee689af1a63278dc9e.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_scheduler.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_scheduler.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/video_core/renderer_vulkan/vk_scheduler.cpp b/src/video_core/renderer_vulkan/vk_scheduler.cpp index f1fea1871..0f8116458 100644 --- a/src/video_core/renderer_vulkan/vk_scheduler.cpp +++ b/src/video_core/renderer_vulkan/vk_scheduler.cpp @@ -19,23 +19,19 @@ VKScheduler::VKScheduler(const VKDevice& device, VKResourceManager& resource_man VKScheduler::~VKScheduler() = default; -VKExecutionContext VKScheduler::GetExecutionContext() const { - return VKExecutionContext(current_fence, current_cmdbuf); -} - -VKExecutionContext VKScheduler::Flush(vk::Semaphore semaphore) { +void VKScheduler::Flush(bool release_fence, vk::Semaphore semaphore) { SubmitExecution(semaphore); - current_fence->Release(); + if (release_fence) + current_fence->Release(); AllocateNewContext(); - return GetExecutionContext(); } -VKExecutionContext VKScheduler::Finish(vk::Semaphore semaphore) { +void VKScheduler::Finish(bool release_fence, vk::Semaphore semaphore) { SubmitExecution(semaphore); current_fence->Wait(); - current_fence->Release(); + if (release_fence) + current_fence->Release(); AllocateNewContext(); - return GetExecutionContext(); } void VKScheduler::SubmitExecution(vk::Semaphore semaphore) { |