Skip to content

Commit

Permalink
meson: assume vkCreateDisplayPlaneSurfaceKHR is available when buildi…
Browse files Browse the repository at this point in the history
…ng vulkan

When Vulkan loader is build internally, let's assume it is available.
  • Loading branch information
kasper93 committed May 18, 2024
1 parent e8e322f commit 84abbf1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 84abbf1

Please sign in to comment.