Re: [OE-core] [PATCH] mesa: update 20.2.4 → 20.3.1

2020-12-22 Thread Trevor Woerner
On Tue 2020-12-22 @ 09:18:51 AM, Richard Purdie wrote:
> FWIW this is missing the rename of mesa-gl to match the mesa recipe.

Oops!

> I've queued the missing piece for testing.

Thank you.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#146063): 
https://lists.openembedded.org/g/openembedded-core/message/146063
Mute This Topic: https://lists.openembedded.org/mt/79055348/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] mesa: update 20.2.4 → 20.3.1

2020-12-22 Thread Richard Purdie
On Thu, 2020-12-17 at 23:52 -0500, Trevor Woerner wrote:
> Two of the patches have been applied upstream:
> 0001-meson-Add-xcb-fixes-to-loader-when-using-x11-and-
> dri.patch
> 0005-vc4-use-intmax_t-for-formatted-output-of-timespec-
> me.patch
> 
> The 'surfaceless' platform is now enabled by default, therefore it is
> no
> longer a valid choice. The meson build system is intelligent enough
> now to
> decide if 'drm' needs to be enabled based on whether or not gbm is
> available.
> Therefore 'drm' also is no longer a valid platform choice:
> 
> ERROR: Options "drm, surfaceless" are not in allowed choices:
> "auto, x11, wayland, haiku, android, windows"
> 
> Signed-off-by: Trevor Woerner 

FWIW this is missing the rename of mesa-gl to match the mesa recipe.
I've queued the missing piece for testing.

Cheers,

Richard




-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#146040): 
https://lists.openembedded.org/g/openembedded-core/message/146040
Mute This Topic: https://lists.openembedded.org/mt/79055348/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH] mesa: update 20.2.4 → 20.3.1

2020-12-17 Thread Trevor Woerner
Two of the patches have been applied upstream:
0001-meson-Add-xcb-fixes-to-loader-when-using-x11-and-dri.patch
0005-vc4-use-intmax_t-for-formatted-output-of-timespec-me.patch

The 'surfaceless' platform is now enabled by default, therefore it is no
longer a valid choice. The meson build system is intelligent enough now to
decide if 'drm' needs to be enabled based on whether or not gbm is available.
Therefore 'drm' also is no longer a valid platform choice:

ERROR: Options "drm, surfaceless" are not in allowed choices: "auto, 
x11, wayland, haiku, android, windows"

Signed-off-by: Trevor Woerner 
---
 ...xes-to-loader-when-using-x11-and-dri.patch | 36 -
 ...-for-formatted-output-of-timespec-me.patch | 51 ---
 meta/recipes-graphics/mesa/mesa.inc   |  8 +--
 .../mesa/{mesa_20.2.4.bb => mesa_20.3.1.bb}   |  0
 4 files changed, 2 insertions(+), 93 deletions(-)
 delete mode 100644 
meta/recipes-graphics/mesa/files/0001-meson-Add-xcb-fixes-to-loader-when-using-x11-and-dri.patch
 delete mode 100644 
meta/recipes-graphics/mesa/files/0005-vc4-use-intmax_t-for-formatted-output-of-timespec-me.patch
 rename meta/recipes-graphics/mesa/{mesa_20.2.4.bb => mesa_20.3.1.bb} (100%)

diff --git 
a/meta/recipes-graphics/mesa/files/0001-meson-Add-xcb-fixes-to-loader-when-using-x11-and-dri.patch
 
b/meta/recipes-graphics/mesa/files/0001-meson-Add-xcb-fixes-to-loader-when-using-x11-and-dri.patch
deleted file mode 100644
index 9ee72880a2..00
--- 
a/meta/recipes-graphics/mesa/files/0001-meson-Add-xcb-fixes-to-loader-when-using-x11-and-dri.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-From cf17d6251653f4a98e7c4f904ea2f0bc0ecedd5c Mon Sep 17 00:00:00 2001
-From: Duncan Hopkins 
-Date: Thu, 15 Oct 2020 12:14:57 +0100
-Subject: [PATCH] meson: Add xcb-fixes to loader when using x11 and dri3. Fixes
- undefined symbol for xcb_xfixes_create_region in loader_dri3_helper.c
-
-loader_dr3_helper.c uses xcb_xfixes_create_region() that requires 
dep_xcb_xfixes to link. This is dependent on with_platform_x11 and with_dri3.
-But the source meson file does not set this up dependent on with_dri3.
-The build was initialsed using platforms=x11 and gallium-drivers=zink,swrast.
-
-Reviewed-by: Eric Anholt 
-Part-of: 
-
-Upstream-Status: Backport [cf17d6251653f4a98e7c4f904ea2f0bc0ecedd5c]
-

- meson.build | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/meson.build b/meson.build
-index cfe02fa6373..3cb3c904927 100644
 a/meson.build
-+++ b/meson.build
-@@ -1782,7 +1782,8 @@ if with_platform_x11
-   dep_xxf86vm = dependency('xxf86vm')
- endif
-   endif
--  if (with_egl or (
-+  if (with_egl or 
-+  with_dri3 or (
-   with_gallium_vdpau or with_gallium_xvmc or with_gallium_xa or
-   with_gallium_omx != 'disabled'))
- dep_xcb_xfixes = dependency('xcb-xfixes')
--- 
-2.17.1
-
diff --git 
a/meta/recipes-graphics/mesa/files/0005-vc4-use-intmax_t-for-formatted-output-of-timespec-me.patch
 
b/meta/recipes-graphics/mesa/files/0005-vc4-use-intmax_t-for-formatted-output-of-timespec-me.patch
deleted file mode 100644
index dacb1ea1c8..00
--- 
a/meta/recipes-graphics/mesa/files/0005-vc4-use-intmax_t-for-formatted-output-of-timespec-me.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-From 281a636353666bfdd373c62591e744087e750e89 Mon Sep 17 00:00:00 2001
-From: Khem Raj 
-Date: Wed, 4 Dec 2019 14:15:28 -0800
-Subject: [PATCH] vc4: use intmax_t for formatted output of timespec members
-
-32bit architectures which have 64bit time_t does not fit the assumption
-of time_t being same as system long int
-
-Fixes
-error: format specifies type 'long' but the argument has type 'time_t' (aka 
'long long') [-Werror,-Wformat]
-time.tv_sec);
-^~~
-
-Upstream-Status: Submitted 
[https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2966]
-Signed-off-by: Khem Raj 
-

- src/gallium/drivers/v3d/v3d_bufmgr.c | 4 ++--
- src/gallium/drivers/vc4/vc4_bufmgr.c | 4 ++--
- 2 files changed, 4 insertions(+), 4 deletions(-)
-
-diff --git a/src/gallium/drivers/v3d/v3d_bufmgr.c 
b/src/gallium/drivers/v3d/v3d_bufmgr.c
-index 31a0803..cc2e2af 100644
 a/src/gallium/drivers/v3d/v3d_bufmgr.c
-+++ b/src/gallium/drivers/v3d/v3d_bufmgr.c
-@@ -80,8 +80,8 @@ v3d_bo_dump_stats(struct v3d_screen *screen)
- 
- struct timespec time;
- clock_gettime(CLOCK_MONOTONIC, );
--fprintf(stderr, "  now:   %ld\n",
--(long)time.tv_sec);
-+fprintf(stderr, "  now:   %jd\n",
-+(intmax_t)time.tv_sec);
- }
- }
- 
-diff --git a/src/gallium/drivers/vc4/vc4_bufmgr.c 
b/src/gallium/drivers/vc4/vc4_bufmgr.c
-index a786e8e..975d49e 100644
 a/src/gallium/drivers/vc4/vc4_bufmgr.c
-+++ b/src/gallium/drivers/vc4/vc4_bufmgr.c
-@@ -99,8 +99,8 @@