Module: Mesa Branch: main Commit: 995f38838fc7aa485714c7574be6143c5badee5c URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=995f38838fc7aa485714c7574be6143c5badee5c
Author: Dave Airlie <[email protected]> Date: Fri Nov 5 09:52:05 2021 +1000 meson: allow building with vulkan beta extensions enabled. This is just a precursor to anyone enabling beta stuff later. Reviewed-by: Emma Anholt <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13685> --- 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.' +)
