aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/video_core/memory_manager.h
diff options
context:
space:
mode:
authorFernando Sahmkow <[email protected]>2022-04-13 16:20:34 +0200
committerFernando Sahmkow <[email protected]>2022-10-06 21:00:53 +0200
commit770e19f51a0767c8fc2b204d9d50fa504a3c4e44 (patch)
tree938617d76e967a0d50b70011e3e92d0b41686124 /src/video_core/memory_manager.h
parent8bb604b3bec4792ee642d865f49690e1ea181a44 (diff)
downloadyuzu-mainline-770e19f51a0767c8fc2b204d9d50fa504a3c4e44.tar.gz
yuzu-mainline-770e19f51a0767c8fc2b204d9d50fa504a3c4e44.zip
Buffer Cache: Deduce vertex array limit from memory layout when limit is the highest possible.
Diffstat (limited to 'src/video_core/memory_manager.h')
-rw-r--r--src/video_core/memory_manager.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/memory_manager.h b/src/video_core/memory_manager.h
index 9c08edc20..ae4fd98df 100644
--- a/src/video_core/memory_manager.h
+++ b/src/video_core/memory_manager.h
@@ -110,6 +110,10 @@ public:
size_t MaxContinousRange(GPUVAddr gpu_addr, size_t size) const;
+ bool IsWithinGPUAddressRange(GPUVAddr gpu_addr) const {
+ return gpu_addr < address_space_size;
+ }
+
private:
template <bool is_big_pages, typename FuncMapped, typename FuncReserved, typename FuncUnmapped>
inline void MemoryOperation(GPUVAddr gpu_src_addr, std::size_t size, FuncMapped&& func_mapped,