cleanups
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
This commit is contained in:
parent
31bab3a45a
commit
00388296b4
26
0001-llvm-SONAME-without-version.patch
Normal file
26
0001-llvm-SONAME-without-version.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
From d4ddf13509e47cb92aa192283b51517e2ac5ba40 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
||||||
|
Date: Sun, 20 Mar 2016 13:26:25 +0100
|
||||||
|
Subject: [PATCH 1/4] llvm SONAME without version
|
||||||
|
|
||||||
|
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
||||||
|
---
|
||||||
|
configure.ac | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index ffd51db..99f94b2 100644
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -2331,7 +2331,7 @@ if test "x$MESA_LLVM" != x0; then
|
||||||
|
dnl (See https://llvm.org/bugs/show_bug.cgi?id=6823)
|
||||||
|
if test "x$enable_llvm_shared_libs" = xyes; then
|
||||||
|
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
|
||||||
|
|
@ -1,8 +1,19 @@
|
|||||||
|
From e0c9dfde64eae9d2faea55ff2d1868ffa750664d Mon Sep 17 00:00:00 2001
|
||||||
|
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
||||||
|
Date: Sun, 20 Mar 2016 13:27:04 +0100
|
||||||
|
Subject: [PATCH 2/4] hardware gloat
|
||||||
|
|
||||||
|
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
||||||
|
---
|
||||||
|
src/gallium/drivers/llvmpipe/lp_screen.c | 7 +++++++
|
||||||
|
src/gallium/drivers/softpipe/sp_screen.c | 7 +++++++
|
||||||
|
2 files changed, 14 insertions(+)
|
||||||
|
|
||||||
diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c
|
diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c
|
||||||
index 5ec1df6..a0406fc 100644
|
index 2529b54..5b86dee 100644
|
||||||
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
|
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
|
||||||
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
|
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
|
||||||
@@ -306,6 +306,13 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
|
@@ -409,6 +409,13 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
|
||||||
if (!format_desc)
|
if (!format_desc)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
@ -17,10 +28,10 @@ index 5ec1df6..a0406fc 100644
|
|||||||
target == PIPE_TEXTURE_1D ||
|
target == PIPE_TEXTURE_1D ||
|
||||||
target == PIPE_TEXTURE_1D_ARRAY ||
|
target == PIPE_TEXTURE_1D_ARRAY ||
|
||||||
diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c
|
diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c
|
||||||
index 937035e..2f5e571 100644
|
index bfd3598..63e6c9f 100644
|
||||||
--- a/src/gallium/drivers/softpipe/sp_screen.c
|
--- a/src/gallium/drivers/softpipe/sp_screen.c
|
||||||
+++ b/src/gallium/drivers/softpipe/sp_screen.c
|
+++ b/src/gallium/drivers/softpipe/sp_screen.c
|
||||||
@@ -291,6 +291,13 @@ softpipe_is_format_supported( struct pipe_screen *screen,
|
@@ -352,6 +352,13 @@ softpipe_is_format_supported( struct pipe_screen *screen,
|
||||||
if (!format_desc)
|
if (!format_desc)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
@ -34,3 +45,6 @@ index 937035e..2f5e571 100644
|
|||||||
if (sample_count > 1)
|
if (sample_count > 1)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
--
|
||||||
|
2.7.4
|
||||||
|
|
26
0003-evergreen-big-endian.patch
Normal file
26
0003-evergreen-big-endian.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
From 3235442c3b2b7a472fd8aed08131f507f7b94d20 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
||||||
|
Date: Sun, 20 Mar 2016 13:27:45 +0100
|
||||||
|
Subject: [PATCH 3/4] evergreen big endian
|
||||||
|
|
||||||
|
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
||||||
|
---
|
||||||
|
src/gallium/drivers/r600/r600_state_common.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/gallium/drivers/r600/r600_state_common.c b/src/gallium/drivers/r600/r600_state_common.c
|
||||||
|
index df41d3f..856b276 100644
|
||||||
|
--- a/src/gallium/drivers/r600/r600_state_common.c
|
||||||
|
+++ b/src/gallium/drivers/r600/r600_state_common.c
|
||||||
|
@@ -2726,7 +2726,7 @@ uint32_t r600_translate_colorformat(enum chip_class chip, enum pipe_format forma
|
||||||
|
|
||||||
|
uint32_t r600_colorformat_endian_swap(uint32_t colorformat)
|
||||||
|
{
|
||||||
|
- if (R600_BIG_ENDIAN) {
|
||||||
|
+ if (0 && R600_BIG_ENDIAN) {
|
||||||
|
switch(colorformat) {
|
||||||
|
/* 8-bit buffers. */
|
||||||
|
case V_0280A0_COLOR_4_4:
|
||||||
|
--
|
||||||
|
2.7.4
|
||||||
|
|
27
0004-bigendian-assert.patch
Normal file
27
0004-bigendian-assert.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
From 6f7af73d73cead0bf4e29d4f91ad2885bdf879cb Mon Sep 17 00:00:00 2001
|
||||||
|
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
||||||
|
Date: Sun, 20 Mar 2016 13:28:07 +0100
|
||||||
|
Subject: [PATCH 4/4] bigendian assert
|
||||||
|
|
||||||
|
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
||||||
|
---
|
||||||
|
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 e92f83a..e403d49 100644
|
||||||
|
--- a/src/gallium/auxiliary/util/u_math.h
|
||||||
|
+++ b/src/gallium/auxiliary/util/u_math.h
|
||||||
|
@@ -55,6 +55,9 @@
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#ifdef PIPE_ARCH_BIG_ENDIAN
|
||||||
|
+#include <assert.h>
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
#ifndef M_SQRT2
|
||||||
|
#define M_SQRT2 1.41421356237309504880
|
||||||
|
--
|
||||||
|
2.7.4
|
||||||
|
|
30
Makefile
30
Makefile
@ -1,30 +0,0 @@
|
|||||||
COMMIT ?=
|
|
||||||
BRANCH ?=
|
|
||||||
SANITIZE ?= 1
|
|
||||||
|
|
||||||
ifeq ($(strip $(COMMIT)),)
|
|
||||||
COMMIT = `date +%Y%m%d`
|
|
||||||
BRANCH = 11.2
|
|
||||||
else
|
|
||||||
BRANCH = master
|
|
||||||
endif
|
|
||||||
DIRNAME = mesa-${COMMIT}
|
|
||||||
|
|
||||||
all: archive
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -rf $(DIRNAME)/
|
|
||||||
|
|
||||||
clone: clean
|
|
||||||
git clone --depth 1 --branch $(BRANCH) \
|
|
||||||
git://git.freedesktop.org/git/mesa/mesa $(DIRNAME)
|
|
||||||
|
|
||||||
sanitize: clone vl_mpeg12_decoder.c vl_decoder.c
|
|
||||||
ifdef SANITIZE
|
|
||||||
cat < vl_mpeg12_decoder.c > $(DIRNAME)/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c
|
|
||||||
cat < vl_decoder.c > $(DIRNAME)/src/gallium/auxiliary/vl/vl_decoder.c
|
|
||||||
endif
|
|
||||||
|
|
||||||
archive: clone sanitize
|
|
||||||
tar -cvf ${DIRNAME}.tar.xz ${DIRNAME}
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
# usage: make-release-tarball.sh [version]
|
|
||||||
|
|
||||||
curl -O ftp://ftp.freedesktop.org/pub/mesa/$1/mesa-$1.tar.xz
|
|
@ -1,13 +0,0 @@
|
|||||||
diff --git a/src/gallium/drivers/r600/r600_state_common.c b/src/gallium/drivers/r600/r600_state_common.c
|
|
||||||
index fabc52c..c276016 100644
|
|
||||||
--- a/src/gallium/drivers/r600/r600_state_common.c
|
|
||||||
+++ b/src/gallium/drivers/r600/r600_state_common.c
|
|
||||||
@@ -2258,7 +2258,7 @@ uint32_t r600_translate_colorformat(enum chip_class chip, enum pipe_format forma
|
|
||||||
|
|
||||||
uint32_t r600_colorformat_endian_swap(uint32_t colorformat)
|
|
||||||
{
|
|
||||||
- if (R600_BIG_ENDIAN) {
|
|
||||||
+ if (0 && R600_BIG_ENDIAN) {
|
|
||||||
switch(colorformat) {
|
|
||||||
/* 8-bit buffers. */
|
|
||||||
case V_0280A0_COLOR_4_4:
|
|
@ -1,13 +0,0 @@
|
|||||||
diff -up mesa-20140824/src/gallium/auxiliary/util/u_math.h.be mesa-20140824/src/gallium/auxiliary/util/u_math.h
|
|
||||||
--- mesa-20140824/src/gallium/auxiliary/util/u_math.h.be 2014-08-28 15:30:32.560480333 +0200
|
|
||||||
+++ mesa-20140824/src/gallium/auxiliary/util/u_math.h 2014-08-28 15:30:56.275479755 +0200
|
|
||||||
@@ -55,6 +55,9 @@ extern "C" {
|
|
||||||
#include <strings.h> /* for ffs */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
+#ifdef PIPE_ARCH_BIG_ENDIAN
|
|
||||||
+#include <assert.h>
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
#ifndef M_SQRT2
|
|
||||||
#define M_SQRT2 1.41421356237309504880
|
|
337
mesa.spec
337
mesa.spec
@ -35,6 +35,9 @@
|
|||||||
%define with_vmware 1
|
%define with_vmware 1
|
||||||
%define with_xa 1
|
%define with_xa 1
|
||||||
%define with_omx 1
|
%define with_omx 1
|
||||||
|
# XXX: broken for now
|
||||||
|
# https://lists.freedesktop.org/archives/mesa-dev/2016-March/110446.html
|
||||||
|
#%global with_swr 1
|
||||||
%endif
|
%endif
|
||||||
%ifarch aarch64 %{ix86} x86_64
|
%ifarch aarch64 %{ix86} x86_64
|
||||||
%define with_opencl 1
|
%define with_opencl 1
|
||||||
@ -48,34 +51,39 @@
|
|||||||
|
|
||||||
%define dri_drivers --with-dri-drivers=%{?base_drivers}%{?platform_drivers}
|
%define dri_drivers --with-dri-drivers=%{?base_drivers}%{?platform_drivers}
|
||||||
|
|
||||||
%define _default_patch_fuzz 2
|
%global sanitize 1
|
||||||
|
|
||||||
%define gitdate 20160320
|
%global commit ea2bff1d115ef00aaa06797fffd4334f6a50570f
|
||||||
#% define githash 24ea81a
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||||
%define git %{?githash:%{githash}}%{!?githash:%{gitdate}}
|
|
||||||
|
|
||||||
Summary: Mesa graphics libraries
|
Summary: Mesa graphics libraries
|
||||||
Name: mesa
|
Name: mesa
|
||||||
Version: 11.2.0
|
Version: 11.3.0
|
||||||
Release: 0.1.rc3.%{git}%{?dist}
|
Release: 0.1.git%{shortcommit}%{?dist}
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: System Environment/Libraries
|
|
||||||
URL: http://www.mesa3d.org
|
URL: http://www.mesa3d.org
|
||||||
|
|
||||||
Source0: %{name}-%{git}.tar.xz
|
# For latest commit:
|
||||||
Source1: Makefile
|
# git clone --depth 1 git://anongit.freedesktop.org/mesa/mesa mesa-%%{shortcommit}
|
||||||
Source2: vl_decoder.c
|
# Otherwise:
|
||||||
Source3: vl_mpeg12_decoder.c
|
# git clone git://anongit.freedesktop.org/mesa/mesa mesa-%%{shortcommit}
|
||||||
|
# cd mesa-%%{shortcommit}; git reset --hard %%{shortcommit}; cd ..
|
||||||
|
#
|
||||||
|
# Create archive:
|
||||||
|
# tar -cvf mesa-%%{shortcommit}.tar.xz mesa-%%{shortcommit}
|
||||||
|
Source0: %{name}-%{shortcommit}.tar.xz
|
||||||
|
Source1: vl_decoder.c
|
||||||
|
Source2: vl_mpeg12_decoder.c
|
||||||
|
|
||||||
# src/gallium/auxiliary/postprocess/pp_mlaa* have an ... interestingly worded license.
|
# src/gallium/auxiliary/postprocess/pp_mlaa* have an ... interestingly worded license.
|
||||||
# Source4 contains email correspondence clarifying the license terms.
|
# Source4 contains email correspondence clarifying the license terms.
|
||||||
# Fedora opts to ignore the optional part of clause 2 and treat that code as 2 clause BSD.
|
# 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
|
Source3: Mesa-MLAA-License-Clarification-Email.txt
|
||||||
|
|
||||||
Patch10: mhack.patch
|
Patch1: 0001-llvm-SONAME-without-version.patch
|
||||||
Patch15: mesa-9.2-hardware-float.patch
|
Patch2: 0002-hardware-gloat.patch
|
||||||
Patch20: mesa-10.2-evergreen-big-endian.patch
|
Patch3: 0003-evergreen-big-endian.patch
|
||||||
Patch30: mesa-10.3-bigendian-assert.patch
|
Patch4: 0004-bigendian-assert.patch
|
||||||
|
|
||||||
# To have sha info in glxinfo
|
# To have sha info in glxinfo
|
||||||
BuildRequires: git-core
|
BuildRequires: git-core
|
||||||
@ -344,33 +352,29 @@ Mesa Direct3D9 state tracker development package
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
#setup -q -n Mesa-%{version}%{?snapshot}
|
%autosetup -n mesa-%{shortcommit} -p1
|
||||||
%setup -q -n mesa-%{git}
|
%if 0%{sanitize}
|
||||||
grep -q ^/ src/gallium/auxiliary/vl/vl_decoder.c && exit 1
|
cp -f %{SOURCE1} src/gallium/auxiliary/vl/vl_decoder.c
|
||||||
|
cp -f %{SOURCE2} src/gallium/auxiliary/vl/vl_mpeg12_decoder.c
|
||||||
%patch10 -p1 -b .mhack
|
%endif
|
||||||
%patch15 -p1 -b .hwfloat
|
|
||||||
%patch20 -p1 -b .egbe
|
|
||||||
%patch30 -p1 -b .beassert
|
|
||||||
|
|
||||||
%if 0%{with_private_llvm}
|
%if 0%{with_private_llvm}
|
||||||
sed -i 's/llvm-config/mesa-private-llvm-config-%{__isa_bits}/g' configure.ac
|
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
|
||||||
|
|
||||||
cp %{SOURCE4} docs/
|
cp %{SOURCE3} docs/
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
autoreconf -vfi
|
||||||
|
|
||||||
autoreconf --install
|
export CFLAGS="%{optflags}"
|
||||||
|
|
||||||
export CFLAGS="$RPM_OPT_FLAGS"
|
|
||||||
# C++ note: we never say "catch" in the source. we do say "typeid" once,
|
# C++ note: we never say "catch" in the source. we do say "typeid" once,
|
||||||
# in an assert, which is patched out above. LLVM doesn't use RTTI or throw.
|
# in an assert, which is patched out above. LLVM doesn't use RTTI or throw.
|
||||||
#
|
#
|
||||||
# We do say 'catch' in the clover and d3d1x state trackers, but we're not
|
# We do say 'catch' in the clover and d3d1x state trackers, but we're not
|
||||||
# building those yet.
|
# building those yet.
|
||||||
export CXXFLAGS="$RPM_OPT_FLAGS %{?with_opencl:-frtti -fexceptions} %{!?with_opencl:-fno-rtti -fno-exceptions}"
|
export CXXFLAGS="%{optflags} %{?with_opencl:-frtti -fexceptions} %{!?with_opencl:-fno-rtti -fno-exceptions}"
|
||||||
export LDFLAGS="%{__global_ldflags} -static-libstdc++"
|
export LDFLAGS="%{__global_ldflags} -static-libstdc++"
|
||||||
%ifarch %{ix86}
|
%ifarch %{ix86}
|
||||||
# i do not have words for how much the assembly dispatch code infuriates me
|
# i do not have words for how much the assembly dispatch code infuriates me
|
||||||
@ -380,7 +384,7 @@ export LDFLAGS="%{__global_ldflags} -static-libstdc++"
|
|||||||
%configure \
|
%configure \
|
||||||
%{?asm_flags} \
|
%{?asm_flags} \
|
||||||
--enable-selinux \
|
--enable-selinux \
|
||||||
--enable-osmesa \
|
--enable-gallium-osmesa \
|
||||||
--with-dri-driverdir=%{_libdir}/dri \
|
--with-dri-driverdir=%{_libdir}/dri \
|
||||||
--enable-egl \
|
--enable-egl \
|
||||||
--disable-gles1 \
|
--disable-gles1 \
|
||||||
@ -401,12 +405,9 @@ export LDFLAGS="%{__global_ldflags} -static-libstdc++"
|
|||||||
%if %{with_hardware}
|
%if %{with_hardware}
|
||||||
%{?with_xa:--enable-xa} \
|
%{?with_xa:--enable-xa} \
|
||||||
%{?with_nine:--enable-nine} \
|
%{?with_nine:--enable-nine} \
|
||||||
--with-gallium-drivers=%{?with_vmware:svga,}%{?with_radeonsi:radeonsi,}%{?with_llvm:swrast,r600,}%{?with_freedreno:freedreno,}%{?with_vc4:vc4,}%{?with_ilo:ilo,}virgl,r300,nouveau \
|
--with-gallium-drivers=%{?with_vmware:svga,}%{?with_radeonsi:radeonsi,}%{?with_llvm:swrast,r600,}%{?with_freedreno:freedreno,}%{?with_vc4:vc4,}%{?with_ilo:ilo,}%{?with_swr:swr,}virgl,r300,nouveau \
|
||||||
%else
|
%else
|
||||||
--with-gallium-drivers=%{?with_llvm:swrast,}virgl \
|
--with-gallium-drivers=%{?with_llvm:swrast,}virgl \
|
||||||
%endif
|
|
||||||
%if 0%{?fedora} < 21
|
|
||||||
--disable-dri3 \
|
|
||||||
%endif
|
%endif
|
||||||
%{?dri_drivers}
|
%{?dri_drivers}
|
||||||
|
|
||||||
@ -417,33 +418,31 @@ sed -i 's/-nostdlib//g' libtool
|
|||||||
sed -i 's/^predep_objects=.*$/#&/' libtool
|
sed -i 's/^predep_objects=.*$/#&/' libtool
|
||||||
sed -i 's/^postdep_objects=.*$/#&/' libtool
|
sed -i 's/^postdep_objects=.*$/#&/' libtool
|
||||||
sed -i 's/^postdeps=.*$/#&/' libtool
|
sed -i 's/^postdeps=.*$/#&/' libtool
|
||||||
make %{?_smp_mflags} MKDEP=/bin/true V=1
|
%make_build MKDEP=/bin/true V=1
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
%make_install
|
||||||
|
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%if 0%{?rhel}
|
%if 0%{?rhel}
|
||||||
# remove pre-DX9 drivers
|
# remove pre-DX9 drivers
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/dri/{radeon,r200,nouveau_vieux}_dri.*
|
rm -f %{buildroot}%{_libdir}/dri/{radeon,r200,nouveau_vieux}_dri.*
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if !%{with_hardware}
|
%if !%{with_hardware}
|
||||||
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/drirc
|
rm -f %{buildroot}%{_sysconfdir}/drirc
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# libvdpau opens the versioned name, don't bother including the unversioned
|
# libvdpau opens the versioned name, don't bother including the unversioned
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/vdpau/*.so
|
rm -f %{buildroot}%{_libdir}/vdpau/*.so
|
||||||
|
|
||||||
# strip out useless headers
|
# strip out useless headers
|
||||||
rm -f $RPM_BUILD_ROOT%{_includedir}/GL/w*.h
|
rm -f %{buildroot}%{_includedir}/GL/w*.h
|
||||||
|
|
||||||
# remove .la files
|
# remove .la files
|
||||||
find $RPM_BUILD_ROOT -name '*.la' -delete
|
find %{buildroot} -name '*.la' -delete
|
||||||
|
|
||||||
# this keeps breaking, check it early. note that the exit from eu-ftr is odd.
|
# this keeps breaking, check it early. note that the exit from eu-ftr is odd.
|
||||||
pushd $RPM_BUILD_ROOT%{_libdir}
|
pushd %{buildroot}%{_libdir}
|
||||||
for i in libOSMesa*.so libGL.so ; do
|
for i in libOSMesa*.so libGL.so ; do
|
||||||
eu-findtextrel $i && exit 1
|
eu-findtextrel $i && exit 1
|
||||||
done
|
done
|
||||||
@ -451,11 +450,6 @@ done
|
|||||||
eu-readelf -d mesa_dri_drivers.so | grep -q libstdc && exit 1
|
eu-readelf -d mesa_dri_drivers.so | grep -q libstdc && exit 1
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%check
|
|
||||||
|
|
||||||
%post libGL -p /sbin/ldconfig
|
%post libGL -p /sbin/ldconfig
|
||||||
%postun libGL -p /sbin/ldconfig
|
%postun libGL -p /sbin/ldconfig
|
||||||
%post libOSMesa -p /sbin/ldconfig
|
%post libOSMesa -p /sbin/ldconfig
|
||||||
@ -691,6 +685,12 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Mar 20 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 11.3.0-0.1.gitea2bff1
|
||||||
|
- 11.3.0 (gitea2bff1)
|
||||||
|
- Add SWR state-tracker (but disable because build is broken)
|
||||||
|
- Use gallium-osmesa instead of classic osmesa (RHBZ #1305588)
|
||||||
|
- Remove very old changelogs
|
||||||
|
|
||||||
* Sun Mar 20 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 11.2.0-0.1.rc3.20160320
|
* Sun Mar 20 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 11.2.0-0.1.rc3.20160320
|
||||||
- Update to 11.2.0-rc3
|
- Update to 11.2.0-rc3
|
||||||
|
|
||||||
@ -1057,242 +1057,3 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
* 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)
|
||||||
|
|
||||||
* Fri Dec 20 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 9.2.5-1.20131220
|
|
||||||
- 9.2.5 upstream release
|
|
||||||
|
|
||||||
* Fri Dec 13 2013 Dave Airlie <airlied@redhat.com> 9.2.4-2.20131128
|
|
||||||
- backport the GLX_MESA_copy_sub_buffer from upstream for cogl
|
|
||||||
|
|
||||||
* Thu Nov 28 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 9.2.4-1.20131128
|
|
||||||
- 9.2.4 upstream release
|
|
||||||
|
|
||||||
* Thu Nov 14 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 9.2.3-1.20131114
|
|
||||||
- 9.2.3 upstream release
|
|
||||||
|
|
||||||
* Wed Nov 13 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 9.2.2-1.20131113
|
|
||||||
- 9.2.2 upstream release + fixes from git 9.2 branch
|
|
||||||
|
|
||||||
* Thu Sep 19 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 9.2-1.20130919
|
|
||||||
- Today's git snap of 9.2 branch
|
|
||||||
- [NVE4] Fix crashing games when set AA to x2 on GTX760
|
|
||||||
- (freedesktop 68665 rhbz 1001714 1001698 1001740 1004674)
|
|
||||||
|
|
||||||
* Mon Sep 02 2013 Dave Airlie <airlied@redhat.com> 9.2-1.20130902
|
|
||||||
- 9.2 upstream release + fixes from git branch
|
|
||||||
|
|
||||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.2-0.15.20130723
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Jul 23 2013 Adam Jackson <ajax@redhat.com> 9.2-0.14.20130723
|
|
||||||
- Today's git snap of 9.2 branch
|
|
||||||
|
|
||||||
* Sun Jul 14 2013 Kyle McMartin <kyle@redhat.com> 9.2-0.13.20130610
|
|
||||||
- Use LLVM::MCJIT on ARM and AArch64.
|
|
||||||
|
|
||||||
* Mon Jun 17 2013 Adam Jackson <ajax@redhat.com> 9.2-0.12.20130610
|
|
||||||
- Re-enable hardware float support (#975204)
|
|
||||||
|
|
||||||
* Mon Jun 17 2013 Adam Jackson <ajax@redhat.com> 9.2-0.11.20130610
|
|
||||||
- Fix evergreen on big-endian
|
|
||||||
|
|
||||||
* Wed Jun 12 2013 Adam Jackson <ajax@redhat.com> 9.2-0.10.20130610
|
|
||||||
- Fix s390x build
|
|
||||||
- Fold khrplatform-devel in to libEGL-devel
|
|
||||||
|
|
||||||
* Tue Jun 11 2013 Adam Jackson <ajax@redhat.com> 9.2-0.9.20130610
|
|
||||||
- 0001-Revert-i965-Disable-unused-pipeline-stages-once-at-s.patch: Fix some
|
|
||||||
hangs on ivb+
|
|
||||||
|
|
||||||
* Mon Jun 10 2013 Adam Jackson <ajax@redhat.com> 9.2-0.8.20130610
|
|
||||||
- Today's git snap
|
|
||||||
|
|
||||||
* Tue May 28 2013 Adam Jackson <ajax@redhat.com> 9.2-0.7.20130528
|
|
||||||
- Today's git snap
|
|
||||||
|
|
||||||
* Sun May 19 2013 Peter Robinson <pbrobinson@fedoraproject.org> 9.2-0.6.20130514
|
|
||||||
- Update the name of the freedreno driver
|
|
||||||
|
|
||||||
* Fri May 17 2013 Adam Jackson <ajax@redhat.com> 9.2-0.5.20130514
|
|
||||||
- Fix build issues on ppc32
|
|
||||||
|
|
||||||
* Thu May 16 2013 Adam Jackson <ajax@redhat.com> 9.2-0.4.20130514
|
|
||||||
- Fix yet more build issues on s390{,x}
|
|
||||||
|
|
||||||
* Wed May 15 2013 Adam Jackson <ajax@redhat.com> 9.2-0.3.20130514
|
|
||||||
- Fix build ordering issue on s390x
|
|
||||||
|
|
||||||
* Wed May 15 2013 Adam Jackson <ajax@redhat.com> 9.2-0.2.20130514
|
|
||||||
- Fix filesystem for with_hardware == 0
|
|
||||||
|
|
||||||
* Tue May 14 2013 Adam Jackson <ajax@redhat.com> 9.2-0.1.20130514
|
|
||||||
- Today's git snap
|
|
||||||
- Revert to swrast on ppc32 and s390 since llvm doesn't actually work
|
|
||||||
- Build freedreno on arm
|
|
||||||
- Drop snb hang workaround (upstream 1dfea559)
|
|
||||||
- Rename filesystem package
|
|
||||||
|
|
||||||
* Wed May 08 2013 Adam Jackson <ajax@redhat.com> 9.2-0.1.20130508
|
|
||||||
- Switch to Mesa master (pre 9.2)
|
|
||||||
- Fix llvmpipe on big-endian and enable llvmpipe everywhere
|
|
||||||
- Build vdpau drivers for r600/radeonsi/nouveau
|
|
||||||
- Enable hardware floating-point texture support
|
|
||||||
- Drop GLESv1, nothing's using it, let's not start
|
|
||||||
|
|
||||||
* Sat Apr 27 2013 Dave Airlie <airlied@redhat.com> 9.1.1-1
|
|
||||||
- rebase to Mesa 9.1.1 + fixes from git
|
|
||||||
|
|
||||||
* Thu Apr 11 2013 Dave Airlie <airlied@redhat.com> 9.1-6
|
|
||||||
- enable glx tls for glamor to work properly
|
|
||||||
|
|
||||||
* Thu Apr 04 2013 Adam Jackson <ajax@redhat.com> 9.1-5
|
|
||||||
- Enable llvmpipe even on non-SSE2 machines (#909473)
|
|
||||||
|
|
||||||
* Tue Mar 26 2013 Adam Jackson <ajax@redhat.com> 9.1-4
|
|
||||||
- Fix build with private LLVM
|
|
||||||
|
|
||||||
* Tue Mar 19 2013 Adam Jackson <ajax@redhat.com> 9.1-3
|
|
||||||
- mesa-9.1-53-gd0ccb5b.patch: Sync with today's git
|
|
||||||
|
|
||||||
* Tue Mar 19 2013 Dave Airlie <airlied@redhat.com> 9.1-2
|
|
||||||
- add SNB hang workaround from chromium
|
|
||||||
|
|
||||||
* Fri Mar 08 2013 Adam Jackson <ajax@redhat.com> 9.1-1
|
|
||||||
- Mesa 9.1
|
|
||||||
|
|
||||||
* Wed Feb 27 2013 Dan Horák <dan[at]danny.cz> - 9.1-0.4
|
|
||||||
- /etc/drirc is always created, so exclude it on platforms without hw drivers
|
|
||||||
|
|
||||||
* Tue Feb 26 2013 Adam Jackson <ajax@redhat.com> 9.1-0.3
|
|
||||||
- Fix s390*'s swrast to be classic not softpipe
|
|
||||||
|
|
||||||
* Tue Feb 19 2013 Jens Petersen <petersen@redhat.com> - 9.1-0.2
|
|
||||||
- build against llvm-3.2
|
|
||||||
- turn on radeonsi
|
|
||||||
|
|
||||||
* Wed Feb 13 2013 Dave Airlie <airlied@redhat.com> 9.1-0.1
|
|
||||||
- snapshot mesa 9.1 branch
|
|
||||||
|
|
||||||
* Tue Jan 15 2013 Tom Callaway <spot@fedoraproject.org> 9.0.1-4
|
|
||||||
- clarify license on pp_mlaa* files
|
|
||||||
|
|
||||||
* Thu Dec 20 2012 Adam Jackson <ajax@redhat.com> 9.0.1-3
|
|
||||||
- mesa-9.0.1-22-gd0a9ab2.patch: Sync with git
|
|
||||||
- Build with -fno-rtti -fno-exceptions, modest size and speed win
|
|
||||||
- mesa-9.0.1-less-cxx-please.patch: Remove the only use of typeid() so the
|
|
||||||
above works.
|
|
||||||
|
|
||||||
* Wed Dec 05 2012 Adam Jackson <ajax@redhat.com> 9.0.1-2
|
|
||||||
- Allow linking against a private version of LLVM libs for RHEL7
|
|
||||||
- Build with -j again
|
|
||||||
|
|
||||||
* Mon Dec 03 2012 Adam Jackson <ajax@redhat.com> 9.0.1-1
|
|
||||||
- Mesa 9.0.1
|
|
||||||
|
|
||||||
* Wed Nov 07 2012 Dave Airlie <airlied@redhat.com> 9.0-5
|
|
||||||
- mesa-9.0-19-g895a587.patch: sync with 9.0 branch with git
|
|
||||||
- drop wayland patch its in git now.
|
|
||||||
|
|
||||||
* Thu Nov 01 2012 Adam Jackson <ajax@redhat.com> 9.0-4
|
|
||||||
- mesa-9.0-18-g5fe5aa8: sync with 9.0 branch in git
|
|
||||||
- Portability fixes for F17: old wayland, old llvm.
|
|
||||||
|
|
||||||
* Sat Oct 27 2012 Dan Horák <dan[at]danny.cz> 9.0-3
|
|
||||||
- gallium drivers must be set explicitely for s390(x) otherwise also r300, r600 and vmwgfx are built
|
|
||||||
|
|
||||||
* Fri Oct 19 2012 Adam Jackson <ajax@redhat.com> 9.0-2
|
|
||||||
- Rebuild for wayland 0.99
|
|
||||||
|
|
||||||
* Wed Oct 10 2012 Adam Jackson <ajax@redhat.com> 9.0-1
|
|
||||||
- Mesa 9.0
|
|
||||||
- mesa-9.0-12-gd56ee24.patch: sync with 9.0 branch in git
|
|
||||||
|
|
||||||
* Wed Oct 10 2012 Adam Jackson <ajax@redhat.com> 9.0-0.4
|
|
||||||
- Switch to external gl-manpages and libGLU
|
|
||||||
- Drop ShmGetImage fastpath for a bit
|
|
||||||
|
|
||||||
* Mon Oct 01 2012 Dan Horák <dan[at]danny.cz> 9.0-0.3
|
|
||||||
- explicit BR: libGL-devel is required on s390(x), it's probbaly brought in indirectly on x86
|
|
||||||
- gallium drivers must be set explicitely for s390(x) otherwise also r300, r600 and vmwgfx are built
|
|
||||||
|
|
||||||
* Mon Sep 24 2012 Adam Jackson <ajax@redhat.com> 9.0-0.2
|
|
||||||
- Switch to swrast classic instead of softpipe for non-llvm arches
|
|
||||||
- Re-disable llvm on ppc until it can draw pixels
|
|
||||||
|
|
||||||
* Mon Sep 24 2012 Dave Airlie <airlied@redhat.com> 9.0-0.1
|
|
||||||
- rebase to latest upstream 9.0 pre-release branch
|
|
||||||
- add back glu from new upstream (split for f18 later)
|
|
||||||
|
|
||||||
* Fri Sep 14 2012 Dave Airlie <airlied@redhat.com> 8.1-0.21
|
|
||||||
- why fix one yylex when you can fix two
|
|
||||||
|
|
||||||
* Fri Sep 14 2012 Dave Airlie <airlied@redhat.com> 8.1-0.20
|
|
||||||
- fix yylex collision reported on irc by hughsie
|
|
||||||
|
|
||||||
* Mon Aug 27 2012 Adam Jackson <ajax@redhat.com> 8.1-0.19
|
|
||||||
- Today's git snap
|
|
||||||
- Revert dependency on libkms
|
|
||||||
- Patch from Mageia to fix some undefined symbols
|
|
||||||
|
|
||||||
* Fri Aug 17 2012 Dave Airlie <airlied@redhat.com> 8.1-0.18
|
|
||||||
- parallel make seems broken - on 16 way machine internally.
|
|
||||||
|
|
||||||
* Thu Aug 16 2012 Dave Airlie <airlied@redhat.com> 8.1-0.17
|
|
||||||
- upstream snapshot
|
|
||||||
|
|
||||||
* Wed Jul 25 2012 Peter Robinson <pbrobinson@fedoraproject.org> 8.1-0.16
|
|
||||||
- Enable LLVM on ARM
|
|
||||||
|
|
||||||
* Wed Jul 25 2012 Peter Robinson <pbrobinson@fedoraproject.org> 8.1-0.15
|
|
||||||
- Fix building on platforms with HW and without LLVM
|
|
||||||
|
|
||||||
* Tue Jul 24 2012 Adam Jackson <ajax@redhat.com> 8.1-0.14
|
|
||||||
- Re-enable llvm on ppc, being worked on
|
|
||||||
- Don't BuildReq on wayland things in RHEL
|
|
||||||
|
|
||||||
* Mon Jul 23 2012 Adam Jackson <ajax@redhat.com> 8.1-0.13
|
|
||||||
- Build radeonsi (#842194)
|
|
||||||
|
|
||||||
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.1-0.12
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Jul 17 2012 Dave Airlie <airlied@redhat.com> 8.1-0.11
|
|
||||||
- upstream snapshot: fixes build issues
|
|
||||||
|
|
||||||
* Tue Jul 17 2012 Dave Airlie <airlied@redhat.com> 8.1-0.10
|
|
||||||
- snapshot mesa: add some build hackarounds
|
|
||||||
|
|
||||||
* Sat Jul 14 2012 Ville Skyttä <ville.skytta@iki.fi> - 8.1-0.9
|
|
||||||
- Call ldconfig at -libglapi and -libxatracker post(un)install time.
|
|
||||||
- Drop redundant ldconfig dependencies, let rpm auto-add them.
|
|
||||||
|
|
||||||
* Wed Jun 13 2012 Dave Airlie <airlied@redhat.com> 8.1-0.8
|
|
||||||
- enable shared llvm usage.
|
|
||||||
|
|
||||||
* Thu Jun 07 2012 Adam Jackson <ajax@redhat.com> 8.1-0.7
|
|
||||||
- Disable llvm on non-x86 (#829020)
|
|
||||||
|
|
||||||
* Sun Jun 03 2012 Dave Airlie <airlied@redhat.com> 8.1-0.6
|
|
||||||
- rebase to git master + build on top of llvm 3.1
|
|
||||||
|
|
||||||
* Thu May 17 2012 Adam Jackson <ajax@redhat.com> 8.1-0.5
|
|
||||||
- mesa-8.0-llvmpipe-shmget.patch: Rediff for 8.1.
|
|
||||||
|
|
||||||
* Thu May 10 2012 Karsten Hopp <karsten@redhat.com> 8.1-0.4
|
|
||||||
- revert disabling of hardware drivers, disable only llvm on PPC*
|
|
||||||
(#819060)
|
|
||||||
|
|
||||||
* Tue May 01 2012 Adam Jackson <ajax@redhat.com> 8.1-0.3
|
|
||||||
- More RHEL tweaking: no pre-DX7 drivers, no wayland.
|
|
||||||
|
|
||||||
* Thu Apr 26 2012 Karsten Hopp <karsten@redhat.com> 8.1-0.2
|
|
||||||
- move drirc into with_hardware section (Dave Airlie)
|
|
||||||
- libdricore.so and libglsl.so get built and installed on
|
|
||||||
non-hardware archs, include them in the file list
|
|
||||||
|
|
||||||
* Thu Apr 26 2012 Adam Jackson <ajax@redhat.com> 8.1-0.2
|
|
||||||
- Don't build vmware stuff on non-x86 (#815444)
|
|
||||||
|
|
||||||
* Tue Apr 24 2012 Richard Hughes <rhughes@redhat.com> 8.0.3-0.1
|
|
||||||
- Rebuild with new git snapshot
|
|
||||||
- Remove upstreamed patches
|
|
||||||
|
12
mhack.patch
12
mhack.patch
@ -1,12 +0,0 @@
|
|||||||
diff -up mesa-24ea81a/configure.ac.hack mesa-24ea81a/configure.ac
|
|
||||||
--- mesa-24ea81a/configure.ac.hack 2016-02-13 05:41:25.692812401 -0500
|
|
||||||
+++ mesa-24ea81a/configure.ac 2016-02-13 05:41:30.760953027 -0500
|
|
||||||
@@ -2304,7 +2304,7 @@ if test "x$MESA_LLVM" != x0; then
|
|
||||||
dnl (See https://llvm.org/bugs/show_bug.cgi?id=6823)
|
|
||||||
if test "x$enable_llvm_shared_libs" = xyes; then
|
|
||||||
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
|
|
Loading…
Reference in New Issue
Block a user