meson: allow building with vulkan beta extensions enabled.

This is just a precursor to anyone enabling beta stuff later.

Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13685>
This commit is contained in:
Dave Airlie 2021-11-05 09:52:05 +10:00 committed by Marge Bot
parent 40157bc2b0
commit 995f38838f
2 changed files with 11 additions and 0 deletions

View File

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

View File

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