vtn: Add a debug flag to dump SPIR-V assembly

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30875>
This commit is contained in:
Faith Ekstrand
2024-08-27 09:18:53 -05:00
committed by Marge Bot
parent 9520fb8ecc
commit c60a421f0c
6 changed files with 86 additions and 4 deletions

View File

@@ -1916,14 +1916,21 @@ if with_clover_spirv or with_clc
'>= @0@.@1@'.format(chosen_llvm_version_major, chosen_llvm_version_minor),
'< @0@.@1@'.format(chosen_llvm_version_major, chosen_llvm_version_minor + 1) ]
dep_spirv_tools = dependency('SPIRV-Tools', required : true, version : '>= 2018.0')
# LLVMSPIRVLib is available at https://github.com/KhronosGroup/SPIRV-LLVM-Translator
dep_llvmspirvlib = dependency('LLVMSPIRVLib', required : true, version : _llvmspirvlib_version)
else
dep_spirv_tools = null_dep
dep_llvmspirvlib = null_dep
endif
dep_spirv_tools = dependency(
'SPIRV-Tools',
required : with_clover_spirv or with_clc,
version : '>= 2018.0'
)
if dep_spirv_tools.found()
pre_args += '-DHAVE_SPIRV_TOOLS'
endif
dep_clang = null_dep
if with_clc
llvm_libdir = dep_llvm.get_variable(cmake : 'LLVM_LIBRARY_DIR', configtool: 'libdir')