From adc9946641abfe490628764ba8e878bee3ccd2cb Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Wed, 23 Mar 2016 00:39:08 -0700 Subject: [PATCH] Vulkan: Ask for COHERENT staged texture memory. --- Common/Vulkan/VulkanImage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/Vulkan/VulkanImage.cpp b/Common/Vulkan/VulkanImage.cpp index 01ad9e3db4..205c360bb4 100644 --- a/Common/Vulkan/VulkanImage.cpp +++ b/Common/Vulkan/VulkanImage.cpp @@ -66,7 +66,7 @@ void VulkanTexture::CreateMappableImage() { mem_alloc.allocationSize = mem_reqs.size; // Find the memory type that is host mappable. - pass = vulkan_->MemoryTypeFromProperties(mem_reqs.memoryTypeBits, VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT, &mem_alloc.memoryTypeIndex); + pass = vulkan_->MemoryTypeFromProperties(mem_reqs.memoryTypeBits, VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT, &mem_alloc.memoryTypeIndex); assert(pass); res = vkAllocateMemory(vulkan_->GetDevice(), &mem_alloc, NULL, &mappableMemory);