From c5888bf61036e34b1853e1080926e851f265b272 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Roberto=20de=20Souza?= Date: Wed, 23 Nov 2022 12:32:02 -0800 Subject: [PATCH] build: Block build of HASVK, Crocus and i915 in non-x86 architectures MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit HASVK, Crocus and i915 drivers only supports integrated GPUs. Signed-off-by: José Roberto de Souza Reviewed-by: Lionel Landwerlin Part-of: --- meson.build | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/meson.build b/meson.build index 20f919f..e6801c7 100644 --- a/meson.build +++ b/meson.build @@ -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 -- 2.7.4