Enable Crocus driver

The driver is not used by default, so it's safe to package it without
breaking anything. It could be used with
MESA_LOADER_DRIVER_OVERRIDE=crocus environmental variable.

Signed-off-by: Pete Walter <pwalter@fedoraproject.org>
This commit is contained in:
ValdikSS 2021-08-05 13:39:43 +01:00 committed by Pete Walter
parent 34d9cd42cf
commit 263d093bf3

View file

@ -13,6 +13,7 @@
%endif
%ifarch %{ix86} x86_64
%global with_crocus 1
%global with_iris 1
%global with_vmware 1
%global with_xa 1
@ -58,7 +59,7 @@ Name: mesa
Summary: Mesa graphics libraries
%global ver 21.2.0
Version: %{lua:ver = string.gsub(rpm.expand("%{ver}"), "-", "~"); print(ver)}
Release: 1%{?dist}
Release: 2%{?dist}
License: MIT
URL: http://www.mesa3d.org
@ -332,7 +333,7 @@ cp %{SOURCE1} docs/
-Ddri-drivers=%{?dri_drivers} \
-Dosmesa=true \
%if 0%{?with_hardware}
-Dgallium-drivers=swrast,virgl,nouveau%{?with_r300:,r300}%{?with_iris:,iris}%{?with_vmware:,svga}%{?with_radeonsi:,radeonsi}%{?with_r600:,r600}%{?with_freedreno:,freedreno}%{?with_etnaviv:,etnaviv}%{?with_tegra:,tegra}%{?with_vc4:,vc4}%{?with_v3d:,v3d}%{?with_kmsro:,kmsro}%{?with_lima:,lima}%{?with_panfrost:,panfrost}%{?with_vulkan_hw:,zink} \
-Dgallium-drivers=swrast,virgl,nouveau%{?with_r300:,r300}%{?with_crocus:,crocus}%{?with_iris:,iris}%{?with_vmware:,svga}%{?with_radeonsi:,radeonsi}%{?with_r600:,r600}%{?with_freedreno:,freedreno}%{?with_etnaviv:,etnaviv}%{?with_tegra:,tegra}%{?with_vc4:,vc4}%{?with_v3d:,v3d}%{?with_kmsro:,kmsro}%{?with_lima:,lima}%{?with_panfrost:,panfrost}%{?with_vulkan_hw:,zink} \
%else
-Dgallium-drivers=swrast,virgl \
%endif
@ -494,6 +495,7 @@ popd
%{_libdir}/dri/i915_dri.so
%{_libdir}/dri/i965_dri.so
%endif
%{_libdir}/dri/crocus_dri.so
%{_libdir}/dri/iris_dri.so
%endif
%ifarch %{arm} aarch64
@ -604,6 +606,9 @@ popd
%files vulkan-devel
%changelog
* Thu Aug 05 2021 ValdikSS <iam@valdikss.org.ru> - 21.2.0-2
- Enable Crocus driver
* Thu Aug 05 2021 Pete Walter <pwalter@fedoraproject.org> - 21.2.0-1
- Update to 21.2.0