[FFmpeg-cvslog] vulkan: make sure descriptor buffers are always DEVICE_LOCAL
Lynne
git at videolan.org
Tue Aug 13 20:05:41 EEST 2024
ffmpeg | branch: master | Lynne <dev at lynne.ee> | Tue Aug 13 19:03:43 2024 +0200| [d138d7a595b7ff3aa1808ad36e5695a5546b12ec] | committer: Lynne
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.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d138d7a595b7ff3aa1808ad36e5695a5546b12ec
---
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)
More information about the ffmpeg-cvslog
mailing list