diff options
| author | 2023-05-23 09:42:39 -0400 | |
|---|---|---|
| committer | 2023-05-23 09:42:39 -0400 | |
| commit | 09ed5ec6657ac74760f0c15c61cb17c247031fda (patch) | |
| tree | d1bf05aece40ffc70a59e9b1447ccea4b759449a | |
| parent | Merge pull request #10386 from german77/high (diff) | |
| parent | Limit the device access memory to 4 GB (diff) | |
| download | yuzu-09ed5ec6657ac74760f0c15c61cb17c247031fda.tar.gz yuzu-09ed5ec6657ac74760f0c15c61cb17c247031fda.tar.xz yuzu-09ed5ec6657ac74760f0c15c61cb17c247031fda.zip | |
Merge pull request #10411 from scorpion81/gc-steamdeck-fix-attempt
Limit device access memory for integrated devices to 4 GB
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_device.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp index f6e6f2736..c0b2b3e17 100644 --- a/src/video_core/vulkan_common/vulkan_device.cpp +++ b/src/video_core/vulkan_common/vulkan_device.cpp | |||
| @@ -1034,7 +1034,7 @@ void Device::CollectPhysicalMemoryInfo() { | |||
| 1034 | } | 1034 | } |
| 1035 | const s64 available_memory = static_cast<s64>(device_access_memory - device_initial_usage); | 1035 | const s64 available_memory = static_cast<s64>(device_access_memory - device_initial_usage); |
| 1036 | device_access_memory = static_cast<u64>(std::max<s64>( | 1036 | device_access_memory = static_cast<u64>(std::max<s64>( |
| 1037 | std::min<s64>(available_memory - 8_GiB, 4_GiB), static_cast<s64>(local_memory))); | 1037 | std::min<s64>(available_memory - 8_GiB, 4_GiB), std::min<s64>(local_memory, 4_GiB))); |
| 1038 | } | 1038 | } |
| 1039 | 1039 | ||
| 1040 | void Device::CollectToolingInfo() { | 1040 | void Device::CollectToolingInfo() { |