diff options
author | Liam <byteslice@airmail.cc> | 2022-08-25 18:32:14 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-08-25 18:32:14 +0200 |
commit | db3eb168cd6a55c6387e3bfb23fb2eca061a691b (patch) | |
tree | 1dfd733a93036189ec07ee6764afba0113214255 /src/video_core | |
parent | Merge pull request #8812 from Kelebek1/auto (diff) | |
download | yuzu-db3eb168cd6a55c6387e3bfb23fb2eca061a691b.tar yuzu-db3eb168cd6a55c6387e3bfb23fb2eca061a691b.tar.gz yuzu-db3eb168cd6a55c6387e3bfb23fb2eca061a691b.tar.bz2 yuzu-db3eb168cd6a55c6387e3bfb23fb2eca061a691b.tar.lz yuzu-db3eb168cd6a55c6387e3bfb23fb2eca061a691b.tar.xz yuzu-db3eb168cd6a55c6387e3bfb23fb2eca061a691b.tar.zst yuzu-db3eb168cd6a55c6387e3bfb23fb2eca061a691b.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/buffer_cache/buffer_base.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_core/buffer_cache/buffer_base.h b/src/video_core/buffer_cache/buffer_base.h index 0b2bc67b1..f9a6472cf 100644 --- a/src/video_core/buffer_cache/buffer_base.h +++ b/src/video_core/buffer_cache/buffer_base.h @@ -12,6 +12,7 @@ #include "common/common_funcs.h" #include "common/common_types.h" #include "common/div_ceil.h" +#include "common/settings.h" #include "core/memory.h" namespace VideoCommon { @@ -219,7 +220,9 @@ public: NotifyRasterizer<false>(word_index, untracked_words[word_index], cached_bits); untracked_words[word_index] |= cached_bits; cpu_words[word_index] |= cached_bits; - cached_words[word_index] = 0; + if (!Settings::values.use_pessimistic_flushes) { + cached_words[word_index] = 0; + } } } |