meson: only enable intel-clc for x86_64 builds
authorLuis Felipe Strano Moraes <luis.strano@gmail.com>
Thu, 10 Nov 2022 23:57:05 +0000 (15:57 -0800)
committerEric Engestrom <eric@engestrom.ch>
Thu, 17 Nov 2022 14:05:03 +0000 (14:05 +0000)
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19662>
(cherry picked from commit d983827a62c77713452a9e420fd20ed39c68ef2c)

.pick_status.json
meson.build

index 85592d7..6a8b317 100644 (file)
         "description": "meson: only enable intel-clc for x86_64 builds",
         "nominated": false,
         "nomination_type": null,
-        "resolution": 4,
+        "resolution": 1,
         "main_sha": null,
         "because_sha": null
     },
index 6289f11..c5c138a 100644 (file)
@@ -300,8 +300,13 @@ if with_aco_tests and not with_amd_vk
 endif
 
 with_microsoft_clc = get_option('microsoft-clc').enabled()
-with_intel_clc = get_option('intel-clc').enabled()
-with_intel_vk_rt = with_intel_vk and with_intel_clc
+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
+else
+  with_intel_clc = false
+  with_intel_vk_rt = false
+endif
 with_clc = with_microsoft_clc or with_intel_clc
 with_libclc = with_clc
 with_spirv_to_dxil = get_option('spirv-to-dxil')