meson: bump required llvm-spirv version with intel-clc
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16970>
This commit is contained in:

committed by
Marge Bot

parent
0926ac42cb
commit
262719e963
20
meson.build
20
meson.build
@@ -1771,7 +1771,9 @@ if draw_with_llvm
|
|||||||
llvm_modules += 'native'
|
llvm_modules += 'native'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if with_amd_vk or with_gallium_radeonsi or with_gallium_opencl
|
if with_intel_clc
|
||||||
|
_llvm_version = '>= 13.0.0'
|
||||||
|
elif with_amd_vk or with_gallium_radeonsi or with_gallium_opencl
|
||||||
_llvm_version = '>= 11.0.0'
|
_llvm_version = '>= 11.0.0'
|
||||||
elif with_clc
|
elif with_clc
|
||||||
_llvm_version = '>= 10.0.0'
|
_llvm_version = '>= 10.0.0'
|
||||||
@@ -1888,12 +1890,18 @@ if with_opencl_spirv
|
|||||||
|
|
||||||
# Require an SPIRV-LLVM-Translator version compatible with the chosen LLVM
|
# Require an SPIRV-LLVM-Translator version compatible with the chosen LLVM
|
||||||
# one.
|
# one.
|
||||||
|
|
||||||
|
# This first version check is still needed as maybe LLVM 8.0 was picked but
|
||||||
|
# we do not want to accept SPIRV-LLVM-Translator 8.0.0.1 as that version
|
||||||
|
# does not have the required API and those are only available starting from
|
||||||
|
# 8.0.1.3.
|
||||||
|
_llvmspirvlib_min_version = '>= 8.0.1.3'
|
||||||
|
if with_intel_clc
|
||||||
|
_llvmspirvlib_min_version = '>= 13.0.0.0'
|
||||||
|
endif
|
||||||
|
|
||||||
_llvmspirvlib_version = [
|
_llvmspirvlib_version = [
|
||||||
# This first version check is still needed as maybe LLVM 8.0 was picked but
|
_llvmspirvlib_min_version,
|
||||||
# we do not want to accept SPIRV-LLVM-Translator 8.0.0.1 as that version does
|
|
||||||
# not have the required API and those are only available starting from
|
|
||||||
# 8.0.1.3.
|
|
||||||
'>= 8.0.1.3',
|
|
||||||
'>= @0@.@1@'.format(chosen_llvm_version_major, chosen_llvm_version_minor),
|
'>= @0@.@1@'.format(chosen_llvm_version_major, chosen_llvm_version_minor),
|
||||||
'< @0@.@1@'.format(chosen_llvm_version_major, chosen_llvm_version_minor + 1) ]
|
'< @0@.@1@'.format(chosen_llvm_version_major, chosen_llvm_version_minor + 1) ]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user