diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2023-05-23 09:42:39 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-23 09:42:39 -0400 |
| commit | 246a1407cb8babc6b7c700a25f56c87793feacaa (patch) | |
| tree | d1bf05aece40ffc70a59e9b1447ccea4b759449a /src/video_core/vulkan_common/vulkan_device.cpp | |
| parent | 303c34654115f3aa3bc4280d533307f262663e74 (diff) | |
| parent | 9c33fade591c9edb4277e56b2002ba7780094269 (diff) | |
Merge pull request #10411 from scorpion81/gc-steamdeck-fix-attempt
Limit device access memory for integrated devices to 4 GB
Diffstat (limited to 'src/video_core/vulkan_common/vulkan_device.cpp')
| -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 f6e6f27369..c0b2b3e17b 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() { } const s64 available_memory = static_cast<s64>(device_access_memory - device_initial_usage); device_access_memory = static_cast<u64>(std::max<s64>( - std::min<s64>(available_memory - 8_GiB, 4_GiB), static_cast<s64>(local_memory))); + std::min<s64>(available_memory - 8_GiB, 4_GiB), std::min<s64>(local_memory, 4_GiB))); } void Device::CollectToolingInfo() { |
