summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-05-14 07:49:29 +0200
committerLiam <byteslice@airmail.cc>2023-05-14 22:49:59 +0200
commit2be751100b1028b0bf06d8a70343e7f7a153cbfb (patch)
tree64b6e492d19f8643346aa94773f07c34ea8c3d10 /src
parentMerge pull request #10244 from liamwhite/lower-upper (diff)
downloadyuzu-2be751100b1028b0bf06d8a70343e7f7a153cbfb.tar
yuzu-2be751100b1028b0bf06d8a70343e7f7a153cbfb.tar.gz
yuzu-2be751100b1028b0bf06d8a70343e7f7a153cbfb.tar.bz2
yuzu-2be751100b1028b0bf06d8a70343e7f7a153cbfb.tar.lz
yuzu-2be751100b1028b0bf06d8a70343e7f7a153cbfb.tar.xz
yuzu-2be751100b1028b0bf06d8a70343e7f7a153cbfb.tar.zst
yuzu-2be751100b1028b0bf06d8a70343e7f7a153cbfb.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/vulkan_common/vulkan_device.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp
index 6ffca2af2..161f050b8 100644
--- a/src/video_core/vulkan_common/vulkan_device.cpp
+++ b/src/video_core/vulkan_common/vulkan_device.cpp
@@ -1009,6 +1009,8 @@ void Device::CollectPhysicalMemoryInfo() {
device_access_memory += mem_properties.memoryHeaps[element].size;
}
if (!is_integrated) {
+ const u64 reserve_memory = std::min<u64>(device_access_memory / 8, 1_GiB);
+ device_access_memory -= reserve_memory;
return;
}
const s64 available_memory = static_cast<s64>(device_access_memory - device_initial_usage);