summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@googlemail.com>2016-10-20 12:06:15 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-10-28 16:15:19 +0100
commita2e1133b9d36813fa583f4e67c522285692f6764 (patch)
tree23cff38a6dff21a2405188d28d6af003bdcbe8fc /meta/recipes-graphics/mesa
parent98e9845e3171e4352849cca0968d70e238d3c38c (diff)
downloadpoky-a2e1133b9d36813fa583f4e67c522285692f6764.tar.gz
mesa: update to 12.0.3
* removed patch was applied mainline * tested on RaspberryPi2 weston / lxqt / kde (From OE-Core rev: 446da72c9d4ca8b4b5d9976fbe41686a7af1c260) Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> 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/clang-compile-PR89599.patch116
-rw-r--r--meta/recipes-graphics/mesa/mesa-gl_12.0.3.bb (renamed from meta/recipes-graphics/mesa/mesa-gl_12.0.1.bb)0
-rw-r--r--meta/recipes-graphics/mesa/mesa_12.0.3.bb (renamed from meta/recipes-graphics/mesa/mesa_12.0.1.bb)5
3 files changed, 2 insertions, 119 deletions
diff --git a/meta/recipes-graphics/mesa/files/clang-compile-PR89599.patch b/meta/recipes-graphics/mesa/files/clang-compile-PR89599.patch
deleted file mode 100644
index 48bd32567c..0000000000
--- a/meta/recipes-graphics/mesa/files/clang-compile-PR89599.patch
+++ /dev/null
@@ -1,116 +0,0 @@
1From 5ec140c17b54c25920091501b665b9aa809cc5e8 Mon Sep 17 00:00:00 2001
2From: Matt Turner <mattst88@gmail.com>
3Date: Mon, 11 Jul 2016 10:44:25 -0700
4Subject: mapi: Massage code to allow clang to compile.
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9According to https://llvm.org/bugs/show_bug.cgi?id=19778#c3 this code
10was violating the spec, resulting in it failing to compile.
11
12Cc: mesa-stable@lists.freedesktop.org
13Co-authored-by: Tomasz Paweł Gajc <tpgxyz@gmail.com>
14Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89599
15Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
16
17Upstream-Status: Backport
18Signed-off-by: Khem Raj <raj.khem@gmail.com>
19
20diff --git a/configure.ac b/configure.ac
21index 3799d8d..1ca8359 100644
22--- a/configure.ac
23+++ b/configure.ac
24@@ -226,6 +226,7 @@ AX_GCC_FUNC_ATTRIBUTE([packed])
25 AX_GCC_FUNC_ATTRIBUTE([pure])
26 AX_GCC_FUNC_ATTRIBUTE([returns_nonnull])
27 AX_GCC_FUNC_ATTRIBUTE([unused])
28+AX_GCC_FUNC_ATTRIBUTE([visibility])
29 AX_GCC_FUNC_ATTRIBUTE([warn_unused_result])
30 AX_GCC_FUNC_ATTRIBUTE([weak])
31
32diff --git a/src/mapi/entry_x86-64_tls.h b/src/mapi/entry_x86-64_tls.h
33index 38faccc..c5262a1 100644
34--- a/src/mapi/entry_x86-64_tls.h
35+++ b/src/mapi/entry_x86-64_tls.h
36@@ -25,6 +25,11 @@
37 * Chia-I Wu <olv@lunarg.com>
38 */
39
40+#ifdef HAVE_FUNC_ATTRIBUTE_VISIBIITY
41+#define HIDDEN __attribute__((visibility("hidden")))
42+#else
43+#define HIDDEN
44+#endif
45
46 __asm__(".text\n"
47 ".balign 32\n"
48@@ -54,8 +59,8 @@ entry_patch_public(void)
49 {
50 }
51
52-static char
53-x86_64_entry_start[];
54+extern char
55+x86_64_entry_start[] HIDDEN;
56
57 mapi_func
58 entry_get_public(int slot)
59diff --git a/src/mapi/entry_x86_tls.h b/src/mapi/entry_x86_tls.h
60index 46d2ece..231b409 100644
61--- a/src/mapi/entry_x86_tls.h
62+++ b/src/mapi/entry_x86_tls.h
63@@ -27,6 +27,12 @@
64
65 #include <string.h>
66
67+#ifdef HAVE_FUNC_ATTRIBUTE_VISIBIITY
68+#define HIDDEN __attribute__((visibility("hidden")))
69+#else
70+#define HIDDEN
71+#endif
72+
73 __asm__(".text");
74
75 __asm__("x86_current_tls:\n\t"
76@@ -71,8 +77,8 @@ __asm__(".text");
77 extern unsigned long
78 x86_current_tls();
79
80-static char x86_entry_start[];
81-static char x86_entry_end[];
82+extern char x86_entry_start[] HIDDEN;
83+extern char x86_entry_end[] HIDDEN;
84
85 void
86 entry_patch_public(void)
87diff --git a/src/mapi/entry_x86_tsd.h b/src/mapi/entry_x86_tsd.h
88index ea7bacb..03d9735 100644
89--- a/src/mapi/entry_x86_tsd.h
90+++ b/src/mapi/entry_x86_tsd.h
91@@ -25,6 +25,11 @@
92 * Chia-I Wu <olv@lunarg.com>
93 */
94
95+#ifdef HAVE_FUNC_ATTRIBUTE_VISIBIITY
96+#define HIDDEN __attribute__((visibility("hidden")))
97+#else
98+#define HIDDEN
99+#endif
100
101 #define X86_ENTRY_SIZE 32
102
103@@ -58,8 +63,8 @@ __asm__(".balign 32\n"
104 #include <string.h>
105 #include "u_execmem.h"
106
107-static const char x86_entry_start[];
108-static const char x86_entry_end[];
109+extern const char x86_entry_start[] HIDDEN;
110+extern const char x86_entry_end[] HIDDEN;
111
112 void
113 entry_patch_public(void)
114--
115cgit v0.10.2
116
diff --git a/meta/recipes-graphics/mesa/mesa-gl_12.0.1.bb b/meta/recipes-graphics/mesa/mesa-gl_12.0.3.bb
index f06a3e9b58..f06a3e9b58 100644
--- a/meta/recipes-graphics/mesa/mesa-gl_12.0.1.bb
+++ b/meta/recipes-graphics/mesa/mesa-gl_12.0.3.bb
diff --git a/meta/recipes-graphics/mesa/mesa_12.0.1.bb b/meta/recipes-graphics/mesa/mesa_12.0.3.bb
index 80189e3ff1..acc8353ddb 100644
--- a/meta/recipes-graphics/mesa/mesa_12.0.1.bb
+++ b/meta/recipes-graphics/mesa/mesa_12.0.3.bb
@@ -2,12 +2,11 @@ require ${BPN}.inc
2 2
3SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/mesa-${PV}.tar.xz \ 3SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/mesa-${PV}.tar.xz \
4 file://replace_glibc_check_with_linux.patch \ 4 file://replace_glibc_check_with_linux.patch \
5 file://clang-compile-PR89599.patch \
6 file://disable-asm-on-non-gcc.patch \ 5 file://disable-asm-on-non-gcc.patch \
7" 6"
8 7
9SRC_URI[md5sum] = "972fd5ad5a63aeabf173fb9adefc6522" 8SRC_URI[md5sum] = "1113699c714042d8c4df4766be8c57d8"
10SRC_URI[sha256sum] = "bab24fb79f78c876073527f515ed871fc9c81d816f66c8a0b051d8d653896389" 9SRC_URI[sha256sum] = "1dc86dd9b51272eee1fad3df65e18cda2e556ef1bc0b6e07cd750b9757f493b1"
11 10
12#because we cannot rely on the fact that all apps will use pkgconfig, 11#because we cannot rely on the fact that all apps will use pkgconfig,
13#make eglplatform.h independent of MESA_EGL_NO_X11_HEADER 12#make eglplatform.h independent of MESA_EGL_NO_X11_HEADER