From 4d058a7034c24594637de72563456ce7882b9bc8 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Sun, 6 Nov 2022 00:12:53 +0800 Subject: [PATCH] meson: -DVK_ENABLE_BETA_EXTENSIONS at a single place Signed-off-by: Yonggang Luo Reviewed-by: Eric Engestrom Part-of: --- meson.build | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index e384aa340b6..3e46cd50deb 100644 --- a/meson.build +++ b/meson.build @@ -321,6 +321,10 @@ else endif with_vulkan_beta = get_option('vulkan-beta') +if host_machine.system() == 'darwin' + #macOS seems to need beta extensions to build for now: + with_vulkan_beta = true +endif if with_vulkan_beta pre_args += '-DVK_ENABLE_BETA_EXTENSIONS' endif @@ -451,9 +455,6 @@ if host_machine.system() == 'darwin' cpp_args += '-DVK_USE_PLATFORM_MACOS_MVK' c_args += '-DVK_USE_PLATFORM_METAL_EXT' cpp_args += '-DVK_USE_PLATFORM_METAL_EXT' - #macOS seems to need beta extensions to build for now: - c_args += '-DVK_ENABLE_BETA_EXTENSIONS' - cpp_args += '-DVK_ENABLE_BETA_EXTENSIONS' endif _egl = get_option('egl')