aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/vulkan.c
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2022-03-17 12:23:56 +0100
committerLynne <dev@lynne.ee>2023-05-29 00:41:43 +0200
commitb5e333bba7cd0657c48b4ec996bc91fffec9d3e7 (patch)
treeda0eab6d6c5d8dcfa437e9506554ea5ec4cf5587 /libavutil/vulkan.c
parenta0d47a2ad99122fd21b78de78e335d06a12f00a4 (diff)
downloadffmpeg-b5e333bba7cd0657c48b4ec996bc91fffec9d3e7.tar.gz
vulkan: add pNext argument to ff_vk_create_buf()
Diffstat (limited to 'libavutil/vulkan.c')
-rw-r--r--libavutil/vulkan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c
index f2846e628a..ae6adc5104 100644
--- a/libavutil/vulkan.c
+++ b/libavutil/vulkan.c
@@ -205,7 +205,7 @@ static int vk_alloc_mem(FFVulkanContext *s, VkMemoryRequirements *req,
return 0;
}
-int ff_vk_create_buf(FFVulkanContext *s, FFVkBuffer *buf, size_t size,
+int ff_vk_create_buf(FFVulkanContext *s, FFVkBuffer *buf, size_t size, void *pNext,
VkBufferUsageFlags usage, VkMemoryPropertyFlagBits flags)
{
int err;
@@ -215,7 +215,7 @@ int ff_vk_create_buf(FFVulkanContext *s, FFVkBuffer *buf, size_t size,
VkBufferCreateInfo buf_spawn = {
.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO,
- .pNext = NULL,
+ .pNext = pNext,
.usage = usage,
.sharingMode = VK_SHARING_MODE_EXCLUSIVE,
.size = size, /* Gets FFALIGNED during alloc if host visible