mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-11 01:10:00 +01:00
hwcontext_vulkan: Fix build with older Vulkan headers
This commit is contained in:
@@ -2906,7 +2906,7 @@ static int vulkan_frames_init(AVHWFramesContext *hwfc)
|
||||
if (p->dev_is_nvidia &&
|
||||
(((fmt->nb_images == 1) && (fmt->vk_planes > 1)) ||
|
||||
(av_pix_fmt_desc_get(hwfc->sw_format)->nb_components == 1)))
|
||||
supported_usage &= ~VK_IMAGE_USAGE_HOST_TRANSFER_BIT;
|
||||
supported_usage &= ~VK_IMAGE_USAGE_HOST_TRANSFER_BIT_EXT;
|
||||
|
||||
/* Image usage flags */
|
||||
if (!hwctx->usage) {
|
||||
|
||||
Reference in New Issue
Block a user