].contains(true)
if ['x86_64'].contains(host_machine.cpu_family())
- with_intel_clc = get_option('intel-clc').enabled()
- with_intel_vk_rt = with_intel_vk and with_intel_clc
+ with_intel_clc = get_option('intel-clc') == 'enabled'
else
with_intel_clc = false
- with_intel_vk_rt = false
endif
+with_intel_vk_rt = with_intel_vk and get_option('intel-clc') != 'disabled'
with_any_intel = [
with_gallium_crocus,
option(
'intel-clc',
- type : 'feature',
+ type : 'combo',
deprecated: {'true': 'enabled', 'false': 'disabled'},
value : 'disabled',
+ choices : [
+ 'enabled', 'disabled', 'system',
+ ],
description : 'Build the intel-clc compiler (enables Vulkan Intel ' +
'Ray Tracing on supported hardware).'
)
)
# For now this tool is only going to be used by Anv
-if with_intel_clc
+if get_option('intel-clc') == 'system'
+ prog_intel_clc = find_program('intel_clc', native : true)
+ dep_prog_intel_clc = []
+elif with_intel_clc
prog_intel_clc = executable(
'intel_clc',
['intel_clc.c', 'brw_kernel.c'],
dependencies : [idep_nir, idep_vtn, idep_mesaclc, idep_mesautil, idep_intel_dev],
native : true,
)
+ dep_prog_intel_clc = [prog_intel_clc]
endif
if with_tests
# if fixed there
],
env: ['MESA_SHADER_CACHE_DISABLE=true'],
- depends : [prog_intel_clc]
+ depends : dep_prog_intel_clc
)
endforeach