diff options
| author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-04-13 16:20:34 +0200 |
|---|---|---|
| committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-10-06 21:00:53 +0200 |
| commit | 03a978b04bd6ebcd1485e979abbb8cd983c77acb (patch) | |
| tree | 938617d76e967a0d50b70011e3e92d0b41686124 /src/video_core/memory_manager.cpp | |
| parent | 5ef7ad32948736e5e028b2afb1c9f734a6fc9d26 (diff) | |
Buffer Cache: Deduce vertex array limit from memory layout when limit is the highest possible.
Diffstat (limited to 'src/video_core/memory_manager.cpp')
| -rw-r--r-- | src/video_core/memory_manager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/memory_manager.cpp b/src/video_core/memory_manager.cpp index 4a692448ea..3cb2d9224b 100644 --- a/src/video_core/memory_manager.cpp +++ b/src/video_core/memory_manager.cpp @@ -193,7 +193,7 @@ void MemoryManager::Unmap(GPUVAddr gpu_addr, std::size_t size) { } std::optional<VAddr> MemoryManager::GpuToCpuAddress(GPUVAddr gpu_addr) const { - if (gpu_addr >= address_space_size) [[unlikely]] { + if (!IsWithinGPUAddressRange(gpu_addr)) [[unlikely]] { return std::nullopt; } if (GetEntry<true>(gpu_addr) != EntryType::Mapped) [[unlikely]] { |
