From 257364cb3c47a5e392bfb1772ecf6709dc0a7c83 Mon Sep 17 00:00:00 2001 From: pufferffish Date: Sat, 15 Jun 2024 10:52:34 +0100 Subject: [PATCH] fix free memory monitor --- gpu/gpu_info_vulkan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpu/gpu_info_vulkan.c b/gpu/gpu_info_vulkan.c index 9822a63f9..b4b7f26fd 100644 --- a/gpu/gpu_info_vulkan.c +++ b/gpu/gpu_info_vulkan.c @@ -212,7 +212,7 @@ void vk_check_vram(vk_handle_t rh, int i, mem_info_t *resp) { resp->gpu_name[GPU_NAME_LEN - 1] = '\0'; strncpy(&resp->gpu_name[0], properties.deviceName, GPU_NAME_LEN - 1); resp->total = (uint64_t) device_memory_total_usage; - resp->free = (uint64_t) device_memory_total_usage; + resp->free = (uint64_t) device_memory_heap_budget; resp->major = VK_API_VERSION_MAJOR(properties.apiVersion); resp->minor = VK_API_VERSION_MINOR(properties.apiVersion); resp->patch = VK_API_VERSION_PATCH(properties.apiVersion);