1
0
forked from rpms/mesa

Enable v3d, vc4 for Raspberry Pi graphics

Resolves: https://github.com/AlmaLinux/raspberry-pi/issues/32
This commit is contained in:
Koichiro Iwao 2024-06-25 09:28:58 +09:00
parent fdf78b7dd8
commit 026429fbe2

View File

@ -23,6 +23,11 @@
%ifarch %{arm} aarch64
%define with_xa 1
# RHEL doesn't ship vc4 and v3d but we do for RPi
%if 0%{?almalinux}
%define with_v3d 1
%define with_vc4 1
%endid
%endif
%if 0%{?with_vulkan_hw}
@ -38,7 +43,7 @@
Name: mesa
Summary: Mesa graphics libraries
Version: 23.1.4
Release: 2%{?rctag:.%{rctag}}%{?dist}
Release: 2%{?rctag:.%{rctag}}%{?dist}.alma.1
License: MIT
URL: http://www.mesa3d.org
@ -349,7 +354,7 @@ export PYTHONPATH=/usr/lib/python3.6/site-packages/:%{buildroot}/usr/lib/python3
-Ddri3=enabled \
-Dosmesa=true \
%if 0%{?with_hardware}
-Dgallium-drivers=swrast%{?with_crocus:,crocus}%{?with_iris:,iris},virgl,nouveau%{?with_vmware:,svga},radeonsi,r600%{?with_freedreno:,freedreno}%{?with_etnaviv:,etnaviv}%{?with_tegra:,tegra}%{?with_vc4:,vc4}%{?with_kmsro:,kmsro} \
-Dgallium-drivers=swrast%{?with_crocus:,crocus}%{?with_iris:,iris},virgl,nouveau%{?with_vmware:,svga},radeonsi,r600%{?with_freedreno:,freedreno}%{?with_etnaviv:,etnaviv}%{?with_tegra:,tegra}%{?with_v3d:,v3d}%{?with_vc4:,vc4}%{?with_kmsro:,kmsro} \
%else
-Dgallium-drivers=swrast,virgl \
%endif
@ -524,6 +529,9 @@ done
%{_libdir}/dri/crocus_dri.so
%{_libdir}/dri/iris_dri.so
%endif
%if 0%{?with_v3d}
%{_libdir}/dri/v3d_dri.so
%endif
%if 0%{?with_vc4}
%{_libdir}/dri/vc4_dri.so
%endif
@ -587,6 +595,10 @@ done
%endif
%changelog
* Tue Jun 25 2024 Koichiro Iwao <meta@almalinux.org> - 23.1.4-2.alma.1
- Enable v3d for Raspberry Pi graphic in AlmaLinux
Resolves: https://github.com/AlmaLinux/raspberry-pi/issues/32
* Thu Nov 23 2023 José Expósito <jexposit@redhat.com> - 23.1.4-2
- Rebuild against LLVM 17