summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-06-08 23:04:41 +0200
committerFernandoS27 <fsahmkow27@gmail.com>2019-07-05 21:49:19 +0200
commit600dddf88db0a786b945c65d27da05105410bfe6 (patch)
tree385a1061bab9a5e44b26c93989cbb5b42d4001a8 /src/video_core
parentGpu: use an std mutex instead of a spin_lock to guard syncpoints (diff)
downloadyuzu-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')
-rw-r--r--src/video_core/gpu_thread.cpp7
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) {