mirror of https://github.com/PCSX2/pcsx2.git
GS/Vulkan: Prefer coherent for upload and cached for download buffers
This commit is contained in:
parent
438480517b
commit
793ba944d6
|
@ -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;
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue