diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2024-01-01 15:02:20 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-01 15:02:20 -0500 |
| commit | 6282725a54f7cf7f795dd16df5a00f4be7276451 (patch) | |
| tree | a9010922b2072eea8cc1b6701e6a549afd7c8749 /src/core/memory.h | |
| parent | 5ff67edd66aaf5d9bbbb96a4690899b2f646b388 (diff) | |
| parent | d9b27783067c72b3afd3f10de50a733b2d3424e6 (diff) | |
Merge pull request #12543 from FernandoS27/stop-liking-posts-from-ur-friends-ex
VideoCore: A few fixes to DMA and swapchain
Diffstat (limited to 'src/core/memory.h')
| -rw-r--r-- | src/core/memory.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/memory.h b/src/core/memory.h index 3e4d03f573..dddfaf4a4c 100644 --- a/src/core/memory.h +++ b/src/core/memory.h @@ -686,7 +686,8 @@ public: } else { this->m_memory.WriteBlockUnsafe(this->m_addr, this->data(), this->size_bytes()); } - } else if constexpr (FLAGS & GuestMemoryFlags::Safe) { + } else if constexpr ((FLAGS & GuestMemoryFlags::Safe) || + (FLAGS & GuestMemoryFlags::Cached)) { this->m_memory.InvalidateRegion(this->m_addr, this->size_bytes()); } } |
