diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-04-08 18:08:06 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-04-08 18:08:06 +0200 |
commit | e00d992848d8c7a0117b79f1fe9c521c333bf6f7 (patch) | |
tree | 1b7cd21d9b0dc68fb75df763490315e950566047 /src/video_core/buffer_cache | |
parent | Clang Format. (diff) | |
download | yuzu-e00d992848d8c7a0117b79f1fe9c521c333bf6f7.tar yuzu-e00d992848d8c7a0117b79f1fe9c521c333bf6f7.tar.gz yuzu-e00d992848d8c7a0117b79f1fe9c521c333bf6f7.tar.bz2 yuzu-e00d992848d8c7a0117b79f1fe9c521c333bf6f7.tar.lz yuzu-e00d992848d8c7a0117b79f1fe9c521c333bf6f7.tar.xz yuzu-e00d992848d8c7a0117b79f1fe9c521c333bf6f7.tar.zst yuzu-e00d992848d8c7a0117b79f1fe9c521c333bf6f7.zip |
Diffstat (limited to 'src/video_core/buffer_cache')
-rw-r--r-- | src/video_core/buffer_cache/buffer_cache.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.h index 262d0fc6e..eb2f9ecf2 100644 --- a/src/video_core/buffer_cache/buffer_cache.h +++ b/src/video_core/buffer_cache/buffer_cache.h @@ -53,7 +53,7 @@ public: if (!is_written && !IsRegionWritten(cpu_addr, cpu_addr + size - 1)) { auto& memory_manager = system.GPU().MemoryManager(); if (use_fast_cbuf) { - if (Tegra::MemoryManager::IsGranularRange(gpu_addr, size)) { + if (memory_manager.IsGranularRange(gpu_addr, size)) { const auto host_ptr = memory_manager.GetPointer(gpu_addr); return ConstBufferUpload(host_ptr, size); } else { @@ -62,7 +62,7 @@ public: return ConstBufferUpload(staging_buffer.data(), size); } } else { - if (Tegra::MemoryManager::IsGranularRange(gpu_addr, size)) { + if (memory_manager.IsGranularRange(gpu_addr, size)) { const auto host_ptr = memory_manager.GetPointer(gpu_addr); return StreamBufferUpload(host_ptr, size, alignment); } else { @@ -228,7 +228,7 @@ private: auto& memory_manager = system.GPU().MemoryManager(); const VAddr cpu_addr_end = cpu_addr + size; MapInterval new_map = CreateMap(cpu_addr, cpu_addr_end, gpu_addr); - if (Tegra::MemoryManager::IsGranularRange(gpu_addr, size)) { + if (memory_manager.IsGranularRange(gpu_addr, size)) { u8* host_ptr = memory_manager.GetPointer(gpu_addr); UploadBlockData(block, block->GetOffset(cpu_addr), size, host_ptr); } else { |