meson: -DVK_ENABLE_BETA_EXTENSIONS at a single place

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19549>
This commit is contained in:
Yonggang Luo 2022-11-06 00:12:53 +08:00 committed by Marge Bot
parent 560b327696
commit 4d058a7034

View file

@ -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')