summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan/vk_scheduler.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-02-03 03:15:06 +0100
committerGitHub <noreply@github.com>2022-02-03 03:15:06 +0100
commit8ec32e975533fce7274157f5259a9c8ba4d78fc5 (patch)
treea12a8e1ddc74c61c270c95d2bfc63f424344108b /src/video_core/renderer_vulkan/vk_scheduler.cpp
parentMerge pull request #7835 from bunnei/page-table-lock (diff)
parentVulkan: Fix Scheduler Chunks when their FuncType is 0. (diff)
downloadyuzu-8ec32e975533fce7274157f5259a9c8ba4d78fc5.tar
yuzu-8ec32e975533fce7274157f5259a9c8ba4d78fc5.tar.gz
yuzu-8ec32e975533fce7274157f5259a9c8ba4d78fc5.tar.bz2
yuzu-8ec32e975533fce7274157f5259a9c8ba4d78fc5.tar.lz
yuzu-8ec32e975533fce7274157f5259a9c8ba4d78fc5.tar.xz
yuzu-8ec32e975533fce7274157f5259a9c8ba4d78fc5.tar.zst
yuzu-8ec32e975533fce7274157f5259a9c8ba4d78fc5.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_vulkan/vk_scheduler.cpp6
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;