diff options
| author | 2023-12-13 15:32:25 -0500 | |
|---|---|---|
| committer | 2023-12-14 23:44:33 -0500 | |
| commit | 8ad5f2c50648c333c3c46f89533e200a39bf6ca8 (patch) | |
| tree | 00cfb8d70b13db1016006a8a9de99137a9736c08 /src/common/host_memory.h | |
| parent | Merge pull request #12354 from liamwhite/mackage-panager (diff) | |
| download | yuzu-8ad5f2c50648c333c3c46f89533e200a39bf6ca8.tar.gz yuzu-8ad5f2c50648c333c3c46f89533e200a39bf6ca8.tar.xz yuzu-8ad5f2c50648c333c3c46f89533e200a39bf6ca8.zip | |
common: use memory holepunching when clearing memory
Diffstat (limited to '')
| -rw-r--r-- | src/common/host_memory.h | 2 |
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 | } |