meson: Require glslangValidator when building lavapipe

The tool is required by the runtime for acceleration structures.
Lavapipe uses some of those runtime helpers and will use more of them in
the future (https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31426),
especially those that have a hard requirement for the tool.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12412
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12437
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32882>
This commit is contained in:
Konstantin Seurer
2025-01-04 20:48:26 +01:00
committed by Marge Bot
parent 022671f2c4
commit fac818bdb3

View File

@@ -637,8 +637,12 @@ endif
# GLSL has interesting version output and Meson doesn't parse it correctly as of
# Meson 1.4.0
prog_glslang = find_program('glslangValidator', native : true,
required : with_vulkan_overlay_layer or with_aco_tests or with_amd_vk or with_intel_vk)
prog_glslang = find_program(
'glslangValidator',
native : true,
required : with_vulkan_overlay_layer or with_aco_tests or with_amd_vk or with_intel_vk or with_swrast_vk
)
if prog_glslang.found()
# Check if glslang has depfile support. Support was added in 11.3.0, but
# Windows path support was broken until 11.9.0.