From 263d093bf350ba47f811bd432489ddc2bca72504 Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Thu, 5 Aug 2021 13:39:43 +0100 Subject: [PATCH] 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 --- mesa.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mesa.spec b/mesa.spec index 6a8a502..0246935 100644 --- a/mesa.spec +++ b/mesa.spec @@ -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 - 21.2.0-2 +- Enable Crocus driver + * Thu Aug 05 2021 Pete Walter - 21.2.0-1 - Update to 21.2.0