diff options
author | Xuelian Bai <xuelian.bai@samsung.com> | 2023-04-27 11:30:19 +0800 |
---|---|---|
committer | Xuelian Bai <xuelian.bai@samsung.com> | 2024-01-18 09:31:56 +0800 |
commit | 7a9577385e4bd0a54ec0cb12a509e0c47886294e (patch) | |
tree | 89b38241ca62f7609fd9aa1a9f1cc77cef19ec38 | |
parent | d87755f5a312590e75e774214b8464036e214697 (diff) | |
download | mesa-7a9577385e4bd0a54ec0cb12a509e0c47886294e.tar.gz mesa-7a9577385e4bd0a54ec0cb12a509e0c47886294e.tar.bz2 mesa-7a9577385e4bd0a54ec0cb12a509e0c47886294e.zip |
Remove dependency on llvm
Disable llvmpipe, fallback to traditional swrast softpipe.
Change-Id: I88346e043e27364d4981770bb88df12485070f65
Signed-off-by: Xuelian Bai <xuelian.bai@samsung.com>
-rw-r--r-- | packaging/mesa.spec | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/packaging/mesa.spec b/packaging/mesa.spec index 634fa7ffed8..daaf2907e75 100644 --- a/packaging/mesa.spec +++ b/packaging/mesa.spec @@ -9,16 +9,9 @@ Source: %{name}-%{version}.tar.gz Source1001: %{name}.manifest Source1002: 99-GPU-Acceleration.rules -%define USE_LLVM 0 BuildRequires: bison BuildRequires: flex -%if %{USE_LLVM} == 1 -BuildRequires: llvm -BuildRequires: llvm-devel -BuildRequires: llvm-static-devel -Requires: llvm -%endif BuildRequires: pkgconfig BuildRequires: pkgconfig(expat) BuildRequires: pkgconfig(libdrm) >= 2.4.75 @@ -54,16 +47,13 @@ ExclusiveArch: %define USE_GBM 0 %define USE_VULKAN 1 %define VULKAN_DRIVER broadcom -%if %{USE_LLVM} == 1 -%enable_driver llvm -%endif %if %{USE_GBM} == 1 %enable_driver gbm %endif %if %{USE_VULKAN} == 1 %enable_driver vulkan %endif -%define gallium_drivers "vc4,v3d,kmsro%{?!enable_llvm:,swrast}" +%define gallium_drivers "vc4,v3d,kmsro,swrast" %define vulkan_drivers "%{?enable_vulkan:%{VULKAN_DRIVER}}" %define dri_drivers "auto" %endif @@ -102,7 +92,8 @@ meson --prefix %{_hal_prefix} build/ \ -Dgallium-xa=false \ -Dglx=disabled \ -Ddri3=false \ - -Dllvm=%{?enable_llvm:enabled}%{?!enable_llvm:disabled} \ + -Ddraw-use-llvm=false \ + -Dllvm=disabled \ -Dgbm=%{?enable_gbm:enabled}%{?!enable_gbm:disabled} \ -Dplatforms="tizen" \ -Dgallium-drivers=%{gallium_drivers} \ |