diff options
| author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-01-31 17:08:08 +0100 |
|---|---|---|
| committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-01-31 17:08:08 +0100 |
| commit | 35ed051742125b9fd3b314ce5241075ae658e4a5 (patch) | |
| tree | 6aef02414e37959d76e6c430dcb4ed1372481bb8 /src/video_core/renderer_vulkan/vk_scheduler.cpp | |
| parent | 11099dda2e2ab67ba4861d1e927afaa2ccce1efa (diff) | |
Vulkan: Fix Scheduler Chunks when their FuncType is 0.
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_scheduler.cpp')
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_scheduler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_vulkan/vk_scheduler.cpp b/src/video_core/renderer_vulkan/vk_scheduler.cpp index 3bfdf41ba..7d9d4f7ba 100644 --- a/src/video_core/renderer_vulkan/vk_scheduler.cpp +++ b/src/video_core/renderer_vulkan/vk_scheduler.cpp @@ -140,12 +140,12 @@ bool VKScheduler::UpdateRescaling(bool is_rescaling) { void VKScheduler::WorkerThread(std::stop_token stop_token) { Common::SetCurrentThreadName("yuzu:VulkanWorker"); do { - if (work_queue.empty()) { - wait_cv.notify_all(); - } std::unique_ptr<CommandChunk> work; { std::unique_lock lock{work_mutex}; + if (work_queue.empty()) { + wait_cv.notify_all(); + } work_cv.wait(lock, stop_token, [this] { return !work_queue.empty(); }); if (stop_token.stop_requested()) { continue; |
