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.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/video_core/gpu_thread.cpp b/src/video_core/gpu_thread.cpp
index 251a9d911..672f8d2fa 100644
--- a/src/video_core/gpu_thread.cpp
+++ b/src/video_core/gpu_thread.cpp
@@ -6,6 +6,7 @@
6#include "common/microprofile.h" 6#include "common/microprofile.h"
7#include "core/core.h" 7#include "core/core.h"
8#include "core/frontend/emu_window.h" 8#include "core/frontend/emu_window.h"
9#include "core/settings.h"
9#include "video_core/dma_pusher.h" 10#include "video_core/dma_pusher.h"
10#include "video_core/gpu.h" 11#include "video_core/gpu.h"
11#include "video_core/gpu_thread.h" 12#include "video_core/gpu_thread.h"
@@ -80,7 +81,11 @@ void ThreadManager::SwapBuffers(const Tegra::FramebufferConfig* framebuffer) {
80} 81}
81 82
82void ThreadManager::FlushRegion(VAddr addr, u64 size) { 83void ThreadManager::FlushRegion(VAddr addr, u64 size) {
83 PushCommand(FlushRegionCommand(addr, size)); 84 if (system.Renderer().Rasterizer().MustFlushRegion(addr, size)) {
85 u64 fence = PushCommand(FlushRegionCommand(addr, size));
86 while (fence < state.signaled_fence.load(std::memory_order_relaxed)) {
87 }
88 }
84} 89}
85 90
86void ThreadManager::InvalidateRegion(VAddr addr, u64 size) { 91void ThreadManager::InvalidateRegion(VAddr addr, u64 size) {