summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2017-11-08 11:17:13 -0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-11-11 12:14:27 +0000
commit8d8668a3a229d7268ae50812c41696b342623156 (patch)
tree7cd82a4bad28ce927d5aa1f7ba4aefe1c8784022 /meta/recipes-graphics/mesa
parent125e0b72b7b419368761ffbbf38987f91af4523b (diff)
downloadpoky-8d8668a3a229d7268ae50812c41696b342623156.tar.gz
mesa: Upgrade to 17.2.4 release
Upgrade to a new stable release and drop patches applied on upstream. For a full release notes, please see: https://mesa3d.org/relnotes/17.2.0.html https://mesa3d.org/relnotes/17.2.1.html https://mesa3d.org/relnotes/17.2.2.html https://mesa3d.org/relnotes/17.2.3.html https://mesa3d.org/relnotes/17.2.4.html (From OE-Core rev: 77e79af4234ac0e96473d4691fd0f1ca759f3447) Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/mesa')
-rw-r--r--meta/recipes-graphics/mesa/files/0001-ac-fix-build-after-LLVM-5.0-SVN-r300718.patch40
-rw-r--r--meta/recipes-graphics/mesa/files/0002-gallivm-Fix-build-against-LLVM-SVN-r302589.patch49
-rw-r--r--meta/recipes-graphics/mesa/mesa-gl_17.2.4.bb (renamed from meta/recipes-graphics/mesa/mesa-gl_17.1.7.bb)0
-rw-r--r--meta/recipes-graphics/mesa/mesa.inc2
-rw-r--r--meta/recipes-graphics/mesa/mesa_17.2.4.bb (renamed from meta/recipes-graphics/mesa/mesa_17.1.7.bb)7
5 files changed, 4 insertions, 94 deletions
diff --git a/meta/recipes-graphics/mesa/files/0001-ac-fix-build-after-LLVM-5.0-SVN-r300718.patch b/meta/recipes-graphics/mesa/files/0001-ac-fix-build-after-LLVM-5.0-SVN-r300718.patch
deleted file mode 100644
index b27a3bc8e4..0000000000
--- a/meta/recipes-graphics/mesa/files/0001-ac-fix-build-after-LLVM-5.0-SVN-r300718.patch
+++ /dev/null
@@ -1,40 +0,0 @@
1From 9861437e58fdd0de01193a102608d34e5952953f Mon Sep 17 00:00:00 2001
2From: Christoph Haag <haagch+mesadev@frickel.club>
3Date: Thu, 20 Apr 2017 10:34:18 +0200
4Subject: [PATCH 1/2] ac: fix build after LLVM 5.0 SVN r300718
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9v2: previously getWithDereferenceableBytes() exists, but addAttr() doesn't take that type
10
11Signed-off-by: Christoph Haag <haagch+mesadev@frickel.club>
12Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
13Tested-and-reviewed-by: Mike Lothian <mike@fireburn.co.uk>
14---
15Upstream-Status: Backport
16
17 src/amd/common/ac_llvm_helper.cpp | 4 ++++
18 1 file changed, 4 insertions(+)
19
20diff --git a/src/amd/common/ac_llvm_helper.cpp b/src/amd/common/ac_llvm_helper.cpp
21index d9ea4b1..11fa809 100644
22--- a/src/amd/common/ac_llvm_helper.cpp
23+++ b/src/amd/common/ac_llvm_helper.cpp
24@@ -44,9 +44,13 @@ typedef AttributeSet AttributeList;
25 void ac_add_attr_dereferenceable(LLVMValueRef val, uint64_t bytes)
26 {
27 llvm::Argument *A = llvm::unwrap<llvm::Argument>(val);
28+#if HAVE_LLVM < 0x0500
29 llvm::AttrBuilder B;
30 B.addDereferenceableAttr(bytes);
31 A->addAttr(llvm::AttributeList::get(A->getContext(), A->getArgNo() + 1, B));
32+#else
33+ A->addAttr(llvm::Attribute::getWithDereferenceableBytes(A->getContext(), bytes));
34+#endif
35 }
36
37 bool ac_is_sgpr_param(LLVMValueRef arg)
38--
392.13.3
40
diff --git a/meta/recipes-graphics/mesa/files/0002-gallivm-Fix-build-against-LLVM-SVN-r302589.patch b/meta/recipes-graphics/mesa/files/0002-gallivm-Fix-build-against-LLVM-SVN-r302589.patch
deleted file mode 100644
index ac8caec74d..0000000000
--- a/meta/recipes-graphics/mesa/files/0002-gallivm-Fix-build-against-LLVM-SVN-r302589.patch
+++ /dev/null
@@ -1,49 +0,0 @@
1From a02a0dfda2712d30ad62b8f0421ec7b8244ba2cb Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Michel=20D=C3=A4nzer?= <michel.daenzer@amd.com>
3Date: Wed, 10 May 2017 17:26:07 +0900
4Subject: [PATCH 2/2] gallivm: Fix build against LLVM SVN >= r302589
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9deregisterEHFrames doesn't take any parameters anymore.
10
11Reviewed-by: Vedran Miletić <vedran@miletic.net>
12Reviewed-by: Marek Olšák <marek.olsak@amd.com>
13---
14Upstream-Status: Backport
15
16 src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 12 +++++++++---
17 1 file changed, 9 insertions(+), 3 deletions(-)
18
19diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
20index 2a388cb..0e4a531 100644
21--- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
22+++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
23@@ -342,14 +342,20 @@ class DelegatingJITMemoryManager : public BaseMemoryManager {
24 virtual void registerEHFrames(uint8_t *Addr, uint64_t LoadAddr, size_t Size) {
25 mgr()->registerEHFrames(Addr, LoadAddr, Size);
26 }
27- virtual void deregisterEHFrames(uint8_t *Addr, uint64_t LoadAddr, size_t Size) {
28- mgr()->deregisterEHFrames(Addr, LoadAddr, Size);
29- }
30 #else
31 virtual void registerEHFrames(llvm::StringRef SectionData) {
32 mgr()->registerEHFrames(SectionData);
33 }
34 #endif
35+#if HAVE_LLVM >= 0x0500
36+ virtual void deregisterEHFrames() {
37+ mgr()->deregisterEHFrames();
38+ }
39+#elif HAVE_LLVM >= 0x0304
40+ virtual void deregisterEHFrames(uint8_t *Addr, uint64_t LoadAddr, size_t Size) {
41+ mgr()->deregisterEHFrames(Addr, LoadAddr, Size);
42+ }
43+#endif
44 virtual void *getPointerToNamedFunction(const std::string &Name,
45 bool AbortOnFailure=true) {
46 return mgr()->getPointerToNamedFunction(Name, AbortOnFailure);
47--
482.13.3
49
diff --git a/meta/recipes-graphics/mesa/mesa-gl_17.1.7.bb b/meta/recipes-graphics/mesa/mesa-gl_17.2.4.bb
index 73267eb4f0..73267eb4f0 100644
--- a/meta/recipes-graphics/mesa/mesa-gl_17.1.7.bb
+++ b/meta/recipes-graphics/mesa/mesa-gl_17.2.4.bb
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index 4f31ed255c..cab8e4bfe7 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -45,7 +45,7 @@ X11_DEPS = "xf86driproto glproto virtual/libx11 libxext libxxf86vm libxdamage li
45# "x11" requires "opengl" 45# "x11" requires "opengl"
46PACKAGECONFIG[x11] = "--enable-glx-tls,--disable-glx,${X11_DEPS}" 46PACKAGECONFIG[x11] = "--enable-glx-tls,--disable-glx,${X11_DEPS}"
47PACKAGECONFIG[xvmc] = "--enable-xvmc,--disable-xvmc,libxvmc" 47PACKAGECONFIG[xvmc] = "--enable-xvmc,--disable-xvmc,libxvmc"
48PACKAGECONFIG[wayland] = ",,wayland-native wayland libdrm" 48PACKAGECONFIG[wayland] = ",,wayland-native wayland libdrm wayland-protocols"
49 49
50DRIDRIVERS = "swrast" 50DRIDRIVERS = "swrast"
51DRIDRIVERS_append_x86 = ",radeon,r200,nouveau,i965,i915" 51DRIDRIVERS_append_x86 = ",radeon,r200,nouveau,i965,i915"
diff --git a/meta/recipes-graphics/mesa/mesa_17.1.7.bb b/meta/recipes-graphics/mesa/mesa_17.2.4.bb
index 39cfce992f..928cb920af 100644
--- a/meta/recipes-graphics/mesa/mesa_17.1.7.bb
+++ b/meta/recipes-graphics/mesa/mesa_17.2.4.bb
@@ -7,14 +7,13 @@ SRC_URI = "https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \
7 file://0002-hardware-gloat.patch \ 7 file://0002-hardware-gloat.patch \
8 file://vulkan-mkdir.patch \ 8 file://vulkan-mkdir.patch \
9 file://llvm-config-version.patch \ 9 file://llvm-config-version.patch \
10 file://0001-ac-fix-build-after-LLVM-5.0-SVN-r300718.patch \
11 file://0002-gallivm-Fix-build-against-LLVM-SVN-r302589.patch \
12 file://0001-winsys-svga-drm-Include-sys-types.h.patch \ 10 file://0001-winsys-svga-drm-Include-sys-types.h.patch \
13 file://0001-configure.ac-Always-check-for-expat.patch \ 11 file://0001-configure.ac-Always-check-for-expat.patch \
14 file://0001-Makefile.vulkan.am-explictly-add-lib-expat-to-intel-.patch \ 12 file://0001-Makefile.vulkan.am-explictly-add-lib-expat-to-intel-.patch \
15 " 13 "
16SRC_URI[md5sum] = "e40bb428a263bd28cbf6478dae45b207" 14
17SRC_URI[sha256sum] = "69f472a874b1122404fa0bd13e2d6bf87eb3b9ad9c21d2f39872a96d83d9e5f5" 15SRC_URI[md5sum] = "cf0b7a297eedd0549cda5ba071d7561f"
16SRC_URI[sha256sum] = "5ba408fecd6e1132e5490eec1a2f04466214e4c65c8b89b331be844768c2e550"
18 17
19#because we cannot rely on the fact that all apps will use pkgconfig, 18#because we cannot rely on the fact that all apps will use pkgconfig,
20#make eglplatform.h independent of MESA_EGL_NO_X11_HEADER 19#make eglplatform.h independent of MESA_EGL_NO_X11_HEADER