summaryrefslogtreecommitdiffstats
path: root/src/video_core/memory_manager.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-01-21 23:14:49 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2021-01-21 23:16:06 +0100
commitb7febb5625380d693a2dbae14490a586b699ddc2 (patch)
tree05bf863290d2f40a2420119e403fb3bd807d96a1 /src/video_core/memory_manager.cpp
parentvideo_core/memory_manager: Flush destination buffer on CopyBlock (diff)
downloadyuzu-b7febb5625380d693a2dbae14490a586b699ddc2.tar
yuzu-b7febb5625380d693a2dbae14490a586b699ddc2.tar.gz
yuzu-b7febb5625380d693a2dbae14490a586b699ddc2.tar.bz2
yuzu-b7febb5625380d693a2dbae14490a586b699ddc2.tar.lz
yuzu-b7febb5625380d693a2dbae14490a586b699ddc2.tar.xz
yuzu-b7febb5625380d693a2dbae14490a586b699ddc2.tar.zst
yuzu-b7febb5625380d693a2dbae14490a586b699ddc2.zip
Diffstat (limited to 'src/video_core/memory_manager.cpp')
-rw-r--r--src/video_core/memory_manager.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/video_core/memory_manager.cpp b/src/video_core/memory_manager.cpp
index e5d357773..f5cdf548e 100644
--- a/src/video_core/memory_manager.cpp
+++ b/src/video_core/memory_manager.cpp
@@ -339,13 +339,6 @@ void MemoryManager::CopyBlock(GPUVAddr gpu_dest_addr, GPUVAddr gpu_src_addr, std
WriteBlock(gpu_dest_addr, tmp_buffer.data(), size);
}
-void MemoryManager::CopyBlockUnsafe(GPUVAddr gpu_dest_addr, GPUVAddr gpu_src_addr,
- std::size_t size) {
- std::vector<u8> tmp_buffer(size);
- ReadBlockUnsafe(gpu_src_addr, tmp_buffer.data(), size);
- WriteBlockUnsafe(gpu_dest_addr, tmp_buffer.data(), size);
-}
-
bool MemoryManager::IsGranularRange(GPUVAddr gpu_addr, std::size_t size) const {
const auto cpu_addr{GpuToCpuAddress(gpu_addr)};
if (!cpu_addr) {