diff --git a/meson.build b/meson.build index 7af6401add4..a5219fe1bf1 100644 --- a/meson.build +++ b/meson.build @@ -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.