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.' +)