diff options
author | Lynne <dev@lynne.ee> | 2024-08-13 19:03:43 +0200 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2024-08-13 19:05:20 +0200 |
commit | d138d7a595b7ff3aa1808ad36e5695a5546b12ec (patch) | |
tree | 9f20c52809f94f47d1b28f82000e3ff24e8229d9 | |
parent | 9e3b5b8a261f179b6bf39bba3ed59dce472ef84a (diff) | |
download | ffmpeg-d138d7a595b7ff3aa1808ad36e5695a5546b12ec.tar.gz |
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.
-rw-r--r-- | libavutil/vulkan.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |