diff --git a/meson.build b/meson.build index 1f35e10f09973..46ae2d18619f0 100644 --- a/meson.build +++ b/meson.build @@ -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 ', +features += {'vk-khr-display': vulkan.type_name() == 'internal' or + cc.has_function('vkCreateDisplayPlaneSurfaceKHR', prefix: '#include ', dependencies: [vulkan])} if features['vk-khr-display'] sources += files('video/out/vulkan/context_display.c')