From 4f863dc0f72719603a6fd60a62a1d619ee2696af Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Fri, 8 Mar 2019 11:27:50 -0800 Subject: [PATCH] turnip: guard -Dvulkan-driver=freedreno Require -DI-love-half-baked-turnips=true as well to enable freedreno vulkan driver. --- meson.build | 4 ++++ meson_options.txt | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/meson.build b/meson.build index 8ec0a56ad30..7a536982da6 100644 --- a/meson.build +++ b/meson.build @@ -206,6 +206,10 @@ with_amd_vk = _vulkan_drivers.contains('amd') with_freedreno_vk = _vulkan_drivers.contains('freedreno') with_any_vk = _vulkan_drivers.length() != 0 and _vulkan_drivers != [''] +if with_freedreno_vk and get_option('I-love-half-baked-turnips') != true + error('Cannot enable freedreno vulkan driver') +endif + if with_dri_swrast and (with_gallium_softpipe or with_gallium_swr) error('Only one swrast provider can be built') endif diff --git a/meson_options.txt b/meson_options.txt index a2bd2ac64d5..6c14fd503b9 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -330,3 +330,9 @@ option( value : true, description : 'Enable direct rendering in GLX and EGL for DRI', ) +option( + 'I-love-half-baked-turnips', + type : 'boolean', + value : false, + description : 'Allow work-in-progress freedreno vulkan driver to be enabled', +) -- 2.30.2