mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
hwcontext_vulkan: bump required Vulkan loader version to 1.2
This commit is contained in:
parent
047c362d3c
commit
7f3878828d
6
configure
vendored
6
configure
vendored
@ -6824,10 +6824,10 @@ enabled vdpau &&
|
||||
enabled crystalhd && check_lib crystalhd "stdint.h libcrystalhd/libcrystalhd_if.h" DtsCrystalHDVersion -lcrystalhd
|
||||
|
||||
if enabled vulkan; then
|
||||
require_pkg_config_cpp vulkan "vulkan >= 1.1.97" "vulkan/vulkan.h" "defined VK_VERSION_1_1" ||
|
||||
require_cpp_condition vulkan "vulkan/vulkan.h" "defined VK_VERSION_1_1"
|
||||
require_pkg_config_cpp vulkan "vulkan >= 1.2.189" "vulkan/vulkan.h" "defined VK_VERSION_1_2" ||
|
||||
require_cpp_condition vulkan "vulkan/vulkan.h" "defined VK_VERSION_1_2"
|
||||
# vulkan_lib should be removed once glslang filters are updated
|
||||
check_pkg_config vulkan_lib "vulkan >= 1.1.97" "vulkan/vulkan.h" vkCreateInstance
|
||||
check_pkg_config vulkan_lib "vulkan >= 1.2.189" "vulkan/vulkan.h" vkCreateInstance
|
||||
fi
|
||||
|
||||
if enabled x86; then
|
||||
|
@ -676,7 +676,7 @@ static int create_instance(AVHWDeviceContext *ctx, AVDictionary *opts)
|
||||
VkApplicationInfo application_info = {
|
||||
.sType = VK_STRUCTURE_TYPE_APPLICATION_INFO,
|
||||
.pEngineName = "libavutil",
|
||||
.apiVersion = VK_API_VERSION_1_1,
|
||||
.apiVersion = VK_API_VERSION_1_2,
|
||||
.engineVersion = VK_MAKE_VERSION(LIBAVUTIL_VERSION_MAJOR,
|
||||
LIBAVUTIL_VERSION_MINOR,
|
||||
LIBAVUTIL_VERSION_MICRO),
|
||||
|
@ -50,7 +50,7 @@ typedef struct AVVulkanDeviceContext {
|
||||
PFN_vkGetInstanceProcAddr get_proc_addr;
|
||||
|
||||
/**
|
||||
* Vulkan instance. Must be at least version 1.1.
|
||||
* Vulkan instance. Must be at least version 1.2.
|
||||
*/
|
||||
VkInstance inst;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user