summaryrefslogtreecommitdiffstats
path: root/src/video_core/memory_manager.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-01-21 23:08:15 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2021-01-21 23:16:05 +0100
commitdd790abab00379c232ea508fc43e87bd05d003f6 (patch)
treebb1225fbebd8ef6981b35d300a55881b13a9387a /src/video_core/memory_manager.h
parentMerge pull request #5755 from FearlessTobi/port-5344 (diff)
downloadyuzu-dd790abab00379c232ea508fc43e87bd05d003f6.tar
yuzu-dd790abab00379c232ea508fc43e87bd05d003f6.tar.gz
yuzu-dd790abab00379c232ea508fc43e87bd05d003f6.tar.bz2
yuzu-dd790abab00379c232ea508fc43e87bd05d003f6.tar.lz
yuzu-dd790abab00379c232ea508fc43e87bd05d003f6.tar.xz
yuzu-dd790abab00379c232ea508fc43e87bd05d003f6.tar.zst
yuzu-dd790abab00379c232ea508fc43e87bd05d003f6.zip
Diffstat (limited to 'src/video_core/memory_manager.h')
-rw-r--r--src/video_core/memory_manager.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/memory_manager.h b/src/video_core/memory_manager.h
index c35e57689..e3c0c53a9 100644
--- a/src/video_core/memory_manager.h
+++ b/src/video_core/memory_manager.h
@@ -131,6 +131,8 @@ private:
void TryLockPage(PageEntry page_entry, std::size_t size);
void TryUnlockPage(PageEntry page_entry, std::size_t size);
+ void FlushRegion(GPUVAddr gpu_addr, size_t size) const;
+
[[nodiscard]] static constexpr std::size_t PageEntryIndex(GPUVAddr gpu_addr) {
return (gpu_addr >> page_bits) & page_table_mask;
}