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.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Lynne 2024-08-13 19:03:43 +02:00 committed by Paul B Mahol
parent 2b07151f99
commit 4d17787437

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)