Skip to content

vulkan/format: don't rely on vulkan header version for function availability

e.g. android will have update vulkan.h headers but old platforms will not contain the function and will result in a link error.

ld.lld: error: undefined symbol: vkGetPhysicalDeviceFormatProperties2
>>> referenced by gstvkformat.c:599 (../gst-libs/gst/vulkan/gstvkformat.c:599)
>>>               gst-libs/gst/vulkan/libgstvulkan-1.0.so.p/gstvkformat.c.o:(gst_vulkan_format_from_video_info_2)
>>> referenced by gstvkformat.c:607 (../gst-libs/gst/vulkan/gstvkformat.c:607)
>>>               gst-libs/gst/vulkan/libgstvulkan-1.0.so.p/gstvkformat.c.o:(gst_vulkan_format_from_video_info_2)
>>> did you mean: vkGetPhysicalDeviceFormatProperties
>>> defined in: /builds/ystreet/cerbero/cerbero-build/dist/android_universal/armv7/lib/libvulkan.so
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Edited by Matthew Waters

Merge request reports