From 371261505dec0c09805fc29bf6ce752a9b9de240 Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Fri, 5 Apr 2019 17:44:15 +0200 Subject: [PATCH] vmaFindMemoryTypeIndex: don't add HOST_VISIBLE to preferred flags when CREATE_MAPPED flag is used This behavior was found to cause issues on PC AMD as well as Android ARM. --- src/vk_mem_alloc.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h index d0f3e42..d61f79b 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h @@ -15876,12 +15876,6 @@ VkResult vmaFindMemoryTypeIndex( uint32_t requiredFlags = pAllocationCreateInfo->requiredFlags; uint32_t preferredFlags = pAllocationCreateInfo->preferredFlags; - const bool mapped = (pAllocationCreateInfo->flags & VMA_ALLOCATION_CREATE_MAPPED_BIT) != 0; - if(mapped) - { - preferredFlags |= VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT; - } - // Convert usage to requiredFlags and preferredFlags. switch(pAllocationCreateInfo->usage) {