From 87435e1088912f48a082514091f274c04986ae8e Mon Sep 17 00:00:00 2001 From: jacky400 Date: Wed, 29 Jun 2022 00:33:32 +0800 Subject: [PATCH] Revert "buffer_cache: reset cached write bits after flushing invalidations" --- src/video_core/buffer_cache/buffer_base.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/video_core/buffer_cache/buffer_base.h b/src/video_core/buffer_cache/buffer_base.h index 3e20608ca5..a555073f5d 100644 --- a/src/video_core/buffer_cache/buffer_base.h +++ b/src/video_core/buffer_cache/buffer_base.h @@ -211,7 +211,7 @@ public: void FlushCachedWrites() noexcept { flags &= ~BufferFlagBits::CachedWrites; const u64 num_words = NumWords(); - u64* const cached_words = Array(); + const u64* const cached_words = Array(); u64* const untracked_words = Array(); u64* const cpu_words = Array(); for (u64 word_index = 0; word_index < num_words; ++word_index) { @@ -219,7 +219,6 @@ public: NotifyRasterizer(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; } }