From 10a75d80eb107b0f238df8f9658dbd9184205101 Mon Sep 17 00:00:00 2001 From: CamilleLaVey Date: Thu, 27 Aug 2026 02:30:35 -0400 Subject: [PATCH] Pure and simply meow --- src/video_core/vulkan_common/vulkan_device.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp index 3cbd8614b3..aea0d127cc 100644 --- a/src/video_core/vulkan_common/vulkan_device.cpp +++ b/src/video_core/vulkan_common/vulkan_device.cpp @@ -1633,11 +1633,7 @@ u64 Device::GetDeviceMemoryUsage() const { for (const size_t heap : valid_heap_memory) { result += budget.heapUsage[heap]; } - const u64 committed_backing = Common::GetCommittedBackingSize(); - if (result <= committed_backing) { return result; - } - return result - committed_backing; } void Device::CollectPhysicalMemoryInfo() { @@ -1688,7 +1684,6 @@ void Device::CollectPhysicalMemoryInfo() { LOG_INFO(Render_Vulkan, "Discounting {} MiB of guest memory committed by the host", committed_backing >> 20); local_memory -= (std::min)(local_memory, committed_backing); - device_access_memory -= (std::min)(device_access_memory, committed_backing); } if (is_integrated) { const s64 available_memory = static_cast(device_access_memory - device_initial_usage); @@ -1704,6 +1699,7 @@ void Device::CollectPhysicalMemoryInfo() { device_access_memory = std::min(device_access_memory, normal_memory + scaler_memory); } } + device_access_memory -= (std::min)(device_access_memory, committed_backing); } void Device::CollectToolingInfo() {