aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/vulkan.c
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2025-06-11 13:41:59 +0900
committerLynne <dev@lynne.ee>2025-06-11 14:33:01 +0900
commit3ac7d70291838d71a28cd31a5774bb69745d4216 (patch)
treefe73e5d75bf798fe8ec28d9431650b0c57706f7e /libavutil/vulkan.c
parent9e9316326812ba62aee8d36c37b1d8fb1fd2ef64 (diff)
downloadffmpeg-3ac7d70291838d71a28cd31a5774bb69745d4216.tar.gz
hwcontext_vulkan: fix image copy
The patch was applied by mistake in an unfinished form. This fixes the build and lets the code run.
Diffstat (limited to 'libavutil/vulkan.c')
-rw-r--r--libavutil/vulkan.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c
index e33dbb2113..015a109b60 100644
--- a/libavutil/vulkan.c
+++ b/libavutil/vulkan.c
@@ -107,6 +107,8 @@ const char *ff_vk_ret2str(VkResult res)
VK_IMAGE_USAGE_VIDEO_ENCODE_DPB_BIT_KHR); \
MAP_TO(VK_FORMAT_FEATURE_2_VIDEO_ENCODE_INPUT_BIT_KHR, \
VK_IMAGE_USAGE_VIDEO_ENCODE_SRC_BIT_KHR); \
+ MAP_TO(VK_FORMAT_FEATURE_2_HOST_IMAGE_TRANSFER_BIT_EXT, \
+ VK_IMAGE_USAGE_HOST_TRANSFER_BIT); \
return dst; \
}
@@ -191,7 +193,7 @@ int ff_vk_load_props(FFVulkanContext *s)
s->host_image_props.pCopySrcLayouts =
s->host_image_props.pCopyDstLayouts = NULL;
s->host_image_props.copySrcLayoutCount =
- s->host_image_props.copyDstLayoutCount = NULL;
+ s->host_image_props.copyDstLayoutCount = 0;
vk->GetPhysicalDeviceProperties2(s->hwctx->phys_dev, &s->props);
new_size = s->host_image_props.copySrcLayoutCount +