meson: assume vkCreateDisplayPlaneSurfaceKHR is available when internal

When Vulkan loader is build internally, let's assume it is available.
This commit is contained in:
Kacper Michajłow 2024-05-18 01:36:09 +02:00
parent 2b4c64e321
commit 89ed75e63e
1 changed files with 2 additions and 1 deletions

View File

@ -1310,7 +1310,8 @@ if features['vulkan'] and features['x11']
sources += files('video/out/vulkan/context_xlib.c')
endif
features += {'vk-khr-display': cc.has_function('vkCreateDisplayPlaneSurfaceKHR', prefix: '#include <vulkan/vulkan_core.h>',
features += {'vk-khr-display': vulkan.type_name() == 'internal' or
cc.has_function('vkCreateDisplayPlaneSurfaceKHR', prefix: '#include <vulkan/vulkan_core.h>',
dependencies: [vulkan])}
if features['vk-khr-display']
sources += files('video/out/vulkan/context_display.c')