diff options
-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/* |