diff options
author | Joonbum Ko <joonbum.ko@samsung.com> | 2024-04-26 13:39:45 +0900 |
---|---|---|
committer | Joonbum Ko <joonbum.ko@samsung.com> | 2024-08-20 15:13:24 +0900 |
commit | 79848e83c72ce41314dde0fd4973f80180e9c6a3 (patch) | |
tree | fb925d68b289575e3f358f5eb7366a400c6f6d29 | |
parent | ab3c25cf12498a450b155019760a2319826a088a (diff) | |
download | mesa-79848e83c72ce41314dde0fd4973f80180e9c6a3.tar.gz mesa-79848e83c72ce41314dde0fd4973f80180e9c6a3.tar.bz2 mesa-79848e83c72ce41314dde0fd4973f80180e9c6a3.zip |
spec: gbm enabled by default
Change-Id: I2644f4f86260fe480ab1a8a40688d045eff1a9f2
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
-rw-r--r-- | packaging/mesa.spec | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/packaging/mesa.spec b/packaging/mesa.spec index 505e6630dd4..824b3cabf39 100644 --- a/packaging/mesa.spec +++ b/packaging/mesa.spec @@ -55,12 +55,9 @@ ExclusiveArch: %define dri_drivers "" %else -%define USE_GBM 0 %define USE_VULKAN 1 %define VULKAN_DRIVER broadcom -%if %{USE_GBM} == 1 -%enable_driver gbm -%endif + %if %{USE_VULKAN} == 1 %enable_driver vulkan %endif @@ -75,8 +72,11 @@ ExclusiveArch: %define dri_drivers "auto" %endif +%enable_driver gbm + %{echo: enabled gallium drivers : %{expand:%{gallium_drivers}}} + %description Mesa is a 3-D graphics library with an API which is very similar to that of OpenGL.* To the extent that Mesa utilizes the OpenGL command @@ -127,6 +127,7 @@ mkdir -p %{buildroot}%{_hal_prefix}/share/vulkan/icd.d cp -a %{buildroot}%{_hal_libdir}/libEGL* %{buildroot}%{_hal_libdir}/driver/ cp -a %{buildroot}%{_hal_libdir}/libGLES* %{buildroot}%{_hal_libdir}/driver/ +cp -a %{buildroot}%{_hal_libdir}/libgbm* %{buildroot}%{_hal_libdir}/driver/ mkdir -p %{buildroot}%{_hal_libdir}/udev/rules.d cp 99-GPU-Acceleration.rules %{buildroot}%{_hal_libdir}/udev/rules.d @@ -160,9 +161,10 @@ cp COPYING %{buildroot}%{_hal_prefix}/share/licenses/%{name}/ %{_hal_libdir}/dri/i915_dri.so %endif -%if "%{USE_GBM}" == "1" -%{_hal_libdir}/libgbm* +%if %{enable_gbm} +%{_hal_libdir}/driver/libgbm* %endif + %if "%{USE_VULKAN}" == "1" %{_hal_libdir}/libvulkan_%{VULKAN_DRIVER}.so %{_hal_prefix}/share/vulkan/icd.d/* |