diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_device.cpp | 2 |
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() { | |||
| 1009 | device_access_memory += mem_properties.memoryHeaps[element].size; | 1009 | device_access_memory += mem_properties.memoryHeaps[element].size; |
| 1010 | } | 1010 | } |
| 1011 | if (!is_integrated) { | 1011 | if (!is_integrated) { |
| 1012 | const u64 reserve_memory = std::min<u64>(device_access_memory / 8, 1_GiB); | ||
| 1013 | device_access_memory -= reserve_memory; | ||
| 1012 | return; | 1014 | return; |
| 1013 | } | 1015 | } |
| 1014 | const s64 available_memory = static_cast<s64>(device_access_memory - device_initial_usage); | 1016 | const s64 available_memory = static_cast<s64>(device_access_memory - device_initial_usage); |