mirror of
https://src.fedoraproject.org/rpms/mesa.git
synced 2024-11-28 11:06:25 +00:00
fix up building drivers on AArch64, enable LLVM there and some more fixes
- Eliminate some F17 cruft from the spec, since we don't support it anymore. - Conditionalize with_radeonsi on with_llvm instead of ppc,s390 && >F-17. - Conditionalize libvdpau_radeonsi.so.1* on with_radeonsi instead of simply with_llvm to fix a build failure on AArch64.
This commit is contained in:
parent
5278992051
commit
ffb5ced72c
1 changed files with 22 additions and 20 deletions
42
mesa.spec
42
mesa.spec
|
@ -7,30 +7,25 @@
|
||||||
%define with_wayland 1
|
%define with_wayland 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# f17 support wayland 0.85, llvm 3.0 means no radeonsi
|
# S390 doesn't have video cards, but we need swrast for xserver's GLX
|
||||||
%if 0%{?fedora} < 18
|
# llvm (and thus llvmpipe) doesn't actually work on ppc32 or s390
|
||||||
%define min_wayland_version 0.85
|
|
||||||
%else
|
%ifnarch s390 ppc
|
||||||
%define min_wayland_version 1.0
|
%define with_llvm 1
|
||||||
%ifnarch ppc aarch64
|
|
||||||
%define with_radeonsi 1
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%define min_wayland_version 1.0
|
||||||
|
%if !0%{?with_llvm}
|
||||||
|
%define with_radeonsi 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%ifarch %{arm}
|
%ifarch %{arm}
|
||||||
%define with_freedreno 1
|
%define with_freedreno 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# S390 doesn't have video cards, but we need swrast for xserver's GLX
|
%ifarch s390 s390x
|
||||||
# llvm (and thus llvmpipe) doesn't actually work on ppc32 or s390
|
|
||||||
|
|
||||||
%ifnarch s390 ppc aarch64
|
|
||||||
%define with_llvm 1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifarch s390 s390x aarch64
|
|
||||||
%define with_hardware 0
|
%define with_hardware 0
|
||||||
%ifarch s390 aarch64
|
%ifarch s390
|
||||||
%define base_drivers swrast
|
%define base_drivers swrast
|
||||||
%endif
|
%endif
|
||||||
%else
|
%else
|
||||||
|
@ -56,7 +51,7 @@
|
||||||
Summary: Mesa graphics libraries
|
Summary: Mesa graphics libraries
|
||||||
Name: mesa
|
Name: mesa
|
||||||
Version: 10.0.2
|
Version: 10.0.2
|
||||||
Release: 3.%{gitdate}%{?dist}
|
Release: 4.%{gitdate}%{?dist}
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
URL: http://www.mesa3d.org
|
URL: http://www.mesa3d.org
|
||||||
|
@ -344,12 +339,10 @@ sed -i 's/llvm-config/mesa-private-llvm-config-%{__isa_bits}/g' configure.ac
|
||||||
sed -i 's/`$LLVM_CONFIG --version`/&-mesa/' configure.ac
|
sed -i 's/`$LLVM_CONFIG --version`/&-mesa/' configure.ac
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# need to use libdrm_nouveau2 on F17
|
# need to use libdrm_nouveau2 on F17/RHEL
|
||||||
%if !0%{?rhel}
|
%if !0%{?rhel}
|
||||||
%if 0%{?fedora} < 18
|
|
||||||
sed -i 's/\<libdrm_nouveau\>/&2/' configure.ac
|
sed -i 's/\<libdrm_nouveau\>/&2/' configure.ac
|
||||||
%endif
|
%endif
|
||||||
%endif
|
|
||||||
|
|
||||||
cp %{SOURCE4} docs/
|
cp %{SOURCE4} docs/
|
||||||
|
|
||||||
|
@ -533,10 +526,12 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
%{_libdir}/vdpau/libvdpau_nouveau.so.1*
|
%{_libdir}/vdpau/libvdpau_nouveau.so.1*
|
||||||
%if 0%{?with_llvm}
|
%if 0%{?with_llvm}
|
||||||
%{_libdir}/vdpau/libvdpau_r600.so.1*
|
%{_libdir}/vdpau/libvdpau_r600.so.1*
|
||||||
|
%if 0%{?with_radeonsi}
|
||||||
%{_libdir}/vdpau/libvdpau_radeonsi.so.1*
|
%{_libdir}/vdpau/libvdpau_radeonsi.so.1*
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%files libGL-devel
|
%files libGL-devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
@ -645,6 +640,13 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Feb 02 2014 Kyle McMartin <kyle@redhat.com> - 10.0.2-4.20140118
|
||||||
|
- Fix up building drivers on AArch64, enable LLVM there.
|
||||||
|
- Eliminate some F17 cruft from the spec, since we don't support it anymore.
|
||||||
|
- Conditionalize with_radeonsi on with_llvm instead of ppc,s390 && >F-17.
|
||||||
|
- Conditionalize libvdpau_radeonsi.so.1* on with_radeonsi instead of simply
|
||||||
|
with_llvm to fix a build failure on AArch64.
|
||||||
|
|
||||||
* Sun Jan 19 2014 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 10.0.2-3.20140118
|
* Sun Jan 19 2014 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 10.0.2-3.20140118
|
||||||
- Enable OpenCL (RHBZ #887628)
|
- Enable OpenCL (RHBZ #887628)
|
||||||
- Enable r600 llvm compiler (RHBZ #1055098)
|
- Enable r600 llvm compiler (RHBZ #1055098)
|
||||||
|
|
Loading…
Reference in a new issue