summaryrefslogtreecommitdiffstats
path: root/src/core/memory.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-28 18:28:57 +0200
committerGitHub <noreply@github.com>2018-08-28 18:28:57 +0200
commit4d7e1662c84ef65f7da5a27b0473125cc6759d5c (patch)
tree63c9f3fc7a8a76af35e0b5890a4388a4250318a4 /src/core/memory.cpp
parentMerge pull request #1192 from lioncash/unused (diff)
parentgpu: Make memory_manager private (diff)
downloadyuzu-4d7e1662c84ef65f7da5a27b0473125cc6759d5c.tar
yuzu-4d7e1662c84ef65f7da5a27b0473125cc6759d5c.tar.gz
yuzu-4d7e1662c84ef65f7da5a27b0473125cc6759d5c.tar.bz2
yuzu-4d7e1662c84ef65f7da5a27b0473125cc6759d5c.tar.lz
yuzu-4d7e1662c84ef65f7da5a27b0473125cc6759d5c.tar.xz
yuzu-4d7e1662c84ef65f7da5a27b0473125cc6759d5c.tar.zst
yuzu-4d7e1662c84ef65f7da5a27b0473125cc6759d5c.zip
Diffstat (limited to '')
-rw-r--r--src/core/memory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/memory.cpp b/src/core/memory.cpp
index 1133bcbaf..bc34bfd6d 100644
--- a/src/core/memory.cpp
+++ b/src/core/memory.cpp
@@ -264,7 +264,7 @@ void RasterizerMarkRegionCached(Tegra::GPUVAddr gpu_addr, u64 size, bool cached)
u64 num_pages = ((gpu_addr + size - 1) >> PAGE_BITS) - (gpu_addr >> PAGE_BITS) + 1;
for (unsigned i = 0; i < num_pages; ++i, gpu_addr += PAGE_SIZE) {
boost::optional<VAddr> maybe_vaddr =
- Core::System::GetInstance().GPU().memory_manager->GpuToCpuAddress(gpu_addr);
+ Core::System::GetInstance().GPU().MemoryManager().GpuToCpuAddress(gpu_addr);
// The GPU <-> CPU virtual memory mapping is not 1:1
if (!maybe_vaddr) {
LOG_ERROR(HW_Memory,
@@ -346,7 +346,7 @@ void RasterizerFlushVirtualRegion(VAddr start, u64 size, FlushMode mode) {
const VAddr overlap_end = std::min(end, region_end);
const std::vector<Tegra::GPUVAddr> gpu_addresses =
- system_instance.GPU().memory_manager->CpuToGpuAddress(overlap_start);
+ system_instance.GPU().MemoryManager().CpuToGpuAddress(overlap_start);
if (gpu_addresses.empty()) {
return;