ensure with_vulkan is defined on all arches

This commit is contained in:
Peter Robinson 2016-11-02 13:10:22 +00:00
parent bfba468339
commit dd9168f626

View file

@ -20,6 +20,7 @@
%define with_nine 1 %define with_nine 1
%define base_drivers swrast,nouveau,radeon,r200 %define base_drivers swrast,nouveau,radeon,r200
%endif %endif
%ifarch %{ix86} x86_64 %ifarch %{ix86} x86_64
%define platform_drivers ,i915,i965 %define platform_drivers ,i915,i965
%define with_ilo 1 %define with_ilo 1
@ -27,10 +28,14 @@
%define with_xa 1 %define with_xa 1
%define with_omx 1 %define with_omx 1
%define with_vulkan 1 %define with_vulkan 1
%else
%define with_vulkan 0
%endif %endif
%ifarch aarch64 %{ix86} x86_64 %ifarch aarch64 %{ix86} x86_64
%define with_opencl 1 %define with_opencl 1
%endif %endif
%ifarch %{arm} aarch64 %ifarch %{arm} aarch64
%define with_vc4 1 %define with_vc4 1
%define with_freedreno 1 %define with_freedreno 1
@ -386,7 +391,7 @@ export LDFLAGS="-static-libstdc++"
%{?with_opencl:--enable-opencl --enable-opencl-icd} %{!?with_opencl:--disable-opencl} \ %{?with_opencl:--enable-opencl --enable-opencl-icd} %{!?with_opencl:--disable-opencl} \
--enable-glx-tls \ --enable-glx-tls \
--enable-texture-float=yes \ --enable-texture-float=yes \
%if %{?with_vulkan} %if %{with_vulkan}
%{?vulkan_drivers} \ %{?vulkan_drivers} \
--with-sha1=libcrypto \ --with-sha1=libcrypto \
%endif %endif