GS/Vulkan: Prefer coherent for upload and cached for download buffers

This commit is contained in:
Connor McLaughlin 2022-01-25 21:15:17 +10:00 committed by refractionpcsx2
parent 438480517b
commit 793ba944d6
2 changed files with 2 additions and 0 deletions

View File

@ -73,6 +73,7 @@ namespace Vulkan
VmaAllocationCreateInfo aci = {};
aci.flags = VMA_ALLOCATION_CREATE_MAPPED_BIT;
aci.usage = VMA_MEMORY_USAGE_CPU_TO_GPU;
aci.preferredFlags = VK_MEMORY_PROPERTY_HOST_COHERENT_BIT;
VmaAllocationInfo ai = {};
VkBuffer new_buffer = VK_NULL_HANDLE;

View File

@ -1617,6 +1617,7 @@ bool GSDeviceVK::CheckStagingBufferSize(u32 required_size)
VmaAllocationCreateInfo aci = {};
aci.usage = VMA_MEMORY_USAGE_GPU_TO_CPU;
aci.flags = VMA_ALLOCATION_CREATE_MAPPED_BIT;
aci.preferredFlags = VK_MEMORY_PROPERTY_HOST_CACHED_BIT;
VmaAllocationInfo ai = {};
VkResult res = vmaCreateBuffer(