diff options
author | bunnei <bunneidev@gmail.com> | 2019-07-10 22:35:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-10 22:35:48 +0200 |
commit | 7fb7054bc85c8e5d83c19b8c7861f466fb0411d4 (patch) | |
tree | 1d12b85eb60f3f98395aafd0c4168aa32ceba292 /src/video_core/renderer_vulkan/vk_scheduler.cpp | |
parent | Merge pull request #2700 from ogniK5377/GetFriendList (diff) | |
parent | vk_scheduler: Drop execution context in favor of views (diff) | |
download | yuzu-7fb7054bc85c8e5d83c19b8c7861f466fb0411d4.tar yuzu-7fb7054bc85c8e5d83c19b8c7861f466fb0411d4.tar.gz yuzu-7fb7054bc85c8e5d83c19b8c7861f466fb0411d4.tar.bz2 yuzu-7fb7054bc85c8e5d83c19b8c7861f466fb0411d4.tar.lz yuzu-7fb7054bc85c8e5d83c19b8c7861f466fb0411d4.tar.xz yuzu-7fb7054bc85c8e5d83c19b8c7861f466fb0411d4.tar.zst yuzu-7fb7054bc85c8e5d83c19b8c7861f466fb0411d4.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) { |