diff options
| author | 2023-10-17 10:00:25 -0400 | |
|---|---|---|
| committer | 2023-10-17 10:00:25 -0400 | |
| commit | d9dde7e6f3a90f58d642808900ddd558da21f762 (patch) | |
| tree | ee63e7760efb66b738ef4981751d6fd9bbbbe9a8 /src/video_core/fence_manager.h | |
| parent | Merge pull request #11788 from Squall-Leonhart/IFREMOVED (diff) | |
| download | yuzu-d9dde7e6f3a90f58d642808900ddd558da21f762.tar.gz yuzu-d9dde7e6f3a90f58d642808900ddd558da21f762.tar.xz yuzu-d9dde7e6f3a90f58d642808900ddd558da21f762.zip | |
renderer_vulkan: add locks to avoid scheduler flushes from CPU
Diffstat (limited to 'src/video_core/fence_manager.h')
| -rw-r--r-- | src/video_core/fence_manager.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_core/fence_manager.h b/src/video_core/fence_manager.h index 805a89900..c0e6471fe 100644 --- a/src/video_core/fence_manager.h +++ b/src/video_core/fence_manager.h | |||
| @@ -86,7 +86,10 @@ public: | |||
| 86 | uncommitted_operations.emplace_back(std::move(func)); | 86 | uncommitted_operations.emplace_back(std::move(func)); |
| 87 | } | 87 | } |
| 88 | pending_operations.emplace_back(std::move(uncommitted_operations)); | 88 | pending_operations.emplace_back(std::move(uncommitted_operations)); |
| 89 | QueueFence(new_fence); | 89 | { |
| 90 | std::scoped_lock lock{buffer_cache.mutex, texture_cache.mutex}; | ||
| 91 | QueueFence(new_fence); | ||
| 92 | } | ||
| 90 | if (!delay_fence) { | 93 | if (!delay_fence) { |
| 91 | func(); | 94 | func(); |
| 92 | } | 95 | } |