summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2017-12-29 10:38:04 -0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-01-03 09:26:37 +0000
commitb38f910e1cef12a03cd736c85d99874d47a4a2ab (patch)
tree555fa7a8cea9c919c0e848a5b0480ae16aa19962 /meta/recipes-graphics/mesa
parent56be88fcd45ef308bcc7b65254a625bd7a3511b1 (diff)
downloadpoky-b38f910e1cef12a03cd736c85d99874d47a4a2ab.tar.gz
mesa: Upgrade to 17.3.1 release
The 17.3.1 release, published in December 21, 2017, is the first 17.3 stable release for use. It fixes a number of issues since 17.3.0 release. The release notes can be seen at: - 17.3.0: https://www.mesa3d.org/relnotes/17.3.0.html - 17.3.1: https://www.mesa3d.org/relnotes/17.3.1.html This commit has reworked few patches, to apply to the new source, and dropped the backported ones. (From OE-Core rev: 75ec119eabb625509121a329b8d0f9c3cf20e0aa) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> 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-configure.ac-Always-check-for-expat.patch51
-rw-r--r--meta/recipes-graphics/mesa/files/Use-Python-3-to-execute-the-scripts.patch32
-rw-r--r--meta/recipes-graphics/mesa/files/llvm-config-version.patch39
-rw-r--r--meta/recipes-graphics/mesa/files/replace_glibc_check_with_linux.patch12
-rw-r--r--meta/recipes-graphics/mesa/files/vulkan-mkdir.patch37
-rw-r--r--meta/recipes-graphics/mesa/mesa-gl_17.3.1.bb (renamed from meta/recipes-graphics/mesa/mesa-gl_17.2.6.bb)0
-rw-r--r--meta/recipes-graphics/mesa/mesa.inc4
-rw-r--r--meta/recipes-graphics/mesa/mesa_17.3.1.bb (renamed from meta/recipes-graphics/mesa/mesa_17.2.6.bb)7
8 files changed, 68 insertions, 114 deletions
diff --git a/meta/recipes-graphics/mesa/files/0001-configure.ac-Always-check-for-expat.patch b/meta/recipes-graphics/mesa/files/0001-configure.ac-Always-check-for-expat.patch
deleted file mode 100644
index 4753c49d22..0000000000
--- a/meta/recipes-graphics/mesa/files/0001-configure.ac-Always-check-for-expat.patch
+++ /dev/null
@@ -1,51 +0,0 @@
1From 1f7d752193f02d15d5923cee992e8f46d4c6df1b Mon Sep 17 00:00:00 2001
2From: Jussi Kukkonen <jussi.kukkonen@intel.com>
3Date: Mon, 28 Aug 2017 13:51:49 +0300
4Subject: [PATCH] configure.ac: Always check for expat
5
6expat was not checked if dri was not built leading to build failure
7in vulkan driver: backport a fix (a combination of multiple commits
8that should end up in 17.3).
9
10Upstream-Status: Backport
11Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
12---
13 configure.ac | 15 ++++++---------
14 1 file changed, 6 insertions(+), 9 deletions(-)
15
16diff --git a/configure.ac b/configure.ac
17index fd346c8aa2..662faecefa 100644
18--- a/configure.ac
19+++ b/configure.ac
20@@ -1777,6 +1777,12 @@ if test "x$with_dri_drivers" = xno; then
21 with_dri_drivers=''
22 fi
23
24+# Check for expat
25+PKG_CHECK_MODULES([EXPAT], [expat])
26+PKG_CHECK_MODULES([EXPAT], [expat],,
27+ [PKG_CHECK_MODULES([EXPAT], [expat21])]
28+)
29+
30 dnl If $with_dri_drivers is yes, drivers will be added through
31 dnl platform checks. Set DEFINES and LIB_DEPS
32 if test "x$enable_dri" = xyes; then
33@@ -1810,15 +1816,6 @@ if test "x$enable_dri" = xyes; then
34 with_dri_drivers="i915 i965 nouveau r200 radeon swrast"
35 fi
36
37- # Check for expat
38- PKG_CHECK_MODULES([EXPAT], [expat], [],
39- # expat version 2.0 and earlier do not provide expat.pc
40- [AC_CHECK_HEADER([expat.h],[],
41- [AC_MSG_ERROR([Expat headers required for DRI not found])])
42- AC_CHECK_LIB([expat],[XML_ParserCreate],[],
43- [AC_MSG_ERROR([Expat library required for DRI not found])])
44- EXPAT_LIBS="-lexpat"])
45-
46 # put all the necessary libs together
47 DRI_LIB_DEPS="$DRI_LIB_DEPS $SELINUX_LIBS $LIBDRM_LIBS $EXPAT_LIBS -lm $PTHREAD_LIBS $DLOPEN_LIBS"
48 fi
49--
502.14.1
51
diff --git a/meta/recipes-graphics/mesa/files/Use-Python-3-to-execute-the-scripts.patch b/meta/recipes-graphics/mesa/files/Use-Python-3-to-execute-the-scripts.patch
new file mode 100644
index 0000000000..0b4aabf979
--- /dev/null
+++ b/meta/recipes-graphics/mesa/files/Use-Python-3-to-execute-the-scripts.patch
@@ -0,0 +1,32 @@
1From 18c3e684a8259a0644214f88c7ead7fa31573fd9 Mon Sep 17 00:00:00 2001
2From: Otavio Salvador <otavio@ossystems.com.br>
3Date: Fri, 29 Dec 2017 10:27:59 -0200
4Subject: [PATCH] Use Python 3 to execute the scripts
5Organization: O.S. Systems Software LTDA.
6
7The MESA build system uses Python 2 but as OE-Core has moved away from
8it, we change it to use Python 3 instead.
9
10Upstream-Status: Inappropriate [ configuration ]
11
12Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
13---
14 configure.ac | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/configure.ac b/configure.ac
18index b107f04c2e..055546142d 100644
19--- a/configure.ac
20+++ b/configure.ac
21@@ -114,7 +114,7 @@ AC_PROG_CXX
22 AM_PROG_CC_C_O
23 AM_PROG_AS
24 AX_CHECK_GNU_MAKE
25-AC_CHECK_PROGS([PYTHON2], [python2.7 python2 python])
26+AC_CHECK_PROGS([PYTHON2], [python3.5 python3 python])
27 AC_PROG_SED
28 AC_PROG_MKDIR_P
29
30--
312.15.1
32
diff --git a/meta/recipes-graphics/mesa/files/llvm-config-version.patch b/meta/recipes-graphics/mesa/files/llvm-config-version.patch
index aa33a1e915..fd79991aab 100644
--- a/meta/recipes-graphics/mesa/files/llvm-config-version.patch
+++ b/meta/recipes-graphics/mesa/files/llvm-config-version.patch
@@ -1,18 +1,24 @@
1When building llvm from git or svn it embeds the svn/git revision into internal version string 1From: Otavio Salvador <otavio@ossystems.com.br>
2Subject: [PATCH] Properly get LLVM version when using LLVM Git releases
2 3
3$ /mnt/a/oe/build/tmp/work/corei7-64-bec-linux/mesa/2_17.1.5-r0/recipe-sysroot/usr/lib/llvm5.0/llvm-config-host --version 4$ llvm-config-host --version
45.0.0git-9a5c333388c 55.0.0git-9a5c333388c
5 6
6We need to ignore everything after 5.0.0 which is what the cut cmd is doing 7We need to ignore everything after 5.0.0 which is what the cut cmd is
8doing
7 9
8Upstream-Status: Pending 10Upstream-Status: Pending
9Signed-off-by: Khem Raj <raj.khem@gmail.com> 11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
13---
14 configure.ac | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
10 16
11Index: mesa-17.1.5/configure.ac 17diff --git a/configure.ac b/configure.ac
12=================================================================== 18index a02173f244..b107f04c2e 100644
13--- mesa-17.1.5.orig/configure.ac 19--- a/configure.ac
14+++ mesa-17.1.5/configure.ac 20+++ b/configure.ac
15@@ -967,7 +967,7 @@ strip_unwanted_llvm_flags() { 21@@ -995,7 +995,7 @@ strip_unwanted_llvm_flags() {
16 22
17 llvm_set_environment_variables() { 23 llvm_set_environment_variables() {
18 if test "x$LLVM_CONFIG" != xno; then 24 if test "x$LLVM_CONFIG" != xno; then
@@ -21,12 +27,15 @@ Index: mesa-17.1.5/configure.ac
21 LLVM_CPPFLAGS=`strip_unwanted_llvm_flags "$LLVM_CONFIG --cppflags"` 27 LLVM_CPPFLAGS=`strip_unwanted_llvm_flags "$LLVM_CONFIG --cppflags"`
22 LLVM_INCLUDEDIR=`$LLVM_CONFIG --includedir` 28 LLVM_INCLUDEDIR=`$LLVM_CONFIG --includedir`
23 LLVM_LIBDIR=`$LLVM_CONFIG --libdir` 29 LLVM_LIBDIR=`$LLVM_CONFIG --libdir`
24@@ -2560,7 +2560,7 @@ if test "x$enable_llvm" = xyes; then 30@@ -2644,7 +2644,7 @@ detect_old_buggy_llvm() {
31 dnl ourselves.
25 dnl (See https://llvm.org/bugs/show_bug.cgi?id=6823) 32 dnl (See https://llvm.org/bugs/show_bug.cgi?id=6823)
26 if test "x$enable_llvm_shared_libs" = xyes; then 33 dnl We can't use $LLVM_VERSION because it has 'svn' stripped out,
27 dnl We can't use $LLVM_VERSION because it has 'svn' stripped out, 34- LLVM_SO_NAME=LLVM-`$LLVM_CONFIG --version`
28- LLVM_SO_NAME=LLVM-`$LLVM_CONFIG --version` 35+ LLVM_SO_NAME=LLVM-`$LLVM_CONFIG --version | cut -c1-5`
29+ LLVM_SO_NAME=LLVM-`$LLVM_CONFIG --version|cut -c1-5` 36 AS_IF([test -f "$LLVM_LIBDIR/lib$LLVM_SO_NAME.$IMP_LIB_EXT"], [llvm_have_one_so=yes])
30 AS_IF([test -f "$LLVM_LIBDIR/lib$LLVM_SO_NAME.$IMP_LIB_EXT"], [llvm_have_one_so=yes])
31 37
32 if test "x$llvm_have_one_so" = xyes; then 38 if test "x$llvm_have_one_so" = xyes; then
39--
402.15.1
41
diff --git a/meta/recipes-graphics/mesa/files/replace_glibc_check_with_linux.patch b/meta/recipes-graphics/mesa/files/replace_glibc_check_with_linux.patch
index 0280ee8599..98f910f89f 100644
--- a/meta/recipes-graphics/mesa/files/replace_glibc_check_with_linux.patch
+++ b/meta/recipes-graphics/mesa/files/replace_glibc_check_with_linux.patch
@@ -1,26 +1,28 @@
1endianness check is OS wide and not specific to libc 1From: Otavio Salvador <otavio@ossystems.com.br>
2Subject: [PATCH] endianness check is OS wide and not specific to libc
2 3
3Signed-off-by: Khem Raj <raj.khem@gmail.com>
4Upstream-Status: Pending 4Upstream-Status: Pending
5 5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
6Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> 7Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
8Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
7--- 9---
8 src/util/u_endian.h | 2 +- 10 src/util/u_endian.h | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-) 11 1 file changed, 1 insertion(+), 1 deletion(-)
10 12
11diff --git a/src/util/u_endian.h b/src/util/u_endian.h 13diff --git a/src/util/u_endian.h b/src/util/u_endian.h
12index b9d563d..2d5eab9 100644 14index 9e09f80181..3148033fae 100644
13--- a/src/util/u_endian.h 15--- a/src/util/u_endian.h
14+++ b/src/util/u_endian.h 16+++ b/src/util/u_endian.h
15@@ -27,7 +27,7 @@ 17@@ -27,7 +27,7 @@
16 #ifndef U_ENDIAN_H 18 #ifndef U_ENDIAN_H
17 #define U_ENDIAN_H 19 #define U_ENDIAN_H
18 20
19-#if defined(__GLIBC__) || defined(ANDROID) 21-#if defined(__GLIBC__) || defined(ANDROID) || defined(__CYGWIN__)
20+#if defined(__linux__) 22+#if defined(__linux__)
21 #include <endian.h> 23 #include <endian.h>
22 24
23 #if __BYTE_ORDER == __LITTLE_ENDIAN 25 #if __BYTE_ORDER == __LITTLE_ENDIAN
24-- 26--
252.1.4 272.15.1
26 28
diff --git a/meta/recipes-graphics/mesa/files/vulkan-mkdir.patch b/meta/recipes-graphics/mesa/files/vulkan-mkdir.patch
deleted file mode 100644
index 15ee5eeb14..0000000000
--- a/meta/recipes-graphics/mesa/files/vulkan-mkdir.patch
+++ /dev/null
@@ -1,37 +0,0 @@
1Upstream-Status: Submitted
2Signed-off-by: Ross Burton <ross.burton@intel.com>
3
4From c78979fd95a1c4f732f7e6edf0f32c524e5955b8 Mon Sep 17 00:00:00 2001
5From: Ross Burton <ross.burton@intel.com>
6Date: Wed, 12 Jul 2017 17:10:07 +0100
7Subject: [PATCH] src/intel/Makefile.vulkan.am: create target directories when
8 required
9
10In out-of-tree builds src/intel/vulkan won't exist, so always create it before
11writing into it.
12
13Signed-off-by: Ross Burton <ross.burton@intel.com>
14---
15 src/intel/Makefile.vulkan.am | 2 ++
16 1 file changed, 2 insertions(+)
17
18diff --git a/src/intel/Makefile.vulkan.am b/src/intel/Makefile.vulkan.am
19index 3857a5dc62..26e9cd410c 100644
20--- a/src/intel/Makefile.vulkan.am
21+++ b/src/intel/Makefile.vulkan.am
22@@ -44,11 +44,13 @@ EXTRA_DIST += \
23 vulkan/TODO
24
25 vulkan/dev_icd.json : vulkan/dev_icd.json.in
26+ $(MKDIR_GEN)
27 $(AM_V_GEN) $(SED) \
28 -e "s#@build_libdir@#${abs_top_builddir}/${LIB_DIR}#" \
29 < $(srcdir)/vulkan/dev_icd.json.in > $@
30
31 vulkan/intel_icd.@host_cpu@.json : vulkan/intel_icd.json.in
32+ $(MKDIR_GEN)
33 $(AM_V_GEN) $(SED) \
34 -e "s#@install_libdir@#${libdir}#" \
35 < $(srcdir)/vulkan/intel_icd.json.in > $@
36--
372.11.0
diff --git a/meta/recipes-graphics/mesa/mesa-gl_17.2.6.bb b/meta/recipes-graphics/mesa/mesa-gl_17.3.1.bb
index 73267eb4f0..73267eb4f0 100644
--- a/meta/recipes-graphics/mesa/mesa-gl_17.2.6.bb
+++ b/meta/recipes-graphics/mesa/mesa-gl_17.3.1.bb
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index cab8e4bfe7..15967959a4 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -18,7 +18,7 @@ DEPENDS = "expat makedepend-native flex-native bison-native libxml2-native zlib
18EXTRANATIVEPATH += "chrpath-native" 18EXTRANATIVEPATH += "chrpath-native"
19PROVIDES = "virtual/libgl virtual/libgles1 virtual/libgles2 virtual/egl virtual/mesa" 19PROVIDES = "virtual/libgl virtual/libgles1 virtual/libgles2 virtual/egl virtual/mesa"
20 20
21inherit autotools pkgconfig gettext distro_features_check 21inherit autotools pkgconfig python3native gettext distro_features_check
22 22
23ANY_OF_DISTRO_FEATURES = "opengl vulkan" 23ANY_OF_DISTRO_FEATURES = "opengl vulkan"
24 24
@@ -59,7 +59,7 @@ PACKAGECONFIG[dri3] = "--enable-dri3, --disable-dri3, dri3proto presentproto lib
59VULKAN_DRIVERS = "" 59VULKAN_DRIVERS = ""
60VULKAN_DRIVERS_append_x86 = ",intel" 60VULKAN_DRIVERS_append_x86 = ",intel"
61VULKAN_DRIVERS_append_x86-64 = ",intel" 61VULKAN_DRIVERS_append_x86-64 = ",intel"
62PACKAGECONFIG[vulkan] = "--with-vulkan-drivers=${VULKAN_DRIVERS}, --without-vulkan-drivers" 62PACKAGECONFIG[vulkan] = "--with-vulkan-drivers=${VULKAN_DRIVERS}, --without-vulkan-drivers, python3-mako-native"
63 63
64PACKAGECONFIG[opengl] = "--enable-opengl, --disable-opengl" 64PACKAGECONFIG[opengl] = "--enable-opengl, --disable-opengl"
65 65
diff --git a/meta/recipes-graphics/mesa/mesa_17.2.6.bb b/meta/recipes-graphics/mesa/mesa_17.3.1.bb
index fc3ac75f7e..f1daa4a198 100644
--- a/meta/recipes-graphics/mesa/mesa_17.2.6.bb
+++ b/meta/recipes-graphics/mesa/mesa_17.3.1.bb
@@ -3,17 +3,16 @@ require ${BPN}.inc
3SRC_URI = "https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \ 3SRC_URI = "https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \
4 file://replace_glibc_check_with_linux.patch \ 4 file://replace_glibc_check_with_linux.patch \
5 file://disable-asm-on-non-gcc.patch \ 5 file://disable-asm-on-non-gcc.patch \
6 file://Use-Python-3-to-execute-the-scripts.patch \
6 file://0001-Use-wayland-scanner-in-the-path.patch \ 7 file://0001-Use-wayland-scanner-in-the-path.patch \
7 file://0002-hardware-gloat.patch \ 8 file://0002-hardware-gloat.patch \
8 file://vulkan-mkdir.patch \
9 file://llvm-config-version.patch \ 9 file://llvm-config-version.patch \
10 file://0001-winsys-svga-drm-Include-sys-types.h.patch \ 10 file://0001-winsys-svga-drm-Include-sys-types.h.patch \
11 file://0001-configure.ac-Always-check-for-expat.patch \
12 file://0001-Makefile.vulkan.am-explictly-add-lib-expat-to-intel-.patch \ 11 file://0001-Makefile.vulkan.am-explictly-add-lib-expat-to-intel-.patch \
13 " 12 "
14 13
15SRC_URI[md5sum] = "862f2b7e2a08554570b192a89f723b6f" 14SRC_URI[md5sum] = "b4b021279ea21e1eb8a1369afa6f19a0"
16SRC_URI[sha256sum] = "6ad85224620330be26ab68c8fc78381b12b38b610ade2db8716b38faaa8f30de" 15SRC_URI[sha256sum] = "9ae607e0998a586fb2c866cfc8e45e6f52d1c56cb1b41288253ea83eada824c1"
17 16
18#because we cannot rely on the fact that all apps will use pkgconfig, 17#because we cannot rely on the fact that all apps will use pkgconfig,
19#make eglplatform.h independent of MESA_EGL_NO_X11_HEADER 18#make eglplatform.h independent of MESA_EGL_NO_X11_HEADER