From dd9168f626bfd0c0cff9ed873f520a2f4bad9118 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Wed, 2 Nov 2016 13:10:22 +0000 Subject: [PATCH] ensure with_vulkan is defined on all arches --- mesa.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mesa.spec b/mesa.spec index e52c06d..f769db5 100644 --- a/mesa.spec +++ b/mesa.spec @@ -20,6 +20,7 @@ %define with_nine 1 %define base_drivers swrast,nouveau,radeon,r200 %endif + %ifarch %{ix86} x86_64 %define platform_drivers ,i915,i965 %define with_ilo 1 @@ -27,10 +28,14 @@ %define with_xa 1 %define with_omx 1 %define with_vulkan 1 +%else +%define with_vulkan 0 %endif + %ifarch aarch64 %{ix86} x86_64 %define with_opencl 1 %endif + %ifarch %{arm} aarch64 %define with_vc4 1 %define with_freedreno 1 @@ -386,7 +391,7 @@ export LDFLAGS="-static-libstdc++" %{?with_opencl:--enable-opencl --enable-opencl-icd} %{!?with_opencl:--disable-opencl} \ --enable-glx-tls \ --enable-texture-float=yes \ -%if %{?with_vulkan} +%if %{with_vulkan} %{?vulkan_drivers} \ --with-sha1=libcrypto \ %endif