vulkan: make sure descriptor buffers are always DEVICE_LOCAL

Implementations are required to list memory heaps in the most optimal
order. But its better to be explicit for this particular allocation.
This commit is contained in:
Lynne 2024-08-13 19:03:43 +02:00
parent 9e3b5b8a26
commit d138d7a595
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464

View File

@ -1580,6 +1580,7 @@ int ff_vk_exec_pipeline_register(FFVulkanContext *s, FFVkExecPool *pool,
err = ff_vk_create_buf(s, &set->buf, set->aligned_size*nb,
NULL, NULL, set->usage,
VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT |
VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT |
VK_MEMORY_PROPERTY_HOST_COHERENT_BIT);
if (err < 0)