diff --git a/0001-llvm-SONAME-without-version.patch b/0001-llvm-SONAME-without-version.patch deleted file mode 100644 index cb91094..0000000 --- a/0001-llvm-SONAME-without-version.patch +++ /dev/null @@ -1,26 +0,0 @@ -From c2b4d93a5e4796ca53361c61d7e31edc24241932 Mon Sep 17 00:00:00 2001 -From: Igor Gnatenko -Date: Sun, 20 Mar 2016 13:26:25 +0100 -Subject: [PATCH 1/4] llvm SONAME without version - -Signed-off-by: Igor Gnatenko ---- - configure.ac | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/configure.ac b/configure.ac -index 5f75c60..d77f907 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -2645,7 +2645,7 @@ - dnl ourselves. - dnl (See https://llvm.org/bugs/show_bug.cgi?id=6823) - dnl We can't use $LLVM_VERSION because it has 'svn' stripped out, -- LLVM_SO_NAME=LLVM-`$LLVM_CONFIG --version` -+ LLVM_SO_NAME=LLVM - AS_IF([test -f "$LLVM_LIBDIR/lib$LLVM_SO_NAME.$IMP_LIB_EXT"], [llvm_have_one_so=yes]) - - if test "x$llvm_have_one_so" = xyes; then --- -2.7.4 - diff --git a/0004-bigendian-assert.patch b/0004-bigendian-assert.patch deleted file mode 100644 index 8de9975..0000000 --- a/0004-bigendian-assert.patch +++ /dev/null @@ -1,27 +0,0 @@ -From 6ccae713acc457d7df6ab15e124a7d77c5093213 Mon Sep 17 00:00:00 2001 -From: Igor Gnatenko -Date: Sun, 20 Mar 2016 13:28:07 +0100 -Subject: [PATCH 4/4] bigendian assert - -Signed-off-by: Igor Gnatenko ---- - src/gallium/auxiliary/util/u_math.h | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h -index ecb1d63..90ada14 100644 ---- a/src/gallium/auxiliary/util/u_math.h -+++ b/src/gallium/auxiliary/util/u_math.h -@@ -59,6 +59,9 @@ - extern "C" { - #endif - -+#ifdef PIPE_ARCH_BIG_ENDIAN -+#include -+#endif - - #ifndef M_SQRT2 - #define M_SQRT2 1.41421356237309504880 --- -2.7.4 - diff --git a/Makefile b/Makefile index 143c7d5..a2d9817 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION ?= 18.2.8 +VERSION ?= 18.3.1 SANITIZE ?= 1 DIRNAME = mesa-${VERSION} diff --git a/glvnd-fix-gl-dot-pc.patch b/glvnd-fix-gl-dot-pc.patch deleted file mode 100644 index 68118f4..0000000 --- a/glvnd-fix-gl-dot-pc.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up mesa-12.0.3/src/mesa/gl.pc.in.jx mesa-12.0.3/src/mesa/gl.pc.in ---- mesa-12.0.3/src/mesa/gl.pc.in.jx 2016-01-18 02:39:26.000000000 -0500 -+++ mesa-12.0.3/src/mesa/gl.pc.in 2016-10-25 13:06:44.013159358 -0400 -@@ -7,7 +7,7 @@ Name: gl - Description: Mesa OpenGL library - Requires.private: @GL_PC_REQ_PRIV@ - Version: @PACKAGE_VERSION@ --Libs: -L${libdir} -l@GL_LIB@ -+Libs: -L${libdir} -lGL - Libs.private: @GL_PC_LIB_PRIV@ - Cflags: -I${includedir} @GL_PC_CFLAGS@ - glx_tls: @GLX_TLS@ diff --git a/mesa.spec b/mesa.spec index ec257bd..a63a26d 100644 --- a/mesa.spec +++ b/mesa.spec @@ -1,47 +1,53 @@ -# https://bugzilla.redhat.com/show_bug.cgi?id=1546714 -%undefine _annotated_build - -%ifarch s390x -%define with_hardware 0 -%define base_drivers swrast -%else -%define with_hardware 1 -%define with_vdpau 1 -%define with_vaapi 1 -%define with_nine 1 -%define with_omx 1 -%define with_opencl 1 -%define base_drivers swrast,nouveau,radeon,r200 +%ifnarch s390x +%global with_hardware 1 +%global with_vdpau 1 +%global with_vaapi 1 +%global with_nine 1 +%global with_omx 1 +%global with_opencl 1 +%global base_drivers nouveau,r100,r200 %endif %ifarch %{ix86} x86_64 -%define platform_drivers ,i915,i965 -%define with_vmware 1 -%define with_xa 1 -%define vulkan_drivers --with-vulkan-drivers=intel,radeon +%global platform_drivers ,i915,i965 +%global with_vmware 1 +%global with_xa 1 +%global vulkan_drivers intel,amd %else -%define vulkan_drivers --with-vulkan-drivers=radeon +%ifnarch s390x +%global vulkan_drivers amd +%endif %endif %ifarch %{arm} aarch64 -%define with_etnaviv 1 -%define with_freedreno 1 -%define with_tegra 1 -%define with_vc4 1 -%define with_xa 1 +%global with_etnaviv 1 +%global with_freedreno 1 +%global with_tegra 1 +%global with_vc4 1 +%global with_xa 1 %endif %ifnarch %{arm} s390x -%define with_radeonsi 1 +%global with_radeonsi 1 %endif -%define dri_drivers --with-dri-drivers=%{?base_drivers}%{?platform_drivers} +%ifnarch %{x86} +%global with_asm 1 +%endif + +%ifarch %{valgrind_arches} +%bcond_without valgrind +%else +%bcond_with valgrind +%endif + +%global dri_drivers %{?base_drivers}%{?platform_drivers} %global sanitize 0 Name: mesa Summary: Mesa graphics libraries -%global ver 18.2.8 +%global ver 18.3.2 Version: %{lua:ver = string.gsub(rpm.expand("%{ver}"), "-", "~"); print(ver)} Release: 1%{?dist} License: MIT @@ -57,9 +63,7 @@ Source3: Makefile # Fedora opts to ignore the optional part of clause 2 and treat that code as 2 clause BSD. Source4: Mesa-MLAA-License-Clarification-Email.txt -Patch1: 0001-llvm-SONAME-without-version.patch Patch3: 0003-evergreen-big-endian.patch -Patch4: 0004-bigendian-assert.patch # Disable rgb10 configs by default: # https://bugzilla.redhat.com/show_bug.cgi?id=1560481 @@ -69,66 +73,80 @@ Patch7: 0001-gallium-Disable-rgb10-configs-by-default.patch # https://bugzilla.redhat.com/show_bug.cgi?id=1650929 Patch10: 0001-wayland-egl-Ensure-EGL-surface-is-resized-on-DRI-upd.patch +BuildRequires: meson >= 0.45 BuildRequires: gcc BuildRequires: gcc-c++ -BuildRequires: automake -BuildRequires: autoconf -BuildRequires: libtool +BuildRequires: gettext -%if %{with_hardware} +%if 0%{?with_hardware} BuildRequires: kernel-headers %endif -BuildRequires: libdrm-devel >= 2.4.42 -BuildRequires: libXxf86vm-devel -BuildRequires: expat-devel -BuildRequires: xorg-x11-proto-devel -BuildRequires: makedepend -BuildRequires: libselinux-devel -BuildRequires: pkgconfig(xrandr) -BuildRequires: libXext-devel -BuildRequires: libXfixes-devel -BuildRequires: libXdamage-devel -BuildRequires: libXi-devel -BuildRequires: libXmu-devel -BuildRequires: libxshmfence-devel -BuildRequires: elfutils -BuildRequires: python3 -BuildRequires: python2 -BuildRequires: gettext -BuildRequires: llvm-devel >= 3.4-7 -%if 0%{?with_opencl} -BuildRequires: clang-devel >= 3.0 +%ifarch %{ix86} x86_64 +BuildRequires: pkgconfig(libdrm_intel) >= 2.4.75 %endif -BuildRequires: elfutils-libelf-devel -BuildRequires: python3-libxml2 -BuildRequires: python2-libxml2 -BuildRequires: libudev-devel -BuildRequires: bison flex -BuildRequires: pkgconfig(wayland-client) -BuildRequires: pkgconfig(wayland-server) -BuildRequires: pkgconfig(wayland-protocols) +%if 0%{?with_radeonsi} +BuildRequires: pkgconfig(libdrm_amdgpu) >= 2.4.95 +%endif +BuildRequires: pkgconfig(libdrm_radeon) >= 2.4.71 +BuildRequires: pkgconfig(libdrm_nouveau) >= 2.4.66 +%if 0%{?with_etnaviv} +BuildRequires: pkgconfig(libdrm_etnaviv) >= 2.4.89 +%endif +%if 0%{?with_vc4} +BuildRequires: pkgconfig(libdrm) >= 2.4.89 +%endif +BuildRequires: pkgconfig(expat) +BuildRequires: pkgconfig(zlib) >= 1.2.3 +BuildRequires: pkgconfig(libselinux) +BuildRequires: pkgconfig(wayland-scanner) +BuildRequires: pkgconfig(wayland-protocols) >= 1.8 +BuildRequires: pkgconfig(wayland-client) >= 1.11 +BuildRequires: pkgconfig(wayland-server) >= 1.11 +BuildRequires: pkgconfig(wayland-egl-backend) >= 3 +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(xext) +BuildRequires: pkgconfig(xdamage) >= 1.1 +BuildRequires: pkgconfig(xfixes) +BuildRequires: pkgconfig(xcb-glx) >= 1.8.1 +BuildRequires: pkgconfig(xxf86vm) +BuildRequires: pkgconfig(xcb) +BuildRequires: pkgconfig(x11-xcb) +BuildRequires: pkgconfig(xcb-dri2) >= 1.8 +BuildRequires: pkgconfig(xcb-dri3) +BuildRequires: pkgconfig(xcb-present) +BuildRequires: pkgconfig(xcb-sync) +BuildRequires: pkgconfig(xshmfence) >= 1.1 +BuildRequires: pkgconfig(dri2proto) >= 2.8 +BuildRequires: pkgconfig(glproto) >= 1.4.14 +BuildRequires: pkgconfig(xcb-xfixes) +BuildRequires: pkgconfig(xcb-randr) >= 1.12 +BuildRequires: pkgconfig(xrandr) >= 1.3 +BuildRequires: bison +BuildRequires: flex %if 0%{?with_vdpau} -BuildRequires: libvdpau-devel +BuildRequires: pkgconfig(vdpau) >= 1.1 %endif %if 0%{?with_vaapi} -BuildRequires: libva-devel >= 0.39.0 +BuildRequires: pkgconfig(libva) >= 0.38.0 %endif -BuildRequires: pkgconfig(zlib) %if 0%{?with_omx} -BuildRequires: libomxil-bellagio-devel +BuildRequires: pkgconfig(libomxil-bellagio) %endif +BuildRequires: pkgconfig(libelf) +BuildRequires: pkgconfig(libglvnd) >= 0.2.0 +BuildRequires: llvm-devel >= 6.0.0 %if 0%{?with_opencl} -BuildRequires: libclc-devel opencl-filesystem +BuildRequires: clang-devel +BuildRequires: pkgconfig(libclc) %endif +%if %{with valgrind} +BuildRequires: pkgconfig(valgrind) +%endif +BuildRequires: python3-devel +BuildRequires: python3-mako %if 0%{?with_hardware} -BuildRequires: vulkan-devel +BuildRequires: vulkan-devel %endif -BuildRequires: python3-mako -BuildRequires: python2-mako -%ifarch %{valgrind_arches} -BuildRequires: pkgconfig(valgrind) -%endif -BuildRequires: pkgconfig(libglvnd) >= 0.2.0 %description %{summary}. @@ -356,78 +374,57 @@ cp %{SOURCE4} docs/ cmp %{SOURCE1} src/gallium/auxiliary/vl/vl_decoder.c cmp %{SOURCE2} src/gallium/auxiliary/vl/vl_mpeg12_decoder.c %endif -autoreconf -vfi -%ifarch %{ix86} -%global asm_flags --disable-asm -%endif - -%configure \ - %{?asm_flags} \ - --enable-libglvnd \ - --enable-selinux \ - --enable-gallium-osmesa \ - --with-dri-driverdir=%{_libdir}/dri \ - --enable-egl \ - --disable-gles1 \ - --enable-gles2 \ - --disable-xvmc \ - %{?with_vdpau:--enable-vdpau} \ - %{?with_vaapi:--enable-va} \ - --with-platforms=x11,drm,surfaceless,wayland \ - --enable-shared-glapi \ - --enable-gbm \ - %{?with_omx:--enable-omx-bellagio} \ - %{?with_opencl:--enable-opencl --enable-opencl-icd} %{!?with_opencl:--disable-opencl} \ - --enable-glx-tls \ - --enable-texture-float=yes \ +%meson -Dcpp_std=gnu++11 \ + -Dplatforms=x11,wayland,drm,surfaceless \ + -Ddri3=true \ + -Ddri-drivers=%{?dri_drivers} \ %if 0%{?with_hardware} - %{?vulkan_drivers} \ -%endif - --enable-llvm \ - --enable-llvm-shared-libs \ - --enable-dri \ -%if %{with_hardware} - %{?with_xa:--enable-xa} \ - %{?with_nine:--enable-nine} \ - --with-gallium-drivers=%{?with_vmware:svga,}%{?with_radeonsi:radeonsi,r600,}swrast,%{?with_freedreno:freedreno,}%{?with_etnaviv:etnaviv,imx,}%{?with_tegra:tegra,}%{?with_vc4:vc4,}virgl,r300,nouveau \ + -Dgallium-drivers=swrast,virgl,r300,nouveau%{?with_vmware:,svga}%{?with_radeonsi:,radeonsi,r600}%{?with_freedreno:,freedreno}%{?with_etnaviv:,etnaviv,imx}%{?with_tegra:,tegra}%{?with_vc4:,vc4} \ %else - --with-gallium-drivers=swrast,virgl \ + -Dgallium-drivers=swrast,virgl \ %endif - %{?dri_drivers} - -%make_build MKDEP=/bin/true V=1 + -Dgallium-vdpau=%{?with_vdpau:true}%{!?with_vdpau:false} \ + -Dgallium-xvmc=false \ + -Dgallium-omx=%{?with_omx:bellagio}%{!?with_omx:disabled} \ + -Dgallium-va=%{?with_vaapi:true}%{!?with_vaapi:false} \ + -Dgallium-xa=%{?with_xa:true}%{!?with_xa:false} \ + -Dgallium-nine=%{?with_nine:true}%{!?with_nine:false} \ + -Dgallium-opencl=%{?with_opencl:icd}%{!?with_opencl:disabled} \ + -Dvulkan-drivers=%{?vulkan_drivers} \ + -Dshared-glapi=true \ + -Dgles1=false \ + -Dgles2=true \ + -Dopengl=true \ + -Dgbm=true \ + -Dglx=dri \ + -Degl=true \ + -Dglvnd=true \ + -Dasm=%{?with_asm:true}%{!?with_asm:false} \ + -Dllvm=true \ + -Dshared-llvm=true \ + -Dvalgrind=%{?with_valgrind:true}%{!?with_valgrind:false} \ + -Dbuild-tests=false \ + -Dselinux=true \ + -Dosmesa=gallium \ + %{nil} +%meson_build %install -%make_install - -%if !%{with_hardware} -rm -f %{buildroot}%{_sysconfdir}/drirc -%endif +%meson_install # libvdpau opens the versioned name, don't bother including the unversioned -rm -f %{buildroot}%{_libdir}/vdpau/*.so +rm -vf %{buildroot}%{_libdir}/vdpau/*.so # likewise glvnd -rm -f %{buildroot}%{_libdir}/libGLX_mesa.so -rm -f %{buildroot}%{_libdir}/libEGL_mesa.so +rm -vf %{buildroot}%{_libdir}/libGLX_mesa.so +rm -vf %{buildroot}%{_libdir}/libEGL_mesa.so # XXX can we just not build this -rm -f %{buildroot}%{_libdir}/libGLES* +rm -vf %{buildroot}%{_libdir}/libGLES* # glvnd needs a default provider for indirect rendering where it cannot # determine the vendor ln -s %{_libdir}/libGLX_mesa.so.0 %{buildroot}%{_libdir}/libGLX_system.so.0 -# strip out useless headers -rm -f %{buildroot}%{_includedir}/GL/w*.h - -# these are shipped already in vulkan-devel -mkdir -p %{buildroot}/%{_includedir}/vulkan/ -rm -f %{buildroot}/%{_includedir}/vulkan/vk_platform.h -rm -f %{buildroot}/%{_includedir}/vulkan/vulkan.h - -# remove .la files -find %{buildroot} -name '*.la' -delete - # this keeps breaking, check it early. note that the exit from eu-ftr is odd. pushd %{buildroot}%{_libdir} for i in libOSMesa*.so libGL.so ; do @@ -438,7 +435,7 @@ popd %files filesystem %doc docs/Mesa-MLAA-License-Clarification-Email.txt %dir %{_libdir}/dri -%if %{with_hardware} +%if 0%{?with_hardware} %if 0%{?with_vdpau} %dir %{_libdir}/vdpau %endif @@ -518,13 +515,13 @@ popd %if 0%{?with_xa} %ldconfig_scriptlets libxatracker %files libxatracker -%if %{with_hardware} +%if 0%{?with_hardware} %{_libdir}/libxatracker.so.2 %{_libdir}/libxatracker.so.2.* %endif %files libxatracker-devel -%if %{with_hardware} +%if 0%{?with_hardware} %{_libdir}/libxatracker.so %{_includedir}/xa_tracker.h %{_includedir}/xa_composite.h @@ -554,8 +551,9 @@ popd %endif %files dri-drivers -%if %{with_hardware} -%config(noreplace) %{_sysconfdir}/drirc +%dir %{_datadir}/drirc.d +%{_datadir}/drirc.d/00-mesa-defaults.conf +%if 0%{?with_hardware} %{_libdir}/dri/radeon_dri.so %{_libdir}/dri/r200_dri.so %{_libdir}/dri/nouveau_vieux_dri.so @@ -600,7 +598,7 @@ popd %{_libdir}/dri/swrast_dri.so %{_libdir}/dri/virtio_gpu_dri.so -%if %{with_hardware} +%if 0%{?with_hardware} %if 0%{?with_omx} %files omx-drivers %{_libdir}/bellagio/libomx_mesa.so @@ -613,9 +611,6 @@ popd %{_libdir}/vdpau/libvdpau_r600.so.1* %{_libdir}/vdpau/libvdpau_radeonsi.so.1* %endif -%if 0%{?with_tegra} -%{_libdir}/vdpau/libvdpau_tegra.so.1* -%endif %endif %endif @@ -630,9 +625,16 @@ popd %endif %files vulkan-devel -%{_includedir}/vulkan/ +%if 0%{?with_hardware} +%ifarch %{ix86} x86_64 +%{_includedir}/vulkan/vulkan_intel.h +%endif +%endif %changelog +* Thu Jan 17 2019 Adam Jackson - 18.3.2-1 +- Update to 18.3.2 + * Fri Dec 28 2018 Pete Walter - 18.2.8-1 - Update to 18.2.8 diff --git a/sources b/sources index 4deb193..6513452 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (mesa-18.2.8.tar.xz) = 8574521b5b5e22423f7de1f45807b9fa4d5e25cddaf649f0597de00ebf47a677e6ffb0bb6d159937ea0d9e4ff4feacf924bf8034ff2d385e5e21e8c74fec2a8c +SHA512 (mesa-18.3.2.tar.xz) = fb128a089817cf94c9fbb7a73fc7fe97e2920d8cbfd9e395917d01323f8e943962f26814d28d9ba66728155dc67f9edca9347096c79772217ffa7764fe06104b