aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/buffer_cache/buffer_base.h
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2022-09-08 22:46:58 -0400
committerGitHub <noreply@github.com>2022-09-08 22:46:58 -0400
commitc48259ca815b6b47b08dce5c1c1f7860ab99fa6b (patch)
treeede9615eebf3dcba0d15429b1c0938e85b222b35 /src/video_core/buffer_cache/buffer_base.h
parent08b268be3f3cfc4afd5d32ce8b58db8cf23d0268 (diff)
parent39c318423756fa5958b3ce7400125d38f90be56b (diff)
Merge pull request #8819 from liamwhite/cash-money
video_core: add option for pessimistic flushing
Diffstat (limited to 'src/video_core/buffer_cache/buffer_base.h')
-rw-r--r--src/video_core/buffer_cache/buffer_base.h5
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 0b2bc67b1f..f9a6472cfd 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;
+ }
}
}