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/memory_manager.h | |
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 '')
-rw-r--r-- | src/video_core/memory_manager.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/video_core/memory_manager.h b/src/video_core/memory_manager.h index f4ec77a3d..987400fdd 100644 --- a/src/video_core/memory_manager.h +++ b/src/video_core/memory_manager.h @@ -97,10 +97,7 @@ public: void WriteBlockUnsafe(GPUVAddr dest_addr, const void* src_buffer, std::size_t size); void CopyBlockUnsafe(GPUVAddr dest_addr, GPUVAddr src_addr, std::size_t size); - static bool IsGranularRange(GPUVAddr gpu_addr, std::size_t size) { - const std::size_t page = (gpu_addr & page_mask) + size; - return page <= page_size; - } + bool IsGranularRange(GPUVAddr gpu_addr, std::size_t size); private: using VMAMap = std::map<GPUVAddr, VirtualMemoryArea>; |