summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2021-06-07 02:04:35 +0200
committerMarkus Wick <markus@selfnet.de>2021-06-11 17:27:17 +0200
commit588ab44470e65d4e2ec010aa48bb5f430d301f81 (patch)
treef803a81a823eaea6b37b5303976cd32a56f3a202
parentrasterizer: Update pages in batches (diff)
downloadyuzu-588ab44470e65d4e2ec010aa48bb5f430d301f81.tar
yuzu-588ab44470e65d4e2ec010aa48bb5f430d301f81.tar.gz
yuzu-588ab44470e65d4e2ec010aa48bb5f430d301f81.tar.bz2
yuzu-588ab44470e65d4e2ec010aa48bb5f430d301f81.tar.lz
yuzu-588ab44470e65d4e2ec010aa48bb5f430d301f81.tar.xz
yuzu-588ab44470e65d4e2ec010aa48bb5f430d301f81.tar.zst
yuzu-588ab44470e65d4e2ec010aa48bb5f430d301f81.zip
-rw-r--r--src/video_core/gpu_thread.cpp24
1 files changed, 6 insertions, 18 deletions
diff --git a/src/video_core/gpu_thread.cpp b/src/video_core/gpu_thread.cpp
index cd1fbb9bf..46f642b19 100644
--- a/src/video_core/gpu_thread.cpp
+++ b/src/video_core/gpu_thread.cpp
@@ -99,25 +99,13 @@ void ThreadManager::FlushRegion(VAddr addr, u64 size) {
PushCommand(FlushRegionCommand(addr, size));
return;
}
-
- // Asynchronous GPU mode
- switch (Settings::values.gpu_accuracy.GetValue()) {
- case Settings::GPUAccuracy::Normal:
- PushCommand(FlushRegionCommand(addr, size));
- break;
- case Settings::GPUAccuracy::High:
- // TODO(bunnei): Is this right? Preserving existing behavior for now
- break;
- case Settings::GPUAccuracy::Extreme: {
- auto& gpu = system.GPU();
- u64 fence = gpu.RequestFlush(addr, size);
- PushCommand(GPUTickCommand(), true);
- ASSERT(fence <= gpu.CurrentFlushRequestFence());
- break;
- }
- default:
- UNIMPLEMENTED_MSG("Unsupported gpu_accuracy {}", Settings::values.gpu_accuracy.GetValue());
+ if (!Settings::IsGPULevelExtreme()) {
+ return;
}
+ auto& gpu = system.GPU();
+ u64 fence = gpu.RequestFlush(addr, size);
+ PushCommand(GPUTickCommand(), true);
+ ASSERT(fence <= gpu.CurrentFlushRequestFence());
}
void ThreadManager::InvalidateRegion(VAddr addr, u64 size) {