summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics
diff options
context:
space:
mode:
authorAlistair Francis <alistair@alistair23.me>2019-12-20 22:36:48 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-01 10:46:16 +0000
commit34773a298ed795e9d43bf59f0c8456e6b601b0f2 (patch)
treef647fd94b97384769e24d51538f9ab4b435839d0 /meta/recipes-graphics
parentfc2ba05725d0d179f312706e68edbd3577e44a9d (diff)
downloadpoky-34773a298ed795e9d43bf59f0c8456e6b601b0f2.tar.gz
mesa: Upgrade to 19.3.1
Upgrade mesa to 19.3 and refresh the patches. As MESA_EGL_NO_X11_HEADERS was renamed to EGL_NO_X11 in [1] we are going to change the do_install and add a patch to libepoxy to use the new define. 1: https://gitlab.freedesktop.org/mesa/mesa/commit/6202a13b71e18dc31ba7e2f4ea915b67eacc1ddb (From OE-Core rev: 7a3d575ba56311c46122dfe9fa88094859fe9713) Signed-off-by: Alistair Francis <alistair@alistair23.me> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r--meta/recipes-graphics/libepoxy/files/0001-dispatch_common.h-define-also-EGL_NO_X11.patch26
-rw-r--r--meta/recipes-graphics/libepoxy/libepoxy_1.5.4.bb1
-rw-r--r--meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch18
-rw-r--r--meta/recipes-graphics/mesa/files/0002-meson.build-make-TLS-ELF-optional.patch18
-rw-r--r--meta/recipes-graphics/mesa/files/0003-Allow-enable-DRI-without-DRI-drivers.patch10
-rw-r--r--meta/recipes-graphics/mesa/files/0004-Revert-mesa-Enable-asm-unconditionally-now-that-gen_.patch10
-rw-r--r--meta/recipes-graphics/mesa/mesa-gl_19.3.1.bb (renamed from meta/recipes-graphics/mesa/mesa-gl_19.2.4.bb)0
-rw-r--r--meta/recipes-graphics/mesa/mesa_19.3.1.bb (renamed from meta/recipes-graphics/mesa/mesa_19.2.4.bb)6
8 files changed, 58 insertions, 31 deletions
diff --git a/meta/recipes-graphics/libepoxy/files/0001-dispatch_common.h-define-also-EGL_NO_X11.patch b/meta/recipes-graphics/libepoxy/files/0001-dispatch_common.h-define-also-EGL_NO_X11.patch
new file mode 100644
index 0000000000..7262945181
--- /dev/null
+++ b/meta/recipes-graphics/libepoxy/files/0001-dispatch_common.h-define-also-EGL_NO_X11.patch
@@ -0,0 +1,26 @@
1From 6f15cc28d17cfdd86f5974f06ad97b8afedd5627 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Fri, 25 Oct 2019 11:09:34 +0000
4Subject: [PATCH] dispatch_common.h: define also EGL_NO_X11
5
6MESA_EGL_NO_X11_HEADERS was renamed to EGL_NO_X11 in:
7https://github.com/mesa3d/mesa/commit/6202a13b71e18dc31ba7e2f4ea915b67eacc1ddb
8
9Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
10Upstream-Status: Pending
11---
12 src/dispatch_common.h | 1 +
13 1 file changed, 1 insertion(+)
14
15diff --git a/src/dispatch_common.h b/src/dispatch_common.h
16index dcb3a35..c206253 100644
17--- a/src/dispatch_common.h
18+++ b/src/dispatch_common.h
19@@ -52,6 +52,7 @@
20 * should do the same
21 */
22 # define MESA_EGL_NO_X11_HEADERS 1
23+# define EGL_NO_X11 1
24 # endif
25 #include "epoxy/egl.h"
26 #endif
diff --git a/meta/recipes-graphics/libepoxy/libepoxy_1.5.4.bb b/meta/recipes-graphics/libepoxy/libepoxy_1.5.4.bb
index 4caf672369..af9867407e 100644
--- a/meta/recipes-graphics/libepoxy/libepoxy_1.5.4.bb
+++ b/meta/recipes-graphics/libepoxy/libepoxy_1.5.4.bb
@@ -10,6 +10,7 @@ LICENSE = "MIT"
10LIC_FILES_CHKSUM = "file://COPYING;md5=58ef4c80d401e07bd9ee8b6b58cf464b" 10LIC_FILES_CHKSUM = "file://COPYING;md5=58ef4c80d401e07bd9ee8b6b58cf464b"
11 11
12SRC_URI = "https://github.com/anholt/${BPN}/releases/download/${PV}/${BP}.tar.xz \ 12SRC_URI = "https://github.com/anholt/${BPN}/releases/download/${PV}/${BP}.tar.xz \
13 file://0001-dispatch_common.h-define-also-EGL_NO_X11.patch \
13 " 14 "
14SRC_URI[md5sum] = "00f47ad447321f9dc59f85bc1c9d0467" 15SRC_URI[md5sum] = "00f47ad447321f9dc59f85bc1c9d0467"
15SRC_URI[sha256sum] = "0bd2cc681dfeffdef739cb29913f8c3caa47a88a451fd2bc6e606c02997289d2" 16SRC_URI[sha256sum] = "0bd2cc681dfeffdef739cb29913f8c3caa47a88a451fd2bc6e606c02997289d2"
diff --git a/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch b/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
index 1869e11059..085254323c 100644
--- a/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
+++ b/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
@@ -1,6 +1,6 @@
1From b6d9bc97cb0e8c540a45dba5440b036fb940ff95 Mon Sep 17 00:00:00 2001 1From 0d9ed002eff176b902da266d89829a9b0cb10946 Mon Sep 17 00:00:00 2001
2From: Alistair Francis <alistair.francis@wdc.com> 2From: Alistair Francis <alistair@alistair23.me>
3Date: Mon, 11 Nov 2019 09:38:15 -0800 3Date: Thu, 14 Nov 2019 13:04:49 -0800
4Subject: [PATCH] meson.build: check for all linux host_os combinations 4Subject: [PATCH] meson.build: check for all linux host_os combinations
5 5
6Make sure that we are also looking for our host_os combinations like 6Make sure that we are also looking for our host_os combinations like
@@ -13,30 +13,30 @@ Upstream-Status: Pending
13Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> 13Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
14Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> 14Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
15Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> 15Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
16Signed-off-by: Alistair Francis <alistair.francis@wdc.com> 16Signed-off-by: Alistair Francis <alistair@alistair23.me>
17 17
18--- 18---
19 meson.build | 4 ++-- 19 meson.build | 4 ++--
20 1 file changed, 2 insertions(+), 2 deletions(-) 20 1 file changed, 2 insertions(+), 2 deletions(-)
21 21
22diff --git a/meson.build b/meson.build 22diff --git a/meson.build b/meson.build
23index d584152..a1f098c 100644 23index 898d025..09e3759 100644
24--- a/meson.build 24--- a/meson.build
25+++ b/meson.build 25+++ b/meson.build
26@@ -117,7 +117,7 @@ with_any_opengl = with_opengl or with_gles1 or with_gles2 26@@ -124,7 +124,7 @@ with_any_opengl = with_opengl or with_gles1 or with_gles2
27 # Only build shared_glapi if at least one OpenGL API is enabled 27 # Only build shared_glapi if at least one OpenGL API is enabled
28 with_shared_glapi = get_option('shared-glapi') and with_any_opengl 28 with_shared_glapi = with_shared_glapi and with_any_opengl
29 29
30-system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'gnu/kfreebsd', 'dragonfly', 'linux', 'sunos'].contains(host_machine.system()) 30-system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'gnu/kfreebsd', 'dragonfly', 'linux', 'sunos'].contains(host_machine.system())
31+system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'dragonfly'].contains(host_machine.system()) or host_machine.system().startswith('linux') 31+system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'dragonfly'].contains(host_machine.system()) or host_machine.system().startswith('linux')
32 32
33 dri_drivers = get_option('dri-drivers') 33 dri_drivers = get_option('dri-drivers')
34 if dri_drivers.contains('auto') 34 if dri_drivers.contains('auto')
35@@ -856,7 +856,7 @@ if cc.compiles('__uint128_t foo(void) { return 0; }', 35@@ -884,7 +884,7 @@ if cc.compiles('__uint128_t foo(void) { return 0; }',
36 endif 36 endif
37 37
38 # TODO: this is very incomplete 38 # TODO: this is very incomplete
39-if ['linux', 'cygwin', 'gnu', 'gnu/kfreebsd'].contains(host_machine.system()) 39-if ['linux', 'cygwin', 'gnu', 'freebsd', 'gnu/kfreebsd'].contains(host_machine.system())
40+if ['cygwin', 'gnu', 'gnu/kfreebsd'].contains(host_machine.system()) or host_machine.system().startswith('linux') 40+if ['cygwin', 'gnu', 'gnu/kfreebsd'].contains(host_machine.system()) or host_machine.system().startswith('linux')
41 pre_args += '-D_GNU_SOURCE' 41 pre_args += '-D_GNU_SOURCE'
42 elif host_machine.system() == 'sunos' 42 elif host_machine.system() == 'sunos'
diff --git a/meta/recipes-graphics/mesa/files/0002-meson.build-make-TLS-ELF-optional.patch b/meta/recipes-graphics/mesa/files/0002-meson.build-make-TLS-ELF-optional.patch
index 199ed572d5..cd35a1f850 100644
--- a/meta/recipes-graphics/mesa/files/0002-meson.build-make-TLS-ELF-optional.patch
+++ b/meta/recipes-graphics/mesa/files/0002-meson.build-make-TLS-ELF-optional.patch
@@ -1,13 +1,13 @@
1From af6923544de02ded648a736e07b9bd8b7c52dba9 Mon Sep 17 00:00:00 2001 1From df835389699b32bb6610b39972502e323f8e09e5 Mon Sep 17 00:00:00 2001
2From: Alistair Francis <alistair.francis@wdc.com> 2From: Alistair Francis <alistair@alistair23.me>
3Date: Wed, 23 Oct 2019 09:46:28 -0700 3Date: Thu, 14 Nov 2019 13:08:31 -0800
4Subject: [PATCH] meson.build: make TLS ELF optional 4Subject: [PATCH] meson.build: make TLS ELF optional
5 5
6USE_ELF_TLS has replaced GLX_USE_TLS so this patch is the original "make 6USE_ELF_TLS has replaced GLX_USE_TLS so this patch is the original "make
7TLS GLX optional again" patch updated to the latest mesa. 7TLS GLX optional again" patch updated to the latest mesa.
8 8
9Upstream-Status: Inappropriate [configuration] 9Upstream-Status: Inappropriate [configuration]
10Signed-off-by: Alistair Francis <alistair.francis@wdc.com> 10Signed-off-by: Alistair Francis <alistair@alistair23.me>
11 11
12--- 12---
13 meson.build | 2 +- 13 meson.build | 2 +-
@@ -15,23 +15,23 @@ Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
15 2 files changed, 7 insertions(+), 1 deletion(-) 15 2 files changed, 7 insertions(+), 1 deletion(-)
16 16
17diff --git a/meson.build b/meson.build 17diff --git a/meson.build b/meson.build
18index a1f098c..1e31eb4 100644 18index 09e3759..a954118 100644
19--- a/meson.build 19--- a/meson.build
20+++ b/meson.build 20+++ b/meson.build
21@@ -378,7 +378,7 @@ if with_egl and not (with_platform_drm or with_platform_surfaceless or with_plat 21@@ -387,7 +387,7 @@ if with_egl and not (with_platform_drm or with_platform_surfaceless or with_plat
22 endif 22 endif
23 23
24 # Android uses emutls for versions <= P/28. For USE_ELF_TLS we need ELF TLS. 24 # Android uses emutls for versions <= P/28. For USE_ELF_TLS we need ELF TLS.
25-if not with_platform_android or get_option('platform-sdk-version') >= 29 25-if host_machine.system() != 'windows' and (not with_platform_android or get_option('platform-sdk-version') >= 29)
26+if (not with_platform_android or get_option('platform-sdk-version') >= 29) and get_option('elf-tls') 26+if (not with_platform_android or get_option('platform-sdk-version') >= 29) and get_option('elf-tls')
27 pre_args += '-DUSE_ELF_TLS' 27 pre_args += '-DUSE_ELF_TLS'
28 endif 28 endif
29 29
30diff --git a/meson_options.txt b/meson_options.txt 30diff --git a/meson_options.txt b/meson_options.txt
31index b768c15..76cef24 100644 31index 626baf3..637ff14 100644
32--- a/meson_options.txt 32--- a/meson_options.txt
33+++ b/meson_options.txt 33+++ b/meson_options.txt
34@@ -333,6 +333,12 @@ option( 34@@ -341,6 +341,12 @@ option(
35 value : true, 35 value : true,
36 description : 'Enable direct rendering in GLX and EGL for DRI', 36 description : 'Enable direct rendering in GLX and EGL for DRI',
37 ) 37 )
diff --git a/meta/recipes-graphics/mesa/files/0003-Allow-enable-DRI-without-DRI-drivers.patch b/meta/recipes-graphics/mesa/files/0003-Allow-enable-DRI-without-DRI-drivers.patch
index c20a1f7c52..a0536c87ac 100644
--- a/meta/recipes-graphics/mesa/files/0003-Allow-enable-DRI-without-DRI-drivers.patch
+++ b/meta/recipes-graphics/mesa/files/0003-Allow-enable-DRI-without-DRI-drivers.patch
@@ -1,4 +1,4 @@
1From 5ad6515238bc042cccf9959abad44fdee9aeb07f Mon Sep 17 00:00:00 2001 1From 7eaa21a79ce6d6e92f6bf98c28b68e3fcb4d7874 Mon Sep 17 00:00:00 2001
2From: Fabio Berton <fabio.berton@ossystems.com.br> 2From: Fabio Berton <fabio.berton@ossystems.com.br>
3Date: Wed, 12 Jun 2019 14:18:31 -0300 3Date: Wed, 12 Jun 2019 14:18:31 -0300
4Subject: [PATCH] Allow enable DRI without DRI drivers 4Subject: [PATCH] Allow enable DRI without DRI drivers
@@ -15,10 +15,10 @@ Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
15 2 files changed, 7 insertions(+), 1 deletion(-) 15 2 files changed, 7 insertions(+), 1 deletion(-)
16 16
17diff --git a/meson.build b/meson.build 17diff --git a/meson.build b/meson.build
18index 1e31eb4..512eec6 100644 18index a954118..62864c6 100644
19--- a/meson.build 19--- a/meson.build
20+++ b/meson.build 20+++ b/meson.build
21@@ -147,7 +147,7 @@ with_dri_r200 = dri_drivers.contains('r200') 21@@ -154,7 +154,7 @@ with_dri_r200 = dri_drivers.contains('r200')
22 with_dri_nouveau = dri_drivers.contains('nouveau') 22 with_dri_nouveau = dri_drivers.contains('nouveau')
23 with_dri_swrast = dri_drivers.contains('swrast') 23 with_dri_swrast = dri_drivers.contains('swrast')
24 24
@@ -28,10 +28,10 @@ index 1e31eb4..512eec6 100644
28 gallium_drivers = get_option('gallium-drivers') 28 gallium_drivers = get_option('gallium-drivers')
29 if gallium_drivers.contains('auto') 29 if gallium_drivers.contains('auto')
30diff --git a/meson_options.txt b/meson_options.txt 30diff --git a/meson_options.txt b/meson_options.txt
31index 76cef24..a8abd04 100644 31index 637ff14..700c34c 100644
32--- a/meson_options.txt 32--- a/meson_options.txt
33+++ b/meson_options.txt 33+++ b/meson_options.txt
34@@ -34,6 +34,12 @@ option( 34@@ -35,6 +35,12 @@ option(
35 choices : ['auto', 'true', 'false'], 35 choices : ['auto', 'true', 'false'],
36 description : 'enable support for dri3' 36 description : 'enable support for dri3'
37 ) 37 )
diff --git a/meta/recipes-graphics/mesa/files/0004-Revert-mesa-Enable-asm-unconditionally-now-that-gen_.patch b/meta/recipes-graphics/mesa/files/0004-Revert-mesa-Enable-asm-unconditionally-now-that-gen_.patch
index b5658d0c9d..8d614e571a 100644
--- a/meta/recipes-graphics/mesa/files/0004-Revert-mesa-Enable-asm-unconditionally-now-that-gen_.patch
+++ b/meta/recipes-graphics/mesa/files/0004-Revert-mesa-Enable-asm-unconditionally-now-that-gen_.patch
@@ -1,4 +1,4 @@
1From 1b1cb6e5ea25eaa98573328b9565728a08245997 Mon Sep 17 00:00:00 2001 1From 41cd8836d785c79381764e7de59319f87959a5cf Mon Sep 17 00:00:00 2001
2From: Alistair Francis <alistair@alistair23.me> 2From: Alistair Francis <alistair@alistair23.me>
3Date: Thu, 14 Nov 2019 09:06:02 -0800 3Date: Thu, 14 Nov 2019 09:06:02 -0800
4Subject: [PATCH] Revert "mesa: Enable asm unconditionally, now that 4Subject: [PATCH] Revert "mesa: Enable asm unconditionally, now that
@@ -15,7 +15,7 @@ Signed-off-by: Alistair Francis <alistair@alistair23.me>
15 2 files changed, 67 insertions(+), 33 deletions(-) 15 2 files changed, 67 insertions(+), 33 deletions(-)
16 16
17diff --git a/meson.build b/meson.build 17diff --git a/meson.build b/meson.build
18index 512eec6..a2bcc3a 100644 18index 62864c6..b53be8d 100644
19--- a/meson.build 19--- a/meson.build
20+++ b/meson.build 20+++ b/meson.build
21@@ -49,6 +49,7 @@ with_vulkan_icd_dir = get_option('vulkan-icd-dir') 21@@ -49,6 +49,7 @@ with_vulkan_icd_dir = get_option('vulkan-icd-dir')
@@ -26,7 +26,7 @@ index 512eec6..a2bcc3a 100644
26 with_glx_read_only_text = get_option('glx-read-only-text') 26 with_glx_read_only_text = get_option('glx-read-only-text')
27 with_glx_direct = get_option('glx-direct') 27 with_glx_direct = get_option('glx-direct')
28 with_osmesa = get_option('osmesa') 28 with_osmesa = get_option('osmesa')
29@@ -985,41 +986,68 @@ endif 29@@ -1093,41 +1094,68 @@ dep_ws2_32 = cc.find_library('ws2_32', required : with_platform_windows)
30 30
31 # TODO: shared/static? Is this even worth doing? 31 # TODO: shared/static? Is this even worth doing?
32 32
@@ -129,10 +129,10 @@ index 512eec6..a2bcc3a 100644
129 endif 129 endif
130 130
131diff --git a/meson_options.txt b/meson_options.txt 131diff --git a/meson_options.txt b/meson_options.txt
132index a8abd04..0f4bd80 100644 132index 700c34c..62e8472 100644
133--- a/meson_options.txt 133--- a/meson_options.txt
134+++ b/meson_options.txt 134+++ b/meson_options.txt
135@@ -233,6 +233,12 @@ option( 135@@ -241,6 +241,12 @@ option(
136 value : false, 136 value : false,
137 description : 'Enable GLVND support.' 137 description : 'Enable GLVND support.'
138 ) 138 )
diff --git a/meta/recipes-graphics/mesa/mesa-gl_19.2.4.bb b/meta/recipes-graphics/mesa/mesa-gl_19.3.1.bb
index d4b1c1c454..d4b1c1c454 100644
--- a/meta/recipes-graphics/mesa/mesa-gl_19.2.4.bb
+++ b/meta/recipes-graphics/mesa/mesa-gl_19.3.1.bb
diff --git a/meta/recipes-graphics/mesa/mesa_19.2.4.bb b/meta/recipes-graphics/mesa/mesa_19.3.1.bb
index 115663b066..855b7f23cd 100644
--- a/meta/recipes-graphics/mesa/mesa_19.2.4.bb
+++ b/meta/recipes-graphics/mesa/mesa_19.3.1.bb
@@ -8,8 +8,8 @@ SRC_URI = "https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \
8 file://0005-vc4-use-intmax_t-for-formatted-output-of-timespec-me.patch \ 8 file://0005-vc4-use-intmax_t-for-formatted-output-of-timespec-me.patch \
9 " 9 "
10 10
11SRC_URI[md5sum] = "5c047732b81651ddb341597528b4b096" 11SRC_URI[md5sum] = "5c5965db31993af47fee82c9a7ccba5e"
12SRC_URI[sha256sum] = "09000a0f7dbbd82e193b81a8f1bf0c118eab7ca975c0329181968596e548e30f" 12SRC_URI[sha256sum] = "cd951db69c56a97ff0570a7ab2c0e39e6c5323f4cd8f4eb8274723e033beae59"
13 13
14UPSTREAM_CHECK_GITTAGREGEX = "mesa-(?P<pver>\d+(\.\d+)+)" 14UPSTREAM_CHECK_GITTAGREGEX = "mesa-(?P<pver>\d+(\.\d+)+)"
15 15
@@ -19,6 +19,6 @@ CFLAGS += "-fcommon"
19#make eglplatform.h independent of MESA_EGL_NO_X11_HEADER 19#make eglplatform.h independent of MESA_EGL_NO_X11_HEADER
20do_install_append() { 20do_install_append() {
21 if ${@bb.utils.contains('PACKAGECONFIG', 'egl', 'true', 'false', d)}; then 21 if ${@bb.utils.contains('PACKAGECONFIG', 'egl', 'true', 'false', d)}; then
22 sed -i -e 's/^#if defined(MESA_EGL_NO_X11_HEADERS)$/#if defined(MESA_EGL_NO_X11_HEADERS) || ${@bb.utils.contains('PACKAGECONFIG', 'x11', '0', '1', d)}/' ${D}${includedir}/EGL/eglplatform.h 22 sed -i -e 's/^#elif defined(__unix__) && defined(EGL_NO_X11)$/#elif defined(__unix__) \&\& defined(EGL_NO_X11) || ${@bb.utils.contains('PACKAGECONFIG', 'x11', '0', '1', d)}/' ${D}${includedir}/EGL/eglplatform.h
23 fi 23 fi
24} 24}