meson/vulkan/util: allow venus to drop compiler deps

Files to compile: 451 => 232

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26783>
This commit is contained in:
Yiwei Zhang
2023-12-21 01:57:50 -08:00
committed by Marge Bot
parent fb93475139
commit 3923d43908
5 changed files with 44 additions and 6 deletions

View File

@@ -251,6 +251,20 @@ with_microsoft_vk = _vulkan_drivers.contains('microsoft-experimental')
with_nouveau_vk = _vulkan_drivers.contains('nouveau-experimental')
with_any_vk = _vulkan_drivers.length() != 0
with_vk_compiler = [
with_intel_vk,
with_intel_hasvk,
with_amd_vk,
with_freedreno_vk,
with_panfrost_vk,
with_swrast_vk,
with_broadcom_vk,
with_imagination_vk,
with_microsoft_vk,
with_nouveau_vk,
].contains(true)
pre_args += '-DUSE_VK_COMPILER=@0@'.format(with_vk_compiler ? '1' : '0')
freedreno_kmds = get_option('freedreno-kmds')
if freedreno_kmds.length() != 0 and freedreno_kmds != [ 'msm' ] and with_freedreno_vk
if freedreno_kmds.contains('msm')