summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2022-03-24 01:59:01 +0100
committerLiam <byteslice@airmail.cc>2022-03-24 01:59:01 +0100
commitdea5de91d250887c39520fd3846ae9d8865b5e3e (patch)
treee3bce723abdbfb06be3f8b0ab4e9b191a5b97142
parentMerge pull request #8073 from Shoegzer/compile_fixes (diff)
downloadyuzu-dea5de91d250887c39520fd3846ae9d8865b5e3e.tar
yuzu-dea5de91d250887c39520fd3846ae9d8865b5e3e.tar.gz
yuzu-dea5de91d250887c39520fd3846ae9d8865b5e3e.tar.bz2
yuzu-dea5de91d250887c39520fd3846ae9d8865b5e3e.tar.lz
yuzu-dea5de91d250887c39520fd3846ae9d8865b5e3e.tar.xz
yuzu-dea5de91d250887c39520fd3846ae9d8865b5e3e.tar.zst
yuzu-dea5de91d250887c39520fd3846ae9d8865b5e3e.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/buffer_cache/buffer_base.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/buffer_cache/buffer_base.h b/src/video_core/buffer_cache/buffer_base.h
index be2113f5a..10975884b 100644
--- a/src/video_core/buffer_cache/buffer_base.h
+++ b/src/video_core/buffer_cache/buffer_base.h
@@ -212,7 +212,7 @@ public:
void FlushCachedWrites() noexcept {
flags &= ~BufferFlagBits::CachedWrites;
const u64 num_words = NumWords();
- const u64* const cached_words = Array<Type::CachedCPU>();
+ u64* const cached_words = Array<Type::CachedCPU>();
u64* const untracked_words = Array<Type::Untracked>();
u64* const cpu_words = Array<Type::CPU>();
for (u64 word_index = 0; word_index < num_words; ++word_index) {
@@ -220,6 +220,7 @@ 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;
}
}