summaryrefslogtreecommitdiff
path: root/src/common/host_memory.h
diff options
context:
space:
mode:
authorGravatar liamwhite2023-12-16 11:47:03 -0500
committerGravatar GitHub2023-12-16 11:47:03 -0500
commitfde8dc1652aa886210a9fa45bf2b859e14c11b37 (patch)
treebbea883a222d556a8a917f70ec384cac5f6efcff /src/common/host_memory.h
parentMerge pull request #12359 from german77/real_shared (diff)
parentcommon: use memory holepunching when clearing memory (diff)
downloadyuzu-fde8dc1652aa886210a9fa45bf2b859e14c11b37.tar.gz
yuzu-fde8dc1652aa886210a9fa45bf2b859e14c11b37.tar.xz
yuzu-fde8dc1652aa886210a9fa45bf2b859e14c11b37.zip
Merge pull request #12358 from liamwhite/optimized-alloc
common: use memory holepunching when clearing memory
Diffstat (limited to 'src/common/host_memory.h')
-rw-r--r--src/common/host_memory.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/host_memory.h b/src/common/host_memory.h
index cebfacab2..747c5850c 100644
--- a/src/common/host_memory.h
+++ b/src/common/host_memory.h
@@ -48,6 +48,8 @@ public:
48 48
49 void EnableDirectMappedAddress(); 49 void EnableDirectMappedAddress();
50 50
51 void ClearBackingRegion(size_t physical_offset, size_t length, u32 fill_value);
52
51 [[nodiscard]] u8* BackingBasePointer() noexcept { 53 [[nodiscard]] u8* BackingBasePointer() noexcept {
52 return backing_base; 54 return backing_base;
53 } 55 }