Re: [OE-core] [PATCH v2 2/2] mesa: Upgrade to 19.3.0

2019-12-19 Thread Alistair Francis
On Thu, Dec 19, 2019 at 3:36 AM Ross Burton  wrote:
>
> On 19/12/2019 05:15, Alistair Francis wrote:
> > 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.
>
> I just remembered last night that a Mesa .0 release isn't intended for use:
>
> "Mesa 19.3.0 is released. This is a new development release. See the
> release notes for mor information about this release."
>
> 19.3.1 was just released, we should ship that and change the version
> checking regex to skip .0 releases.

Done! I just sent the v3 patches.

Alistair

>
> Ross
> --
> ___
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH v2 2/2] mesa: Upgrade to 19.3.0

2019-12-19 Thread Ross Burton

On 19/12/2019 05:15, Alistair Francis wrote:

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.


I just remembered last night that a Mesa .0 release isn't intended for use:

"Mesa 19.3.0 is released. This is a new development release. See the 
release notes for mor information about this release."


19.3.1 was just released, we should ship that and change the version 
checking regex to skip .0 releases.


Ross
--
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v2 2/2] mesa: Upgrade to 19.3.0

2019-12-18 Thread Alistair Francis
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

Signed-off-by: Alistair Francis 
---
 ...atch_common.h-define-also-EGL_NO_X11.patch | 26 +++
 .../libepoxy/libepoxy_1.5.4.bb|  1 +
 ...k-for-all-linux-host_os-combinations.patch | 18 ++---
 ...02-meson.build-make-TLS-ELF-optional.patch | 18 ++---
 ...Allow-enable-DRI-without-DRI-drivers.patch | 10 +++
 ...le-asm-unconditionally-now-that-gen_.patch | 10 +++
 .../{mesa-gl_19.2.4.bb => mesa-gl_19.3.0.bb}  |  0
 .../mesa/{mesa_19.2.4.bb => mesa_19.3.0.bb}   |  6 ++---
 8 files changed, 58 insertions(+), 31 deletions(-)
 create mode 100644 
meta/recipes-graphics/libepoxy/files/0001-dispatch_common.h-define-also-EGL_NO_X11.patch
 rename meta/recipes-graphics/mesa/{mesa-gl_19.2.4.bb => mesa-gl_19.3.0.bb} 
(100%)
 rename meta/recipes-graphics/mesa/{mesa_19.2.4.bb => mesa_19.3.0.bb} (66%)

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 00..7262945181
--- /dev/null
+++ 
b/meta/recipes-graphics/libepoxy/files/0001-dispatch_common.h-define-also-EGL_NO_X11.patch
@@ -0,0 +1,26 @@
+From 6f15cc28d17cfdd86f5974f06ad97b8afedd5627 Mon Sep 17 00:00:00 2001
+From: Martin Jansa 
+Date: Fri, 25 Oct 2019 11:09:34 +
+Subject: [PATCH] dispatch_common.h: define also EGL_NO_X11
+
+MESA_EGL_NO_X11_HEADERS was renamed to EGL_NO_X11 in:
+https://github.com/mesa3d/mesa/commit/6202a13b71e18dc31ba7e2f4ea915b67eacc1ddb
+
+Signed-off-by: Martin Jansa 
+Upstream-Status: Pending
+---
+ src/dispatch_common.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/dispatch_common.h b/src/dispatch_common.h
+index dcb3a35..c206253 100644
+--- a/src/dispatch_common.h
 b/src/dispatch_common.h
+@@ -52,6 +52,7 @@
+  * should do the same
+  */
+ #  define MESA_EGL_NO_X11_HEADERS 1
++#  define EGL_NO_X11 1
+ # endif
+ #include "epoxy/egl.h"
+ #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"
 LIC_FILES_CHKSUM = "file://COPYING;md5=58ef4c80d401e07bd9ee8b6b58cf464b"
 
 SRC_URI = 
"https://github.com/anholt/${BPN}/releases/download/${PV}/${BP}.tar.xz \
+   file://0001-dispatch_common.h-define-also-EGL_NO_X11.patch \
"
 SRC_URI[md5sum] = "00f47ad447321f9dc59f85bc1c9d0467"
 SRC_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 @@
-From b6d9bc97cb0e8c540a45dba5440b036fb940ff95 Mon Sep 17 00:00:00 2001
-From: Alistair Francis 
-Date: Mon, 11 Nov 2019 09:38:15 -0800
+From 0d9ed002eff176b902da266d89829a9b0cb10946 Mon Sep 17 00:00:00 2001
+From: Alistair Francis 
+Date: Thu, 14 Nov 2019 13:04:49 -0800
 Subject: [PATCH] meson.build: check for all linux host_os combinations
 
 Make sure that we are also looking for our host_os combinations like
@@ -13,30 +13,30 @@ Upstream-Status: Pending
 Signed-off-by: Anuj Mittal 
 Signed-off-by: Fabio Berton 
 Signed-off-by: Otavio Salvador 
-Signed-off-by: Alistair Francis 
+Signed-off-by: Alistair Francis 
 
 ---
  meson.build | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
 
 diff --git a/meson.build b/meson.build
-index d584152..a1f098c 100644
+index 898d025..09e3759 100644
 --- a/meson.build
 +++ b/meson.build
-@@ -117,7 +117,7 @@ with_any_opengl = with_opengl or with_gles1 or with_gles2
+@@ -124,7 +124,7 @@ with_any_opengl = with_opengl or with_gles1 or with_gles2
  # Only build shared_glapi if at least one OpenGL API is enabled
- with_shared_glapi = get_option('shared-glapi') and with_any_opengl
+ with_shared_glapi = with_shared_glapi and with_any_opengl
  
 -system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'gnu/kfreebsd', 
'dragonfly', 'linux', 'sunos'].contains(host_machine.system())
 +system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 
'dragonfly'].contains(host_machine.system()) or 
host_machine.system().startswith('linux')
  
  dri_drivers = get_option('dri-drivers')
  if dri_drivers.contains('auto')
-@@ -