mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-09 12:29:58 +00:00
video_core/memory_manager: Remove unused CopyBlockUnsafe
This function was not being used.
This commit is contained in:
parent
0e9a6759f9
commit
b7febb5625
2 changed files with 0 additions and 8 deletions
|
@ -339,13 +339,6 @@ void MemoryManager::CopyBlock(GPUVAddr gpu_dest_addr, GPUVAddr gpu_src_addr, std
|
||||||
WriteBlock(gpu_dest_addr, tmp_buffer.data(), size);
|
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 {
|
bool MemoryManager::IsGranularRange(GPUVAddr gpu_addr, std::size_t size) const {
|
||||||
const auto cpu_addr{GpuToCpuAddress(gpu_addr)};
|
const auto cpu_addr{GpuToCpuAddress(gpu_addr)};
|
||||||
if (!cpu_addr) {
|
if (!cpu_addr) {
|
||||||
|
|
|
@ -107,7 +107,6 @@ public:
|
||||||
*/
|
*/
|
||||||
void ReadBlockUnsafe(GPUVAddr gpu_src_addr, void* dest_buffer, std::size_t size) const;
|
void ReadBlockUnsafe(GPUVAddr gpu_src_addr, void* dest_buffer, std::size_t size) const;
|
||||||
void WriteBlockUnsafe(GPUVAddr gpu_dest_addr, const void* src_buffer, std::size_t size);
|
void WriteBlockUnsafe(GPUVAddr gpu_dest_addr, const void* src_buffer, std::size_t size);
|
||||||
void CopyBlockUnsafe(GPUVAddr gpu_dest_addr, GPUVAddr gpu_src_addr, std::size_t size);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* IsGranularRange checks if a gpu region can be simply read with a pointer.
|
* IsGranularRange checks if a gpu region can be simply read with a pointer.
|
||||||
|
|
Loading…
Reference in a new issue