From 995f38838fc7aa485714c7574be6143c5badee5c Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 5 Nov 2021 09:52:05 +1000 Subject: [PATCH] meson: allow building with vulkan beta extensions enabled. This is just a precursor to anyone enabling beta stuff later. Reviewed-by: Emma Anholt Reviewed-by: Eric Engestrom Part-of: --- meson.build | 5 +++++ meson_options.txt | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/meson.build b/meson.build index 3aa9a6b4f9f..e1f5fb30db8 100644 --- a/meson.build +++ b/meson.build @@ -333,6 +333,11 @@ else with_dri_platform = 'none' endif +with_vulkan_beta = get_option('vulkan-beta') +if with_vulkan_beta + pre_args += '-DVK_ENABLE_BETA_EXTENSIONS' +endif + _platforms = get_option('platforms') if _platforms.contains('auto') if system_has_kms_drm diff --git a/meson_options.txt b/meson_options.txt index 32c7593ee8e..fd0d99f2f9a 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -530,3 +530,9 @@ option( value : false, description : 'Build gallium VMware/svga driver with mksGuestStats instrumentation.' ) +option( + 'vulkan-beta', + type : 'boolean', + value : false, + description : 'Build vulkan drivers with BETA extensions enabled.' +)