summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2021-11-13 03:05:32 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2022-10-06 21:00:52 +0200
commit0f4ae3cc52a740bac836f8f8c2ff5d560b8ca46e (patch)
tree3eb4d2c5d34152a4e606e9e953d4de09ff8e4fc3
parentNvHostCtrl: Fix merge of nvflinger. (diff)
downloadyuzu-0f4ae3cc52a740bac836f8f8c2ff5d560b8ca46e.tar
yuzu-0f4ae3cc52a740bac836f8f8c2ff5d560b8ca46e.tar.gz
yuzu-0f4ae3cc52a740bac836f8f8c2ff5d560b8ca46e.tar.bz2
yuzu-0f4ae3cc52a740bac836f8f8c2ff5d560b8ca46e.tar.lz
yuzu-0f4ae3cc52a740bac836f8f8c2ff5d560b8ca46e.tar.xz
yuzu-0f4ae3cc52a740bac836f8f8c2ff5d560b8ca46e.tar.zst
yuzu-0f4ae3cc52a740bac836f8f8c2ff5d560b8ca46e.zip
-rw-r--r--src/video_core/memory_manager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/memory_manager.cpp b/src/video_core/memory_manager.cpp
index 1e090279f..9e946d448 100644
--- a/src/video_core/memory_manager.cpp
+++ b/src/video_core/memory_manager.cpp
@@ -125,7 +125,7 @@ std::optional<GPUVAddr> MemoryManager::FindFreeRange(std::size_t size, std::size
}
u64 available_size{};
- GPUVAddr gpu_addr{allocate_start};
+ GPUVAddr gpu_addr{start_32bit_address ? 0 : allocate_start};
while (gpu_addr + available_size < address_space_size) {
if (GetEntry(gpu_addr + available_size) == EntryType::Free) {
available_size += page_size;