hwcontext_vulkan: enable support for YCbCr samplers

pull/389/head
Lynne 2 years ago
parent 59707cc485
commit fddfb0ebf8
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464
  1. 1
      libavutil/hwcontext_vulkan.c
  2. 2
      libavutil/vulkan_functions.h

@ -1378,6 +1378,7 @@ static int vulkan_device_create_internal(AVHWDeviceContext *ctx,
goto end;
}
p->device_features_1_2.timelineSemaphore = 1;
p->device_features_1_1.samplerYcbcrConversion = dev_features_1_1.samplerYcbcrConversion;
/* Setup queue family */
if ((err = setup_queue_families(ctx, &dev_info)))

@ -155,6 +155,8 @@ typedef enum FFVulkanExtensions {
MACRO(1, 1, FF_VK_EXT_NO_FLAG, DestroyPipeline) \
\
/* Sampler */ \
MACRO(1, 1, FF_VK_EXT_NO_FLAG, CreateSamplerYcbcrConversion) \
MACRO(1, 1, FF_VK_EXT_NO_FLAG, DestroySamplerYcbcrConversion) \
MACRO(1, 1, FF_VK_EXT_NO_FLAG, CreateSampler) \
MACRO(1, 1, FF_VK_EXT_NO_FLAG, DestroySampler) \
\

Loading…
Cancel
Save