From d5ec1152601e00ffc1c18446d3eecad6b7059e96 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sun, 29 Sep 2024 08:28:35 -0400 Subject: [PATCH] hk: reduce heap size at least until our swapping is better in the kernel. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/vulkan/hk_physical_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/asahi/vulkan/hk_physical_device.c b/src/asahi/vulkan/hk_physical_device.c index 1d88af9deb2..ee9484d4691 100644 --- a/src/asahi/vulkan/hk_physical_device.c +++ b/src/asahi/vulkan/hk_physical_device.c @@ -1038,8 +1038,8 @@ hk_physical_device_free_disk_cache(struct hk_physical_device *pdev) #endif } -/* Use 3/4 of total size to avoid swapping */ -#define SYSMEM_HEAP_FRACTION(x) (x * 3 / 4) +/* Use 1/2 of total size to avoid swapping */ +#define SYSMEM_HEAP_FRACTION(x) (x * 1 / 2) static uint64_t hk_get_sysmem_heap_size(void)