diff options
author | Valentin Popa <valentin.popa@intel.com> | 2013-10-30 12:27:39 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-01 11:09:03 +0000 |
commit | 678a4fa22f5569d75a13eb39d586cdcf033bdeb0 (patch) | |
tree | a2410d7a24ed23ebfc118412a74f6be741352170 /meta/recipes-graphics/mesa/mesa | |
parent | 9f7f7afaa47bc3a058234269bffa55e15558df16 (diff) | |
download | poky-678a4fa22f5569d75a13eb39d586cdcf033bdeb0.tar.gz |
Mesa: upgrade to 9.2.2
* License is still MIT
* removed patches were already merged or
another solution was backported.
(From OE-Core rev: 263e654e5d28fa7f6b0c8cc23f57a31448e88a40)
Signed-off-by: Valentin Popa <valentin.popa@intel.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/mesa/mesa')
5 files changed, 60 insertions, 177 deletions
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 deleted file mode 100644 index 76b5a18ede..0000000000 --- a/meta/recipes-graphics/mesa/mesa/0001-configure-Avoid-use-of-AC_CHECK_FILE-for-cross-compi.patch +++ /dev/null | |||
@@ -1,65 +0,0 @@ | |||
1 | From e21ce89f7ae6964f196086ff325d79e4a3b5acd8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jonathan Liu <net147@gmail.com> | ||
3 | Date: Tue, 4 Jun 2013 06:04:44 -0700 | ||
4 | Subject: [PATCH 1/4] configure: Avoid use of AC_CHECK_FILE for cross compiling | ||
5 | |||
6 | The AC_CHECK_FILE macro can't be used for cross compiling as it will | ||
7 | result in "error: cannot check for file existence when cross compiling". | ||
8 | Replace it with the AS_IF macro. | ||
9 | |||
10 | Upstream-Status: Submitted | ||
11 | http://lists.freedesktop.org/archives/mesa-dev/2013-June/040168.html | ||
12 | |||
13 | Signed-off-by: Jonathan Liu <net147@gmail.com> | ||
14 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
15 | --- | ||
16 | configure.ac | 12 ++++++------ | ||
17 | 1 file changed, 6 insertions(+), 6 deletions(-) | ||
18 | |||
19 | diff --git a/configure.ac b/configure.ac | ||
20 | index 70c598e..67b8c40 100644 | ||
21 | --- a/configure.ac | ||
22 | +++ b/configure.ac | ||
23 | @@ -1630,8 +1630,8 @@ if test "x$enable_gallium_llvm" = xyes; then | ||
24 | CLANG_LIBDIR=${LLVM_LIBDIR} | ||
25 | fi | ||
26 | CLANG_RESOURCE_DIR=$CLANG_LIBDIR/clang/${LLVM_VERSION} | ||
27 | - AC_CHECK_FILE("$CLANG_RESOURCE_DIR/include/stddef.h",, | ||
28 | - AC_MSG_ERROR([Could not find clang internal header stddef.h in $CLANG_RESOURCE_DIR Use --with-clang-libdir to specify the correct path to the clang libraries.])) | ||
29 | + AS_IF([test ! -f "$CLANG_RESOURCE_DIR/include/stddef.h"], | ||
30 | + [AC_MSG_ERROR([Could not find clang internal header stddef.h in $CLANG_RESOURCE_DIR Use --with-clang-libdir to specify the correct path to the clang libraries.])]) | ||
31 | fi | ||
32 | else | ||
33 | MESA_LLVM=0 | ||
34 | @@ -1861,7 +1861,7 @@ if test "x$MESA_LLVM" != x0; 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, | ||
37 | LLVM_SO_NAME=LLVM-`$LLVM_CONFIG --version` | ||
38 | - AC_CHECK_FILE("$LLVM_LIBDIR/lib$LLVM_SO_NAME.so", llvm_have_one_so=yes,) | ||
39 | + AS_IF([test -f "$LLVM_LIBDIR/lib$LLVM_SO_NAME.so"], [llvm_have_one_so=yes]) | ||
40 | |||
41 | if test "x$llvm_have_one_so" = xyes; then | ||
42 | dnl LLVM was built using auto*, so there is only one shared object. | ||
43 | @@ -1869,8 +1869,8 @@ if test "x$MESA_LLVM" != x0; then | ||
44 | else | ||
45 | dnl If LLVM was built with CMake, there will be one shared object per | ||
46 | dnl component. | ||
47 | - AC_CHECK_FILE("$LLVM_LIBDIR/libLLVMTarget.so",, | ||
48 | - AC_MSG_ERROR([Could not find llvm shared libraries: | ||
49 | + AS_IF([test ! -f "$LLVM_LIBDIR/libLLVMTarget.so"], | ||
50 | + [AC_MSG_ERROR([Could not find llvm shared libraries: | ||
51 | Please make sure you have built llvm with the --enable-shared option | ||
52 | and that your llvm libraries are installed in $LLVM_LIBDIR | ||
53 | If you have installed your llvm libraries to a different directory you | ||
54 | @@ -1881,7 +1881,7 @@ if test "x$MESA_LLVM" != x0; then | ||
55 | --enable-opencl | ||
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 | ||
58 | - invocation and reconfigure.])) | ||
59 | + invocation and reconfigure.])]) | ||
60 | |||
61 | dnl We don't need to update LLVM_LIBS in this case because the LLVM | ||
62 | dnl install uses a shared object for each compoenent and we have | ||
63 | -- | ||
64 | 1.8.2.1 | ||
65 | |||
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 index 8a83f4b07b..30a3d98758 100644 --- 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 | |||
@@ -1,7 +1,7 @@ | |||
1 | From 8d31ae23683394617c49301b039b3a069b9ea436 Mon Sep 17 00:00:00 2001 | 1 | From 06c1ba29de8a26fffb73ee99f0fc54c704e9fee4 Mon Sep 17 00:00:00 2001 |
2 | From: Daniel Stone <daniel@fooishbar.org> | 2 | From: Daniel Stone <daniel@fooishbar.org> |
3 | Date: Fri, 24 May 2013 17:20:27 +0100 | 3 | Date: Fri, 24 May 2013 17:20:27 +0100 |
4 | Subject: [PATCH 3/4] EGL: Mutate NativeDisplayType depending on config | 4 | Subject: [PATCH 3/5] EGL: Mutate NativeDisplayType depending on config |
5 | 5 | ||
6 | If we go through ./configure without enabling X11 anywhere, then set the | 6 | If we go through ./configure without enabling X11 anywhere, then set the |
7 | fallback types for EGL NativeDisplay and friends, rather than assuming | 7 | fallback types for EGL NativeDisplay and friends, rather than assuming |
@@ -13,36 +13,39 @@ https://bugs.freedesktop.org/show_bug.cgi?id=64959) | |||
13 | Signed-off-by: Daniel Stone <daniel@fooishbar.org> | 13 | Signed-off-by: Daniel Stone <daniel@fooishbar.org> |
14 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | 14 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> |
15 | --- | 15 | --- |
16 | configure.ac | 5 ++ | 16 | configure.ac | 9 +++ |
17 | include/EGL/eglplatform.h | 146 ------------------------------------------- | 17 | include/EGL/eglplatform.h | 146 ------------------------------------------- |
18 | include/EGL/eglplatform.h.in | 146 +++++++++++++++++++++++++++++++++++++++++++ | 18 | include/EGL/eglplatform.h.in | 146 +++++++++++++++++++++++++++++++++++++++++++ |
19 | 3 files changed, 151 insertions(+), 146 deletions(-) | 19 | 3 files changed, 155 insertions(+), 146 deletions(-) |
20 | delete mode 100644 include/EGL/eglplatform.h | 20 | delete mode 100644 include/EGL/eglplatform.h |
21 | create mode 100644 include/EGL/eglplatform.h.in | 21 | create mode 100644 include/EGL/eglplatform.h.in |
22 | 22 | ||
23 | diff --git a/configure.ac b/configure.ac | 23 | diff --git a/configure.ac b/configure.ac |
24 | index 67b8c40..afc3217 100644 | 24 | index 2b4a374..d4c7a95 100644 |
25 | --- a/configure.ac | 25 | --- a/configure.ac |
26 | +++ b/configure.ac | 26 | +++ b/configure.ac |
27 | @@ -1499,6 +1499,9 @@ EGL_PLATFORMS="$egl_platforms" | 27 | @@ -1565,12 +1565,20 @@ fi |
28 | 28 | ||
29 | if echo "$egl_platforms" | grep 'x11' >/dev/null 2>&1; then | 29 | EGL_PLATFORMS="$egl_platforms" |
30 | NEED_WINSYS_XLIB=yes | 30 | |
31 | +if echo "$egl_platforms" | grep 'x11' >/dev/null 2>&1; then | ||
31 | + MESA_EGL_NO_X11_HEADERS=0 | 32 | + MESA_EGL_NO_X11_HEADERS=0 |
32 | +else | 33 | +else |
33 | + MESA_EGL_NO_X11_HEADERS=1 | 34 | + MESA_EGL_NO_X11_HEADERS=1 |
34 | fi | 35 | +fi |
36 | + | ||
35 | AM_CONDITIONAL(HAVE_EGL_PLATFORM_X11, echo "$egl_platforms" | grep 'x11' >/dev/null 2>&1) | 37 | AM_CONDITIONAL(HAVE_EGL_PLATFORM_X11, echo "$egl_platforms" | grep 'x11' >/dev/null 2>&1) |
36 | AM_CONDITIONAL(HAVE_EGL_PLATFORM_WAYLAND, echo "$egl_platforms" | grep 'wayland' >/dev/null 2>&1) | 38 | AM_CONDITIONAL(HAVE_EGL_PLATFORM_WAYLAND, echo "$egl_platforms" | grep 'wayland' >/dev/null 2>&1) |
37 | @@ -1512,6 +1515,7 @@ AM_CONDITIONAL(HAVE_EGL_DRIVER_GLX, test "x$HAVE_EGL_DRIVER_GLX" != "x") | 39 | AM_CONDITIONAL(HAVE_EGL_PLATFORM_DRM, echo "$egl_platforms" | grep 'drm' >/dev/null 2>&1) |
38 | AC_SUBST([EGL_NATIVE_PLATFORM]) | 40 | AM_CONDITIONAL(HAVE_EGL_PLATFORM_FBDEV, echo "$egl_platforms" | grep 'fbdev' >/dev/null 2>&1) |
39 | AC_SUBST([EGL_PLATFORMS]) | 41 | AM_CONDITIONAL(HAVE_EGL_PLATFORM_NULL, echo "$egl_platforms" | grep 'null' >/dev/null 2>&1) |
40 | AC_SUBST([EGL_CFLAGS]) | 42 | |
41 | +AC_SUBST([MESA_EGL_NO_X11_HEADERS]) | 43 | +AC_SUBST([MESA_EGL_NO_X11_HEADERS]) |
44 | + | ||
45 | AM_CONDITIONAL(HAVE_EGL_DRIVER_DRI2, test "x$HAVE_EGL_DRIVER_DRI2" != "x") | ||
46 | AM_CONDITIONAL(HAVE_EGL_DRIVER_GLX, test "x$HAVE_EGL_DRIVER_GLX" != "x") | ||
42 | 47 | ||
43 | AC_ARG_WITH([egl-driver-dir], | 48 | @@ -2042,6 +2050,7 @@ CXXFLAGS="$CXXFLAGS $USER_CXXFLAGS" |
44 | [AS_HELP_STRING([--with-egl-driver-dir=DIR], | ||
45 | @@ -1991,6 +1995,7 @@ CXXFLAGS="$CXXFLAGS $USER_CXXFLAGS" | ||
46 | 49 | ||
47 | dnl Substitute the config | 50 | dnl Substitute the config |
48 | AC_CONFIG_FILES([Makefile | 51 | AC_CONFIG_FILES([Makefile |
diff --git a/meta/recipes-graphics/mesa/mesa/0004-glsl-fix-builtin_compiler-cross-compilation.patch b/meta/recipes-graphics/mesa/mesa/0004-glsl-fix-builtin_compiler-cross-compilation.patch deleted file mode 100644 index 460a2748bf..0000000000 --- a/meta/recipes-graphics/mesa/mesa/0004-glsl-fix-builtin_compiler-cross-compilation.patch +++ /dev/null | |||
@@ -1,54 +0,0 @@ | |||
1 | From ab38c97f057f739533a4e1fc9de51ea5f4e6242d Mon Sep 17 00:00:00 2001 | ||
2 | From: Jonathan Liu <net147@gmail.com> | ||
3 | Date: Sat, 29 Jun 2013 11:37:20 +0200 | ||
4 | Subject: [PATCH 4/4] glsl: fix builtin_compiler cross-compilation | ||
5 | |||
6 | The target libtool is used when building host binaries, which predictably | ||
7 | doesn't work. | ||
8 | |||
9 | Upstream-Status: Submitted https://bugs.freedesktop.org/show_bug.cgi?id=44618 | ||
10 | Signed-off-by: Jonathan Liu <net147@gmail.com> | ||
11 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
12 | --- | ||
13 | src/glsl/builtin_compiler/Makefile.am | 13 +++++++++++++ | ||
14 | 1 file changed, 13 insertions(+) | ||
15 | |||
16 | diff --git a/src/glsl/builtin_compiler/Makefile.am b/src/glsl/builtin_compiler/Makefile.am | ||
17 | index e11a17f..8ebe0a2 100644 | ||
18 | --- a/src/glsl/builtin_compiler/Makefile.am | ||
19 | +++ b/src/glsl/builtin_compiler/Makefile.am | ||
20 | @@ -64,6 +64,8 @@ AM_CXXFLAGS = $(AM_CFLAGS) | ||
21 | include ../Makefile.sources | ||
22 | |||
23 | noinst_PROGRAMS = builtin_compiler | ||
24 | + | ||
25 | +if !CROSS_COMPILING | ||
26 | noinst_LTLIBRARIES = libglslcore.la libglcpp.la | ||
27 | |||
28 | libglcpp_la_SOURCES = \ | ||
29 | @@ -73,6 +75,7 @@ libglcpp_la_SOURCES = \ | ||
30 | libglslcore_la_SOURCES = \ | ||
31 | $(BUILTIN_COMPILER_GENERATED_CXX_FILES) \ | ||
32 | $(LIBGLSL_FILES) | ||
33 | +endif | ||
34 | |||
35 | builtin_compiler_SOURCES = \ | ||
36 | $(top_srcdir)/src/mesa/main/hash_table.c \ | ||
37 | @@ -81,4 +84,14 @@ builtin_compiler_SOURCES = \ | ||
38 | $(top_srcdir)/src/mesa/program/symbol_table.c \ | ||
39 | $(BUILTIN_COMPILER_CXX_FILES) \ | ||
40 | $(GLSL_COMPILER_CXX_FILES) | ||
41 | + | ||
42 | +if CROSS_COMPILING | ||
43 | +builtin_compiler_SOURCES += \ | ||
44 | + $(LIBGLCPP_GENERATED_FILES) \ | ||
45 | + $(LIBGLCPP_FILES) \ | ||
46 | + $(BUILTIN_COMPILER_GENERATED_CXX_FILES) \ | ||
47 | + $(LIBGLSL_FILES) | ||
48 | +builtin_compiler_CPPFLAGS = $(AM_CPPFLAGS) | ||
49 | +else | ||
50 | builtin_compiler_LDADD = libglslcore.la libglcpp.la | ||
51 | +endif | ||
52 | -- | ||
53 | 1.8.2.1 | ||
54 | |||
diff --git a/meta/recipes-graphics/mesa/mesa/0005-fix-out-of-tree-builds-gallium.patch b/meta/recipes-graphics/mesa/mesa/0005-fix-out-of-tree-builds-gallium.patch deleted file mode 100644 index 8c5984fd55..0000000000 --- a/meta/recipes-graphics/mesa/mesa/0005-fix-out-of-tree-builds-gallium.patch +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | Upstream-Status: Submitted | ||
2 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
3 | |||
4 | From 9e31e15ebb0adbf3cc0394c30cbc1ccd2b35a27f Mon Sep 17 00:00:00 2001 | ||
5 | From: Ross Burton <ross.burton@intel.com> | ||
6 | Date: Fri, 28 Jun 2013 11:44:58 +0100 | ||
7 | Subject: [PATCH] build: fix out-of-tree builds in gallium/auxiliary | ||
8 | |||
9 | The rules were writing files to e.g. util/u_indices_gen.py, but in an | ||
10 | out-of-tree build this directory doesn't exist in the build directory. So, | ||
11 | create the directories just in case. | ||
12 | |||
13 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
14 | --- | ||
15 | src/gallium/auxiliary/Makefile.am | 4 ++++ | ||
16 | 1 file changed, 4 insertions(+) | ||
17 | |||
18 | diff --git a/src/gallium/auxiliary/Makefile.am b/src/gallium/auxiliary/Makefile.am | ||
19 | index f14279b..0c3e7ba 100644 | ||
20 | --- a/src/gallium/auxiliary/Makefile.am | ||
21 | +++ b/src/gallium/auxiliary/Makefile.am | ||
22 | @@ -38,13 +38,17 @@ libgallium_la_SOURCES += \ | ||
23 | endif | ||
24 | |||
25 | indices/u_indices_gen.c: $(srcdir)/indices/u_indices_gen.py | ||
26 | + mkdir --parents indices | ||
27 | $(AM_V_GEN) $(PYTHON2) $< > $@ | ||
28 | |||
29 | indices/u_unfilled_gen.c: $(srcdir)/indices/u_unfilled_gen.py | ||
30 | + mkdir --parents indices | ||
31 | $(AM_V_GEN) $(PYTHON2) $< > $@ | ||
32 | |||
33 | util/u_format_srgb.c: $(srcdir)/util/u_format_srgb.py | ||
34 | + mkdir --parents util | ||
35 | $(AM_V_GEN) $(PYTHON2) $< > $@ | ||
36 | |||
37 | util/u_format_table.c: $(srcdir)/util/u_format_table.py $(srcdir)/util/u_format_pack.py $(srcdir)/util/u_format_parse.py $(srcdir)/util/u_format.csv | ||
38 | + mkdir --parents util | ||
39 | $(AM_V_GEN) $(PYTHON2) $(srcdir)/util/u_format_table.py $(srcdir)/util/u_format.csv > $@ | ||
40 | -- | ||
41 | 1.7.10.4 | ||
42 | |||
diff --git a/meta/recipes-graphics/mesa/mesa/0005-llvmpipe-remove-the-power-of-two-sizeof-struct-cmd_b.patch b/meta/recipes-graphics/mesa/mesa/0005-llvmpipe-remove-the-power-of-two-sizeof-struct-cmd_b.patch new file mode 100644 index 0000000000..d86421b767 --- /dev/null +++ b/meta/recipes-graphics/mesa/mesa/0005-llvmpipe-remove-the-power-of-two-sizeof-struct-cmd_b.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From 33098ef45e6035f3348040a25641f95c95266103 Mon Sep 17 00:00:00 2001 | ||
2 | From: Brian Paul <brianp@vmware.com> | ||
3 | Date: Wed, 6 Mar 2013 16:57:20 -0700 | ||
4 | Subject: [PATCH 5/5] llvmpipe: remove the power of two sizeof(struct | ||
5 | cmd_block) assertion | ||
6 | MIME-Version: 1.0 | ||
7 | Content-Type: text/plain; charset=UTF-8 | ||
8 | Content-Transfer-Encoding: 8bit | ||
9 | |||
10 | It fails on 32-bit systems (I only tested on 64-bit). Power of two | ||
11 | size isn't required, so just remove the assertion. | ||
12 | |||
13 | Reviewed-by: José Fonseca <jfonseca@vmware.com> | ||
14 | |||
15 | Upstream-Status: Backport | ||
16 | http://cgit.freedesktop.org/mesa/mesa/commit/?id=9915636fb8afe75ee2e8e013e4f495a4cb937afb | ||
17 | --- | ||
18 | src/gallium/drivers/llvmpipe/lp_scene.c | 7 ------- | ||
19 | 1 file changed, 7 deletions(-) | ||
20 | |||
21 | diff --git a/src/gallium/drivers/llvmpipe/lp_scene.c b/src/gallium/drivers/llvmpipe/lp_scene.c | ||
22 | index e145391..c88bc95 100644 | ||
23 | --- a/src/gallium/drivers/llvmpipe/lp_scene.c | ||
24 | +++ b/src/gallium/drivers/llvmpipe/lp_scene.c | ||
25 | @@ -76,13 +76,6 @@ lp_scene_create( struct pipe_context *pipe ) | ||
26 | assert(maxCommandBytes < LP_SCENE_MAX_SIZE); | ||
27 | /* We'll also need space for at least one other data block */ | ||
28 | assert(maxCommandPlusData <= LP_SCENE_MAX_SIZE); | ||
29 | - | ||
30 | - /* Ideally, the size of a cmd_block object will be a power of two | ||
31 | - * in order to avoid wasting space when we allocation them from | ||
32 | - * data blocks (which are power of two also). | ||
33 | - */ | ||
34 | - assert(sizeof(struct cmd_block) == | ||
35 | - util_next_power_of_two(sizeof(struct cmd_block))); | ||
36 | } | ||
37 | #endif | ||
38 | |||
39 | -- | ||
40 | 1.8.2.1 | ||
41 | |||