build: Block build of HASVK, Crocus and i915 in non-x86 architectures

HASVK, Crocus and i915 drivers only supports integrated GPUs.

Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21773>
This commit is contained in:
José Roberto de Souza
2022-11-23 12:32:02 -08:00
committed by Marge Bot
parent 757e2dd692
commit c5888bf610

View File

@@ -1424,6 +1424,18 @@ if get_option('intel-xe-kmd').enabled()
pre_args += '-DINTEL_XE_KMD_SUPPORTED'
endif
if with_intel_hasvk and host_machine.cpu_family().startswith('x86') == false
error('Intel "hasvk" Vulkan driver requires x86 or x86_64 CPU family')
endif
if with_gallium_crocus and host_machine.cpu_family().startswith('x86') == false
error('Intel "crocus" Gallium driver requires x86 or x86_64 CPU family')
endif
if with_gallium_i915 and host_machine.cpu_family().startswith('x86') == false
error('Intel "i915" Gallium driver requires x86 or x86_64 CPU family')
endif
# Determine whether or not the rt library is needed for time functions
if host_machine.system() == 'windows' or cc.has_function('clock_gettime')
dep_clock = null_dep