From 2803e6d94e3095ec5ea4e57922e79ca55b7957de Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Wed, 31 Jan 2024 14:36:02 -0800 Subject: [PATCH] force ignore device-local property if allocation failed --- src/Refresh_Driver_Vulkan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Refresh_Driver_Vulkan.c b/src/Refresh_Driver_Vulkan.c index 67df146..1a96fa5 100644 --- a/src/Refresh_Driver_Vulkan.c +++ b/src/Refresh_Driver_Vulkan.c @@ -3057,6 +3057,8 @@ static uint8_t VULKAN_INTERNAL_BindMemoryForBuffer( VK_MEMORY_PROPERTY_HOST_COHERENT_BIT; } + ignoredMemoryPropertyFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT; + /* Follow-up for the warning logged by FindMemoryType */ if (!renderer->unifiedMemoryWarning) {