summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2013-07-02 13:49:19 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-07-05 15:34:26 +0100
commit4ec1014cc0aadd66fffa2667e5c59ea8b876eb61 (patch)
treea53f964c3029e873c5d4e8ce36b60685a1a76e92 /meta/recipes-graphics
parent52892d6f8a2f37bf6b809bcbf3ad6442e152f3fb (diff)
downloadpoky-4ec1014cc0aadd66fffa2667e5c59ea8b876eb61.tar.gz
mesa: bump SRCREV in git recipe, refresh patches
* 0003-EGL-Mutate-NativeDisplayType-depending-on-config.patch needs to be rebased so move old version for 9.1.3 to mesa-9.1.3/ and update the version in mesa/ * add git headers * 0005-llvmpipe-remove-the-power-of-two-sizeof-struct-cmd_b.patch is already applied in new SRCREV, move it to mesa-9.1.3/ * formal change in license.html with new SRCREV: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN -AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. (From OE-Core rev: 7c60607c898f596731441425d75144be232d4c8e) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r--meta/recipes-graphics/mesa/mesa-9.1.3/0003-EGL-Mutate-NativeDisplayType-depending-on-config.patch (renamed from meta/recipes-graphics/mesa/mesa/EGL-Mutate-NativeDisplayType-depending-on-config.patch)21
-rw-r--r--meta/recipes-graphics/mesa/mesa-9.1.3/0005-llvmpipe-remove-the-power-of-two-sizeof-struct-cmd_b.patch (renamed from meta/recipes-graphics/mesa/mesa/0001-llvmpipe-remove-the-power-of-two-sizeof-struct-cmd_b.patch)15
-rw-r--r--meta/recipes-graphics/mesa/mesa/0001-configure-Avoid-use-of-AC_CHECK_FILE-for-cross-compi.patch14
-rw-r--r--meta/recipes-graphics/mesa/mesa/0003-EGL-Mutate-NativeDisplayType-depending-on-config.patch356
-rw-r--r--meta/recipes-graphics/mesa/mesa/0004-glsl-fix-builtin_compiler-cross-compilation.patch (renamed from meta/recipes-graphics/mesa/mesa/fix-glsl-cross.patch)13
-rw-r--r--meta/recipes-graphics/mesa/mesa_9.1.3.bb6
-rw-r--r--meta/recipes-graphics/mesa/mesa_git.bb10
7 files changed, 401 insertions, 34 deletions
diff --git a/meta/recipes-graphics/mesa/mesa/EGL-Mutate-NativeDisplayType-depending-on-config.patch b/meta/recipes-graphics/mesa/mesa-9.1.3/0003-EGL-Mutate-NativeDisplayType-depending-on-config.patch
index 47ba1671bc..7e82b6a49c 100644
--- a/meta/recipes-graphics/mesa/mesa/EGL-Mutate-NativeDisplayType-depending-on-config.patch
+++ b/meta/recipes-graphics/mesa/mesa-9.1.3/0003-EGL-Mutate-NativeDisplayType-depending-on-config.patch
@@ -1,26 +1,27 @@
1From d52a7ec5dcdf3936bd727b854831efb90acfd2ba Mon Sep 17 00:00:00 2001 1From 06c1ba29de8a26fffb73ee99f0fc54c704e9fee4 Mon Sep 17 00:00:00 2001
2From: Daniel Stone <daniel@fooishbar.org> 2From: Daniel Stone <daniel@fooishbar.org>
3Date: Fri, 24 May 2013 17:20:27 +0100 3Date: Fri, 24 May 2013 17:20:27 +0100
4Subject: [PATCH] EGL: Mutate NativeDisplayType depending on config 4Subject: [PATCH 3/5] EGL: Mutate NativeDisplayType depending on config
5 5
6If we go through ./configure without enabling X11 anywhere, then set the 6If we go through ./configure without enabling X11 anywhere, then set the
7fallback types for EGL NativeDisplay and friends, rather than assuming 7fallback types for EGL NativeDisplay and friends, rather than assuming
8X11/Xlib. 8X11/Xlib.
9 9
10Signed-off-by: Daniel Stone <daniel@fooishbar.org> 10Signed-off-by: Daniel Stone <daniel@fooishbar.org>
11Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
11--- 12---
12 configure.ac | 9 +++ 13 configure.ac | 9 +++
13 include/EGL/eglplatform.h | 146 ------------------------------------------ 14 include/EGL/eglplatform.h | 146 -------------------------------------------
14 include/EGL/eglplatform.h.in | 146 ++++++++++++++++++++++++++++++++++++++++++ 15 include/EGL/eglplatform.h.in | 146 +++++++++++++++++++++++++++++++++++++++++++
15 3 files changed, 155 insertions(+), 146 deletions(-) 16 3 files changed, 155 insertions(+), 146 deletions(-)
16 delete mode 100644 include/EGL/eglplatform.h 17 delete mode 100644 include/EGL/eglplatform.h
17 create mode 100644 include/EGL/eglplatform.h.in 18 create mode 100644 include/EGL/eglplatform.h.in
18 19
19diff --git a/configure.ac b/configure.ac 20diff --git a/configure.ac b/configure.ac
20index 4a98996..6fa77da 100644 21index 2b4a374..d4c7a95 100644
21--- a/configure.ac 22--- a/configure.ac
22+++ b/configure.ac 23+++ b/configure.ac
23@@ -1576,12 +1576,20 @@ fi 24@@ -1565,12 +1565,20 @@ fi
24 25
25 EGL_PLATFORMS="$egl_platforms" 26 EGL_PLATFORMS="$egl_platforms"
26 27
@@ -41,11 +42,11 @@ index 4a98996..6fa77da 100644
41 AM_CONDITIONAL(HAVE_EGL_DRIVER_DRI2, test "x$HAVE_EGL_DRIVER_DRI2" != "x") 42 AM_CONDITIONAL(HAVE_EGL_DRIVER_DRI2, test "x$HAVE_EGL_DRIVER_DRI2" != "x")
42 AM_CONDITIONAL(HAVE_EGL_DRIVER_GLX, test "x$HAVE_EGL_DRIVER_GLX" != "x") 43 AM_CONDITIONAL(HAVE_EGL_DRIVER_GLX, test "x$HAVE_EGL_DRIVER_GLX" != "x")
43 44
44@@ -2053,6 +2061,7 @@ CXXFLAGS="$CXXFLAGS $USER_CXXFLAGS" 45@@ -2042,6 +2050,7 @@ CXXFLAGS="$CXXFLAGS $USER_CXXFLAGS"
45 46
46 dnl Substitute the config 47 dnl Substitute the config
47 AC_CONFIG_FILES([Makefile 48 AC_CONFIG_FILES([Makefile
48+ include/EGL/eglplatform.h 49+ include/EGL/eglplatform.h
49 src/Makefile 50 src/Makefile
50 src/egl/Makefile 51 src/egl/Makefile
51 src/egl/drivers/Makefile 52 src/egl/drivers/Makefile
@@ -354,5 +355,5 @@ index 0000000..5126c92
354+ 355+
355+#endif /* __eglplatform_h */ 356+#endif /* __eglplatform_h */
356-- 357--
3571.7.10.4 3581.8.2.1
358 359
diff --git a/meta/recipes-graphics/mesa/mesa/0001-llvmpipe-remove-the-power-of-two-sizeof-struct-cmd_b.patch b/meta/recipes-graphics/mesa/mesa-9.1.3/0005-llvmpipe-remove-the-power-of-two-sizeof-struct-cmd_b.patch
index b74fddc5ea..d86421b767 100644
--- a/meta/recipes-graphics/mesa/mesa/0001-llvmpipe-remove-the-power-of-two-sizeof-struct-cmd_b.patch
+++ b/meta/recipes-graphics/mesa/mesa-9.1.3/0005-llvmpipe-remove-the-power-of-two-sizeof-struct-cmd_b.patch
@@ -1,8 +1,8 @@
1From 9915636fb8afe75ee2e8e013e4f495a4cb937afb Mon Sep 17 00:00:00 2001 1From 33098ef45e6035f3348040a25641f95c95266103 Mon Sep 17 00:00:00 2001
2From: Brian Paul <brianp@vmware.com> 2From: Brian Paul <brianp@vmware.com>
3Date: Wed, 6 Mar 2013 16:57:20 -0700 3Date: Wed, 6 Mar 2013 16:57:20 -0700
4Subject: [PATCH] llvmpipe: remove the power of two sizeof(struct cmd_block) 4Subject: [PATCH 5/5] llvmpipe: remove the power of two sizeof(struct
5 assertion 5 cmd_block) assertion
6MIME-Version: 1.0 6MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8 7Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit 8Content-Transfer-Encoding: 8bit
@@ -14,13 +14,12 @@ Reviewed-by: José Fonseca <jfonseca@vmware.com>
14 14
15Upstream-Status: Backport 15Upstream-Status: Backport
16http://cgit.freedesktop.org/mesa/mesa/commit/?id=9915636fb8afe75ee2e8e013e4f495a4cb937afb 16http://cgit.freedesktop.org/mesa/mesa/commit/?id=9915636fb8afe75ee2e8e013e4f495a4cb937afb
17
18--- 17---
19 src/gallium/drivers/llvmpipe/lp_scene.c | 7 ------- 18 src/gallium/drivers/llvmpipe/lp_scene.c | 7 -------
20 1 file changed, 7 deletions(-) 19 1 file changed, 7 deletions(-)
21 20
22diff --git a/src/gallium/drivers/llvmpipe/lp_scene.c b/src/gallium/drivers/llvmpipe/lp_scene.c 21diff --git a/src/gallium/drivers/llvmpipe/lp_scene.c b/src/gallium/drivers/llvmpipe/lp_scene.c
23index dd0943e..a0912eb 100644 22index e145391..c88bc95 100644
24--- a/src/gallium/drivers/llvmpipe/lp_scene.c 23--- a/src/gallium/drivers/llvmpipe/lp_scene.c
25+++ b/src/gallium/drivers/llvmpipe/lp_scene.c 24+++ b/src/gallium/drivers/llvmpipe/lp_scene.c
26@@ -76,13 +76,6 @@ lp_scene_create( struct pipe_context *pipe ) 25@@ -76,13 +76,6 @@ lp_scene_create( struct pipe_context *pipe )
@@ -36,7 +35,7 @@ index dd0943e..a0912eb 100644
36- util_next_power_of_two(sizeof(struct cmd_block))); 35- util_next_power_of_two(sizeof(struct cmd_block)));
37 } 36 }
38 #endif 37 #endif
39 38
40-- 39--
411.8.3 401.8.2.1
42 41
diff --git a/meta/recipes-graphics/mesa/mesa/0001-configure-Avoid-use-of-AC_CHECK_FILE-for-cross-compi.patch b/meta/recipes-graphics/mesa/mesa/0001-configure-Avoid-use-of-AC_CHECK_FILE-for-cross-compi.patch
index 9f7002a028..76b5a18ede 100644
--- a/meta/recipes-graphics/mesa/mesa/0001-configure-Avoid-use-of-AC_CHECK_FILE-for-cross-compi.patch
+++ b/meta/recipes-graphics/mesa/mesa/0001-configure-Avoid-use-of-AC_CHECK_FILE-for-cross-compi.patch
@@ -1,7 +1,7 @@
1From 877b8ea9a79d1d51f8e6b032801731538590d39e Mon Sep 17 00:00:00 2001 1From e21ce89f7ae6964f196086ff325d79e4a3b5acd8 Mon Sep 17 00:00:00 2001
2From: Jonathan Liu <net147@gmail.com> 2From: Jonathan Liu <net147@gmail.com>
3Date: Tue, 4 Jun 2013 06:04:44 -0700 3Date: Tue, 4 Jun 2013 06:04:44 -0700
4Subject: [PATCH] configure: Avoid use of AC_CHECK_FILE for cross compiling 4Subject: [PATCH 1/4] configure: Avoid use of AC_CHECK_FILE for cross compiling
5 5
6The AC_CHECK_FILE macro can't be used for cross compiling as it will 6The AC_CHECK_FILE macro can't be used for cross compiling as it will
7result in "error: cannot check for file existence when cross compiling". 7result in "error: cannot check for file existence when cross compiling".
@@ -17,10 +17,10 @@ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
17 1 file changed, 6 insertions(+), 6 deletions(-) 17 1 file changed, 6 insertions(+), 6 deletions(-)
18 18
19diff --git a/configure.ac b/configure.ac 19diff --git a/configure.ac b/configure.ac
20index 36065f1..2b4a374 100644 20index 70c598e..67b8c40 100644
21--- a/configure.ac 21--- a/configure.ac
22+++ b/configure.ac 22+++ b/configure.ac
23@@ -1694,8 +1694,8 @@ if test "x$enable_gallium_llvm" = xyes; then 23@@ -1630,8 +1630,8 @@ if test "x$enable_gallium_llvm" = xyes; then
24 CLANG_LIBDIR=${LLVM_LIBDIR} 24 CLANG_LIBDIR=${LLVM_LIBDIR}
25 fi 25 fi
26 CLANG_RESOURCE_DIR=$CLANG_LIBDIR/clang/${LLVM_VERSION} 26 CLANG_RESOURCE_DIR=$CLANG_LIBDIR/clang/${LLVM_VERSION}
@@ -31,7 +31,7 @@ index 36065f1..2b4a374 100644
31 fi 31 fi
32 else 32 else
33 MESA_LLVM=0 33 MESA_LLVM=0
34@@ -1912,7 +1912,7 @@ if test "x$MESA_LLVM" != x0; then 34@@ -1861,7 +1861,7 @@ if test "x$MESA_LLVM" != x0; then
35 if test "x$with_llvm_shared_libs" = xyes; then 35 if test "x$with_llvm_shared_libs" = xyes; then
36 dnl We can't use $LLVM_VERSION because it has 'svn' stripped out, 36 dnl We can't use $LLVM_VERSION because it has 'svn' stripped out,
37 LLVM_SO_NAME=LLVM-`$LLVM_CONFIG --version` 37 LLVM_SO_NAME=LLVM-`$LLVM_CONFIG --version`
@@ -40,7 +40,7 @@ index 36065f1..2b4a374 100644
40 40
41 if test "x$llvm_have_one_so" = xyes; then 41 if test "x$llvm_have_one_so" = xyes; then
42 dnl LLVM was built using auto*, so there is only one shared object. 42 dnl LLVM was built using auto*, so there is only one shared object.
43@@ -1920,8 +1920,8 @@ if test "x$MESA_LLVM" != x0; then 43@@ -1869,8 +1869,8 @@ if test "x$MESA_LLVM" != x0; then
44 else 44 else
45 dnl If LLVM was built with CMake, there will be one shared object per 45 dnl If LLVM was built with CMake, there will be one shared object per
46 dnl component. 46 dnl component.
@@ -51,7 +51,7 @@ index 36065f1..2b4a374 100644
51 Please make sure you have built llvm with the --enable-shared option 51 Please make sure you have built llvm with the --enable-shared option
52 and that your llvm libraries are installed in $LLVM_LIBDIR 52 and that your llvm libraries are installed in $LLVM_LIBDIR
53 If you have installed your llvm libraries to a different directory you 53 If you have installed your llvm libraries to a different directory you
54@@ -1932,7 +1932,7 @@ if test "x$MESA_LLVM" != x0; then 54@@ -1881,7 +1881,7 @@ if test "x$MESA_LLVM" != x0; then
55 --enable-opencl 55 --enable-opencl
56 If you do not want to build with llvm shared libraries and instead want to 56 If you do not want to build with llvm shared libraries and instead want to
57 use llvm static libraries then remove these options from your configure 57 use llvm static libraries then remove these options from your configure
diff --git a/meta/recipes-graphics/mesa/mesa/0003-EGL-Mutate-NativeDisplayType-depending-on-config.patch b/meta/recipes-graphics/mesa/mesa/0003-EGL-Mutate-NativeDisplayType-depending-on-config.patch
new file mode 100644
index 0000000000..d6ddd9a0d4
--- /dev/null
+++ b/meta/recipes-graphics/mesa/mesa/0003-EGL-Mutate-NativeDisplayType-depending-on-config.patch
@@ -0,0 +1,356 @@
1From 8d31ae23683394617c49301b039b3a069b9ea436 Mon Sep 17 00:00:00 2001
2From: Daniel Stone <daniel@fooishbar.org>
3Date: Fri, 24 May 2013 17:20:27 +0100
4Subject: [PATCH 3/4] EGL: Mutate NativeDisplayType depending on config
5
6If we go through ./configure without enabling X11 anywhere, then set the
7fallback types for EGL NativeDisplay and friends, rather than assuming
8X11/Xlib.
9
10Signed-off-by: Daniel Stone <daniel@fooishbar.org>
11Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
12---
13 configure.ac | 5 ++
14 include/EGL/eglplatform.h | 146 -------------------------------------------
15 include/EGL/eglplatform.h.in | 146 +++++++++++++++++++++++++++++++++++++++++++
16 3 files changed, 151 insertions(+), 146 deletions(-)
17 delete mode 100644 include/EGL/eglplatform.h
18 create mode 100644 include/EGL/eglplatform.h.in
19
20diff --git a/configure.ac b/configure.ac
21index 67b8c40..afc3217 100644
22--- a/configure.ac
23+++ b/configure.ac
24@@ -1499,6 +1499,9 @@ EGL_PLATFORMS="$egl_platforms"
25
26 if echo "$egl_platforms" | grep 'x11' >/dev/null 2>&1; then
27 NEED_WINSYS_XLIB=yes
28+ MESA_EGL_NO_X11_HEADERS=0
29+else
30+ MESA_EGL_NO_X11_HEADERS=1
31 fi
32 AM_CONDITIONAL(HAVE_EGL_PLATFORM_X11, echo "$egl_platforms" | grep 'x11' >/dev/null 2>&1)
33 AM_CONDITIONAL(HAVE_EGL_PLATFORM_WAYLAND, echo "$egl_platforms" | grep 'wayland' >/dev/null 2>&1)
34@@ -1512,6 +1515,7 @@ AM_CONDITIONAL(HAVE_EGL_DRIVER_GLX, test "x$HAVE_EGL_DRIVER_GLX" != "x")
35 AC_SUBST([EGL_NATIVE_PLATFORM])
36 AC_SUBST([EGL_PLATFORMS])
37 AC_SUBST([EGL_CFLAGS])
38+AC_SUBST([MESA_EGL_NO_X11_HEADERS])
39
40 AC_ARG_WITH([egl-driver-dir],
41 [AS_HELP_STRING([--with-egl-driver-dir=DIR],
42@@ -1991,6 +1995,7 @@ CXXFLAGS="$CXXFLAGS $USER_CXXFLAGS"
43
44 dnl Substitute the config
45 AC_CONFIG_FILES([Makefile
46+ include/EGL/eglplatform.h
47 src/Makefile
48 src/egl/Makefile
49 src/egl/drivers/Makefile
50diff --git a/include/EGL/eglplatform.h b/include/EGL/eglplatform.h
51deleted file mode 100644
52index 17fdc61..0000000
53--- a/include/EGL/eglplatform.h
54+++ /dev/null
55@@ -1,146 +0,0 @@
56-#ifndef __eglplatform_h_
57-#define __eglplatform_h_
58-
59-/*
60-** Copyright (c) 2007-2009 The Khronos Group Inc.
61-**
62-** Permission is hereby granted, free of charge, to any person obtaining a
63-** copy of this software and/or associated documentation files (the
64-** "Materials"), to deal in the Materials without restriction, including
65-** without limitation the rights to use, copy, modify, merge, publish,
66-** distribute, sublicense, and/or sell copies of the Materials, and to
67-** permit persons to whom the Materials are furnished to do so, subject to
68-** the following conditions:
69-**
70-** The above copyright notice and this permission notice shall be included
71-** in all copies or substantial portions of the Materials.
72-**
73-** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
74-** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
75-** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
76-** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
77-** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
78-** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
79-** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
80-*/
81-
82-/* Platform-specific types and definitions for egl.h
83- * $Revision: 12306 $ on $Date: 2010-08-25 09:51:28 -0700 (Wed, 25 Aug 2010) $
84- *
85- * Adopters may modify khrplatform.h and this file to suit their platform.
86- * You are encouraged to submit all modifications to the Khronos group so that
87- * they can be included in future versions of this file. Please submit changes
88- * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla)
89- * by filing a bug against product "EGL" component "Registry".
90- */
91-
92-#include <KHR/khrplatform.h>
93-
94-/* Macros used in EGL function prototype declarations.
95- *
96- * EGL functions should be prototyped as:
97- *
98- * EGLAPI return-type EGLAPIENTRY eglFunction(arguments);
99- * typedef return-type (EXPAPIENTRYP PFNEGLFUNCTIONPROC) (arguments);
100- *
101- * KHRONOS_APICALL and KHRONOS_APIENTRY are defined in KHR/khrplatform.h
102- */
103-
104-#ifndef EGLAPI
105-#define EGLAPI KHRONOS_APICALL
106-#endif
107-
108-#ifndef EGLAPIENTRY
109-#define EGLAPIENTRY KHRONOS_APIENTRY
110-#endif
111-#define EGLAPIENTRYP EGLAPIENTRY*
112-
113-/* The types NativeDisplayType, NativeWindowType, and NativePixmapType
114- * are aliases of window-system-dependent types, such as X Display * or
115- * Windows Device Context. They must be defined in platform-specific
116- * code below. The EGL-prefixed versions of Native*Type are the same
117- * types, renamed in EGL 1.3 so all types in the API start with "EGL".
118- *
119- * Khronos STRONGLY RECOMMENDS that you use the default definitions
120- * provided below, since these changes affect both binary and source
121- * portability of applications using EGL running on different EGL
122- * implementations.
123- */
124-
125-#if defined(_WIN32) || defined(__VC32__) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) /* Win32 and WinCE */
126-#ifndef WIN32_LEAN_AND_MEAN
127-#define WIN32_LEAN_AND_MEAN 1
128-#endif
129-#include <windows.h>
130-
131-typedef HDC EGLNativeDisplayType;
132-typedef HBITMAP EGLNativePixmapType;
133-typedef HWND EGLNativeWindowType;
134-
135-#elif defined(__WINSCW__) || defined(__SYMBIAN32__) /* Symbian */
136-
137-typedef int EGLNativeDisplayType;
138-typedef void *EGLNativeWindowType;
139-typedef void *EGLNativePixmapType;
140-
141-#elif defined(WL_EGL_PLATFORM)
142-
143-typedef struct wl_display *EGLNativeDisplayType;
144-typedef struct wl_egl_pixmap *EGLNativePixmapType;
145-typedef struct wl_egl_window *EGLNativeWindowType;
146-
147-#elif defined(__GBM__)
148-
149-typedef struct gbm_device *EGLNativeDisplayType;
150-typedef struct gbm_bo *EGLNativePixmapType;
151-typedef void *EGLNativeWindowType;
152-
153-#elif defined(ANDROID) /* Android */
154-
155-struct ANativeWindow;
156-struct egl_native_pixmap_t;
157-
158-typedef struct ANativeWindow *EGLNativeWindowType;
159-typedef struct egl_native_pixmap_t *EGLNativePixmapType;
160-typedef void *EGLNativeDisplayType;
161-
162-#elif defined(__unix__)
163-
164-#ifdef MESA_EGL_NO_X11_HEADERS
165-
166-typedef void *EGLNativeDisplayType;
167-typedef khronos_uint32_t EGLNativePixmapType;
168-typedef khronos_uint32_t EGLNativeWindowType;
169-
170-#else
171-
172-/* X11 (tentative) */
173-#include <X11/Xlib.h>
174-#include <X11/Xutil.h>
175-
176-typedef Display *EGLNativeDisplayType;
177-typedef Pixmap EGLNativePixmapType;
178-typedef Window EGLNativeWindowType;
179-
180-#endif /* MESA_EGL_NO_X11_HEADERS */
181-
182-#else
183-#error "Platform not recognized"
184-#endif
185-
186-/* EGL 1.2 types, renamed for consistency in EGL 1.3 */
187-typedef EGLNativeDisplayType NativeDisplayType;
188-typedef EGLNativePixmapType NativePixmapType;
189-typedef EGLNativeWindowType NativeWindowType;
190-
191-
192-/* Define EGLint. This must be a signed integral type large enough to contain
193- * all legal attribute names and values passed into and out of EGL, whether
194- * their type is boolean, bitmask, enumerant (symbolic constant), integer,
195- * handle, or other. While in general a 32-bit integer will suffice, if
196- * handles are 64 bit types, then EGLint should be defined as a signed 64-bit
197- * integer type.
198- */
199-typedef khronos_int32_t EGLint;
200-
201-#endif /* __eglplatform_h */
202diff --git a/include/EGL/eglplatform.h.in b/include/EGL/eglplatform.h.in
203new file mode 100644
204index 0000000..5126c92
205--- /dev/null
206+++ b/include/EGL/eglplatform.h.in
207@@ -0,0 +1,146 @@
208+#ifndef __eglplatform_h_
209+#define __eglplatform_h_
210+
211+/*
212+** Copyright (c) 2007-2009 The Khronos Group Inc.
213+**
214+** Permission is hereby granted, free of charge, to any person obtaining a
215+** copy of this software and/or associated documentation files (the
216+** "Materials"), to deal in the Materials without restriction, including
217+** without limitation the rights to use, copy, modify, merge, publish,
218+** distribute, sublicense, and/or sell copies of the Materials, and to
219+** permit persons to whom the Materials are furnished to do so, subject to
220+** the following conditions:
221+**
222+** The above copyright notice and this permission notice shall be included
223+** in all copies or substantial portions of the Materials.
224+**
225+** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
226+** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
227+** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
228+** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
229+** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
230+** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
231+** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
232+*/
233+
234+/* Platform-specific types and definitions for egl.h
235+ * $Revision: 12306 $ on $Date: 2010-08-25 09:51:28 -0700 (Wed, 25 Aug 2010) $
236+ *
237+ * Adopters may modify khrplatform.h and this file to suit their platform.
238+ * You are encouraged to submit all modifications to the Khronos group so that
239+ * they can be included in future versions of this file. Please submit changes
240+ * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla)
241+ * by filing a bug against product "EGL" component "Registry".
242+ */
243+
244+#include <KHR/khrplatform.h>
245+
246+/* Macros used in EGL function prototype declarations.
247+ *
248+ * EGL functions should be prototyped as:
249+ *
250+ * EGLAPI return-type EGLAPIENTRY eglFunction(arguments);
251+ * typedef return-type (EXPAPIENTRYP PFNEGLFUNCTIONPROC) (arguments);
252+ *
253+ * KHRONOS_APICALL and KHRONOS_APIENTRY are defined in KHR/khrplatform.h
254+ */
255+
256+#ifndef EGLAPI
257+#define EGLAPI KHRONOS_APICALL
258+#endif
259+
260+#ifndef EGLAPIENTRY
261+#define EGLAPIENTRY KHRONOS_APIENTRY
262+#endif
263+#define EGLAPIENTRYP EGLAPIENTRY*
264+
265+/* The types NativeDisplayType, NativeWindowType, and NativePixmapType
266+ * are aliases of window-system-dependent types, such as X Display * or
267+ * Windows Device Context. They must be defined in platform-specific
268+ * code below. The EGL-prefixed versions of Native*Type are the same
269+ * types, renamed in EGL 1.3 so all types in the API start with "EGL".
270+ *
271+ * Khronos STRONGLY RECOMMENDS that you use the default definitions
272+ * provided below, since these changes affect both binary and source
273+ * portability of applications using EGL running on different EGL
274+ * implementations.
275+ */
276+
277+#if defined(_WIN32) || defined(__VC32__) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) /* Win32 and WinCE */
278+#ifndef WIN32_LEAN_AND_MEAN
279+#define WIN32_LEAN_AND_MEAN 1
280+#endif
281+#include <windows.h>
282+
283+typedef HDC EGLNativeDisplayType;
284+typedef HBITMAP EGLNativePixmapType;
285+typedef HWND EGLNativeWindowType;
286+
287+#elif defined(__WINSCW__) || defined(__SYMBIAN32__) /* Symbian */
288+
289+typedef int EGLNativeDisplayType;
290+typedef void *EGLNativeWindowType;
291+typedef void *EGLNativePixmapType;
292+
293+#elif defined(WL_EGL_PLATFORM)
294+
295+typedef struct wl_display *EGLNativeDisplayType;
296+typedef struct wl_egl_pixmap *EGLNativePixmapType;
297+typedef struct wl_egl_window *EGLNativeWindowType;
298+
299+#elif defined(__GBM__)
300+
301+typedef struct gbm_device *EGLNativeDisplayType;
302+typedef struct gbm_bo *EGLNativePixmapType;
303+typedef void *EGLNativeWindowType;
304+
305+#elif defined(ANDROID) /* Android */
306+
307+struct ANativeWindow;
308+struct egl_native_pixmap_t;
309+
310+typedef struct ANativeWindow *EGLNativeWindowType;
311+typedef struct egl_native_pixmap_t *EGLNativePixmapType;
312+typedef void *EGLNativeDisplayType;
313+
314+#elif defined(__unix__)
315+
316+#if @MESA_EGL_NO_X11_HEADERS@
317+
318+typedef void *EGLNativeDisplayType;
319+typedef khronos_uint32_t EGLNativePixmapType;
320+typedef khronos_uint32_t EGLNativeWindowType;
321+
322+#else
323+
324+/* X11 (tentative) */
325+#include <X11/Xlib.h>
326+#include <X11/Xutil.h>
327+
328+typedef Display *EGLNativeDisplayType;
329+typedef Pixmap EGLNativePixmapType;
330+typedef Window EGLNativeWindowType;
331+
332+#endif /* MESA_EGL_NO_X11_HEADERS */
333+
334+#else
335+#error "Platform not recognized"
336+#endif
337+
338+/* EGL 1.2 types, renamed for consistency in EGL 1.3 */
339+typedef EGLNativeDisplayType NativeDisplayType;
340+typedef EGLNativePixmapType NativePixmapType;
341+typedef EGLNativeWindowType NativeWindowType;
342+
343+
344+/* Define EGLint. This must be a signed integral type large enough to contain
345+ * all legal attribute names and values passed into and out of EGL, whether
346+ * their type is boolean, bitmask, enumerant (symbolic constant), integer,
347+ * handle, or other. While in general a 32-bit integer will suffice, if
348+ * handles are 64 bit types, then EGLint should be defined as a signed 64-bit
349+ * integer type.
350+ */
351+typedef khronos_int32_t EGLint;
352+
353+#endif /* __eglplatform_h */
354--
3551.8.2.1
356
diff --git a/meta/recipes-graphics/mesa/mesa/fix-glsl-cross.patch b/meta/recipes-graphics/mesa/mesa/0004-glsl-fix-builtin_compiler-cross-compilation.patch
index 34226ea58b..460a2748bf 100644
--- a/meta/recipes-graphics/mesa/mesa/fix-glsl-cross.patch
+++ b/meta/recipes-graphics/mesa/mesa/0004-glsl-fix-builtin_compiler-cross-compilation.patch
@@ -1,9 +1,17 @@
1From ab38c97f057f739533a4e1fc9de51ea5f4e6242d Mon Sep 17 00:00:00 2001
2From: Jonathan Liu <net147@gmail.com>
3Date: Sat, 29 Jun 2013 11:37:20 +0200
4Subject: [PATCH 4/4] glsl: fix builtin_compiler cross-compilation
5
1The target libtool is used when building host binaries, which predictably 6The target libtool is used when building host binaries, which predictably
2doesn't work. 7doesn't work.
3 8
4Upstream-Status: Submitted (https://bugs.freedesktop.org/show_bug.cgi?id=44618) 9Upstream-Status: Submitted https://bugs.freedesktop.org/show_bug.cgi?id=44618
5Signed-off-by: Jonathan Liu <net147@gmail.com> 10Signed-off-by: Jonathan Liu <net147@gmail.com>
6Signed-off-by: Ross Burton <ross.burton@intel.com> 11Signed-off-by: Ross Burton <ross.burton@intel.com>
12---
13 src/glsl/builtin_compiler/Makefile.am | 13 +++++++++++++
14 1 file changed, 13 insertions(+)
7 15
8diff --git a/src/glsl/builtin_compiler/Makefile.am b/src/glsl/builtin_compiler/Makefile.am 16diff --git a/src/glsl/builtin_compiler/Makefile.am b/src/glsl/builtin_compiler/Makefile.am
9index e11a17f..8ebe0a2 100644 17index e11a17f..8ebe0a2 100644
@@ -41,3 +49,6 @@ index e11a17f..8ebe0a2 100644
41+else 49+else
42 builtin_compiler_LDADD = libglslcore.la libglcpp.la 50 builtin_compiler_LDADD = libglslcore.la libglcpp.la
43+endif 51+endif
52--
531.8.2.1
54
diff --git a/meta/recipes-graphics/mesa/mesa_9.1.3.bb b/meta/recipes-graphics/mesa/mesa_9.1.3.bb
index bbeacd388e..a7ccbe6631 100644
--- a/meta/recipes-graphics/mesa/mesa_9.1.3.bb
+++ b/meta/recipes-graphics/mesa/mesa_9.1.3.bb
@@ -1,11 +1,11 @@
1require ${BPN}.inc 1require ${BPN}.inc
2 2
3SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/MesaLib-${PV}.tar.bz2 \ 3SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/MesaLib-${PV}.tar.bz2 \
4 file://EGL-Mutate-NativeDisplayType-depending-on-config.patch \
5 file://fix-glsl-cross.patch \
6 file://0001-configure-Avoid-use-of-AC_CHECK_FILE-for-cross-compi.patch \ 4 file://0001-configure-Avoid-use-of-AC_CHECK_FILE-for-cross-compi.patch \
7 file://0001-llvmpipe-remove-the-power-of-two-sizeof-struct-cmd_b.patch \
8 file://0002-pipe_loader_sw-include-xlib_sw_winsys.h-only-when-HA.patch \ 5 file://0002-pipe_loader_sw-include-xlib_sw_winsys.h-only-when-HA.patch \
6 file://0003-EGL-Mutate-NativeDisplayType-depending-on-config.patch \
7 file://0004-glsl-fix-builtin_compiler-cross-compilation.patch \
8 file://0005-llvmpipe-remove-the-power-of-two-sizeof-struct-cmd_b.patch \
9 " 9 "
10 10
11SRC_URI[md5sum] = "952ccd03547ed72333b64e1746cf8ada" 11SRC_URI[md5sum] = "952ccd03547ed72333b64e1746cf8ada"
diff --git a/meta/recipes-graphics/mesa/mesa_git.bb b/meta/recipes-graphics/mesa/mesa_git.bb
index 09a9531227..52d3d815ff 100644
--- a/meta/recipes-graphics/mesa/mesa_git.bb
+++ b/meta/recipes-graphics/mesa/mesa_git.bb
@@ -2,17 +2,17 @@ require ${BPN}.inc
2 2
3DEFAULT_PREFERENCE = "-1" 3DEFAULT_PREFERENCE = "-1"
4 4
5LIC_FILES_CHKSUM = "file://docs/license.html;md5=f69a4626e9efc40fa0d3cc3b02c9eacf"
6
5PR = "${INC_PR}.0" 7PR = "${INC_PR}.0"
6# 9.1.3 commit 8SRCREV = "5a925cc5504575c22dbb7d29842d7fc5babcb5c7"
7SRCREV = "f32ec82a8cfcabc5b7596796f36afe7986651f02"
8PV = "9.1.3+git${SRCPV}" 9PV = "9.1.3+git${SRCPV}"
9 10
10SRC_URI = "git://anongit.freedesktop.org/git/mesa/mesa;protocol=git \ 11SRC_URI = "git://anongit.freedesktop.org/git/mesa/mesa;protocol=git \
11 file://EGL-Mutate-NativeDisplayType-depending-on-config.patch \
12 file://fix-glsl-cross.patch \
13 file://0001-configure-Avoid-use-of-AC_CHECK_FILE-for-cross-compi.patch \ 12 file://0001-configure-Avoid-use-of-AC_CHECK_FILE-for-cross-compi.patch \
14 file://0001-llvmpipe-remove-the-power-of-two-sizeof-struct-cmd_b.patch \
15 file://0002-pipe_loader_sw-include-xlib_sw_winsys.h-only-when-HA.patch \ 13 file://0002-pipe_loader_sw-include-xlib_sw_winsys.h-only-when-HA.patch \
14 file://0003-EGL-Mutate-NativeDisplayType-depending-on-config.patch \
15 file://0004-glsl-fix-builtin_compiler-cross-compilation.patch \
16 " 16 "
17 17
18S = "${WORKDIR}/git" 18S = "${WORKDIR}/git"