summaryrefslogtreecommitdiff
path: root/src/video_core/gpu_thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/gpu_thread.cpp')
-rw-r--r--src/video_core/gpu_thread.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/video_core/gpu_thread.cpp b/src/video_core/gpu_thread.cpp
index 22c4cca4d..7640da6c0 100644
--- a/src/video_core/gpu_thread.cpp
+++ b/src/video_core/gpu_thread.cpp
@@ -110,9 +110,8 @@ void ThreadManager::SwapBuffers(
110} 110}
111 111
112void ThreadManager::FlushRegion(VAddr addr, u64 size) { 112void ThreadManager::FlushRegion(VAddr addr, u64 size) {
113 if (Settings::values.use_accurate_gpu_emulation) { 113 // Block the CPU when using accurate emulation
114 PushCommand(FlushRegionCommand(addr, size), true, false); 114 PushCommand(FlushRegionCommand(addr, size), Settings::values.use_accurate_gpu_emulation, false);
115 }
116} 115}
117 116
118void ThreadManager::InvalidateRegion(VAddr addr, u64 size) { 117void ThreadManager::InvalidateRegion(VAddr addr, u64 size) {
@@ -120,11 +119,9 @@ void ThreadManager::InvalidateRegion(VAddr addr, u64 size) {
120} 119}
121 120
122void ThreadManager::FlushAndInvalidateRegion(VAddr addr, u64 size) { 121void ThreadManager::FlushAndInvalidateRegion(VAddr addr, u64 size) {
123 if (Settings::values.use_accurate_gpu_emulation) { 122 // Block the CPU when using accurate emulation
124 PushCommand(FlushAndInvalidateRegionCommand(addr, size), true, false); 123 PushCommand(FlushAndInvalidateRegionCommand(addr, size),
125 } else { 124 Settings::values.use_accurate_gpu_emulation, false);
126 InvalidateRegion(addr, size);
127 }
128} 125}
129 126
130void ThreadManager::PushCommand(CommandData&& command_data, bool wait_for_idle, bool allow_on_cpu) { 127void ThreadManager::PushCommand(CommandData&& command_data, bool wait_for_idle, bool allow_on_cpu) {