render/vulkan: quiet glslangValidator

This suppresses the output filename printed to stdout. Errors and
warnings should still be printed to stderr as usual.
This commit is contained in:
Simon Ser 2021-11-07 13:22:14 +01:00 committed by Simon Zeni
parent 1d9c1bcea6
commit 5332935afc
2 changed files with 6 additions and 0 deletions

View file

@ -33,6 +33,9 @@ if not glslang.found()
endif
endif
glslang_version_info = run_command(glslang, '--version', check: true).stdout()
glslang_version = glslang_version_info.split('\n')[0].split(':')[-1]
wlr_files += files(
'renderer.c',
'texture.c',

View file

@ -8,6 +8,9 @@ vulkan_shaders = []
foreach shader : vulkan_shaders_src
name = shader.underscorify() + '_data'
args = [glslang, '-V', '@INPUT@', '-o', '@OUTPUT@', '--vn', name]
if glslang_version.version_compare('>=11.0.0')
args += '--quiet'
endif
header = custom_target(
shader + '_spv',
output: shader + '.h',