summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2023-05-04 02:34:49 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2023-05-07 23:46:12 +0200
commit92da86290c5ea657ae918bfe36071bdf7ac15075 (patch)
tree54579c5be80dde28aabe68cd2467281036ef807a /src/core
parentTexture cache: sync the first flush. (diff)
downloadyuzu-92da86290c5ea657ae918bfe36071bdf7ac15075.tar
yuzu-92da86290c5ea657ae918bfe36071bdf7ac15075.tar.gz
yuzu-92da86290c5ea657ae918bfe36071bdf7ac15075.tar.bz2
yuzu-92da86290c5ea657ae918bfe36071bdf7ac15075.tar.lz
yuzu-92da86290c5ea657ae918bfe36071bdf7ac15075.tar.xz
yuzu-92da86290c5ea657ae918bfe36071bdf7ac15075.tar.zst
yuzu-92da86290c5ea657ae918bfe36071bdf7ac15075.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/memory.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/memory.cpp b/src/core/memory.cpp
index 7b79cb8bc..549b64ac4 100644
--- a/src/core/memory.cpp
+++ b/src/core/memory.cpp
@@ -465,7 +465,8 @@ struct Memory::Impl {
}
if (Settings::IsFastmemEnabled()) {
- system.DeviceMemory().buffer.Protect(vaddr, size, !cached, !cached);
+ const bool is_read_enable = !Settings::values.use_reactive_flushing.GetValue() || !cached;
+ system.DeviceMemory().buffer.Protect(vaddr, size, is_read_enable, !cached);
}
// Iterate over a contiguous CPU address space, which corresponds to the specified GPU