@@ -679,15 +679,15 @@ void SetupVulkanRenderProperties(VulkanVideoContext *context, SDL_PropertiesID p
679
679
SDL_SetNumberProperty (props , SDL_PROP_RENDERER_CREATE_VULKAN_GRAPHICS_QUEUE_FAMILY_INDEX_NUMBER , context -> graphicsQueueFamilyIndex );
680
680
}
681
681
682
- #if LIBAVUTIL_VERSION_MAJOR >= 59
682
+ #if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT ( 59 , 34 , 100 )
683
683
static void AddQueueFamily (AVVulkanDeviceContext * ctx , int idx , int num , VkQueueFlagBits flags )
684
684
{
685
685
AVVulkanDeviceQueueFamily * entry = & ctx -> qf [ctx -> nb_qf ++ ];
686
686
entry -> idx = idx ;
687
687
entry -> num = num ;
688
688
entry -> flags = flags ;
689
689
}
690
- #endif /* LIBAVUTIL_VERSION_MAJOR */
690
+ #endif /* LIBAVUTIL_VERSION_INT */
691
691
692
692
void SetupVulkanDeviceContextData (VulkanVideoContext * context , AVVulkanDeviceContext * ctx )
693
693
{
@@ -700,7 +700,7 @@ void SetupVulkanDeviceContextData(VulkanVideoContext *context, AVVulkanDeviceCon
700
700
ctx -> nb_enabled_inst_extensions = context -> instanceExtensionsCount ;
701
701
ctx -> enabled_dev_extensions = context -> deviceExtensions ;
702
702
ctx -> nb_enabled_dev_extensions = context -> deviceExtensionsCount ;
703
- #if LIBAVUTIL_VERSION_MAJOR >= 59
703
+ #if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT ( 59 , 34 , 100 )
704
704
AddQueueFamily (ctx , context -> graphicsQueueFamilyIndex , context -> graphicsQueueCount , VK_QUEUE_GRAPHICS_BIT );
705
705
AddQueueFamily (ctx , context -> transferQueueFamilyIndex , context -> transferQueueCount , VK_QUEUE_TRANSFER_BIT );
706
706
AddQueueFamily (ctx , context -> computeQueueFamilyIndex , context -> computeQueueCount , VK_QUEUE_COMPUTE_BIT );
@@ -716,7 +716,7 @@ void SetupVulkanDeviceContextData(VulkanVideoContext *context, AVVulkanDeviceCon
716
716
ctx -> nb_encode_queues = 0 ;
717
717
ctx -> queue_family_decode_index = context -> decodeQueueFamilyIndex ;
718
718
ctx -> nb_decode_queues = context -> decodeQueueCount ;
719
- #endif /* LIBAVUTIL_VERSION_MAJOR */
719
+ #endif /* LIBAVUTIL_VERSION_INT */
720
720
}
721
721
722
722
static int CreateCommandBuffers (VulkanVideoContext * context , SDL_Renderer * renderer )
0 commit comments