diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-06-08 23:04:41 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-07-05 21:49:19 +0200 |
commit | 600dddf88db0a786b945c65d27da05105410bfe6 (patch) | |
tree | 385a1061bab9a5e44b26c93989cbb5b42d4001a8 /src/video_core/gpu_thread.cpp | |
parent | Gpu: use an std mutex instead of a spin_lock to guard syncpoints (diff) | |
download | yuzu-600dddf88db0a786b945c65d27da05105410bfe6.tar yuzu-600dddf88db0a786b945c65d27da05105410bfe6.tar.gz yuzu-600dddf88db0a786b945c65d27da05105410bfe6.tar.bz2 yuzu-600dddf88db0a786b945c65d27da05105410bfe6.tar.lz yuzu-600dddf88db0a786b945c65d27da05105410bfe6.tar.xz yuzu-600dddf88db0a786b945c65d27da05105410bfe6.tar.zst yuzu-600dddf88db0a786b945c65d27da05105410bfe6.zip |
Diffstat (limited to 'src/video_core/gpu_thread.cpp')
-rw-r--r-- | src/video_core/gpu_thread.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/video_core/gpu_thread.cpp b/src/video_core/gpu_thread.cpp index 3f0939ec9..692655395 100644 --- a/src/video_core/gpu_thread.cpp +++ b/src/video_core/gpu_thread.cpp @@ -89,12 +89,7 @@ void ThreadManager::FlushRegion(CacheAddr addr, u64 size) { } void ThreadManager::InvalidateRegion(CacheAddr addr, u64 size) { - if (state.queue.Empty()) { - // It's quicker to invalidate a single region on the CPU if the queue is already empty - system.Renderer().Rasterizer().InvalidateRegion(addr, size); - } else { - PushCommand(InvalidateRegionCommand(addr, size)); - } + system.Renderer().Rasterizer().InvalidateRegion(addr, size); } void ThreadManager::FlushAndInvalidateRegion(CacheAddr addr, u64 size) { |