mirror of https://github.com/xemu-project/xemu.git
nv2a/vk: Make main buffers dedicated
This commit is contained in:
parent
c66bdbe85d
commit
9200246c62
|
@ -53,10 +53,12 @@ void pgraph_vk_init_buffers(NV2AState *d)
|
|||
|
||||
VmaAllocationCreateInfo host_alloc_create_info = {
|
||||
.usage = VMA_MEMORY_USAGE_AUTO_PREFER_HOST,
|
||||
.flags = VMA_ALLOCATION_CREATE_HOST_ACCESS_RANDOM_BIT
|
||||
.flags = VMA_ALLOCATION_CREATE_HOST_ACCESS_RANDOM_BIT |
|
||||
VMA_ALLOCATION_CREATE_DEDICATED_MEMORY_BIT,
|
||||
};
|
||||
VmaAllocationCreateInfo device_alloc_create_info = {
|
||||
.usage = VMA_MEMORY_USAGE_AUTO_PREFER_DEVICE,
|
||||
.flags = VMA_ALLOCATION_CREATE_DEDICATED_MEMORY_BIT
|
||||
};
|
||||
|
||||
r->storage_buffers[BUFFER_STAGING_DST] = (StorageBuffer){
|
||||
|
|
Loading…
Reference in New Issue