From d138d7a595b7ff3aa1808ad36e5695a5546b12ec Mon Sep 17 00:00:00 2001 From: Lynne Date: Tue, 13 Aug 2024 19:03:43 +0200 Subject: [PATCH] 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. --- libavutil/vulkan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c index 4e275bc7af..bb8e7ae786 100644 --- a/libavutil/vulkan.c +++ b/libavutil/vulkan.c @@ -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)