summaryrefslogtreecommitdiffstats
path: root/src/video_core/gpu_thread.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-02-18 18:24:38 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-04-22 17:36:14 +0200
commit4adfc9bb0870296b372dc96296436538d6aa6c32 (patch)
treedf7dac8d36ec4a4a9c89ed6512eeb4372af4289c /src/video_core/gpu_thread.cpp
parentGPU: Fix rebase errors. (diff)
downloadyuzu-4adfc9bb0870296b372dc96296436538d6aa6c32.tar
yuzu-4adfc9bb0870296b372dc96296436538d6aa6c32.tar.gz
yuzu-4adfc9bb0870296b372dc96296436538d6aa6c32.tar.bz2
yuzu-4adfc9bb0870296b372dc96296436538d6aa6c32.tar.lz
yuzu-4adfc9bb0870296b372dc96296436538d6aa6c32.tar.xz
yuzu-4adfc9bb0870296b372dc96296436538d6aa6c32.tar.zst
yuzu-4adfc9bb0870296b372dc96296436538d6aa6c32.zip
Diffstat (limited to 'src/video_core/gpu_thread.cpp')
-rw-r--r--src/video_core/gpu_thread.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_core/gpu_thread.cpp b/src/video_core/gpu_thread.cpp
index 672f8d2fa..1c3ab2145 100644
--- a/src/video_core/gpu_thread.cpp
+++ b/src/video_core/gpu_thread.cpp
@@ -81,9 +81,12 @@ void ThreadManager::SwapBuffers(const Tegra::FramebufferConfig* framebuffer) {
}
void ThreadManager::FlushRegion(VAddr addr, u64 size) {
+ if (!Settings::IsGPULevelExtreme()) {
+ return;
+ }
if (system.Renderer().Rasterizer().MustFlushRegion(addr, size)) {
u64 fence = PushCommand(FlushRegionCommand(addr, size));
- while (fence < state.signaled_fence.load(std::memory_order_relaxed)) {
+ while (fence > state.signaled_fence.load(std::memory_order_relaxed)) {
}
}
}