All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH/next/RFC 1/1] package/{mesa3d, mesa3d-headers}: bump version to 20.1.0-rc2
@ 2020-05-11  5:38 Bernd Kuhls
  2020-05-16 12:49 ` Romain Naour
  0 siblings, 1 reply; 3+ messages in thread
From: Bernd Kuhls @ 2020-05-11  5:38 UTC (permalink / raw)
  To: buildroot

Gallium drivers lima and panfrost
https://cgit.freedesktop.org/mesa/mesa/tree/src/meson.build?h=20.1#n83

both use shared panfrost code which now needs fromfp functions only
present in glibc:
https://mailman.uclibc-ng.org/pipermail/devel/2020-May/001968.html

Rebased 0006-pan_bo.h-add-time.h-include-for-time_t.patch.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
This patch is not intended to be committed but shall give advance notice
that gallium lima and panfrost drivers will depend on glibc for the time
being.

 package/mesa3d-headers/mesa3d-headers.mk           |  4 ++--
 ...06-pan_bo.h-add-time.h-include-for-time_t.patch | 14 +++++++-------
 package/mesa3d/Config.in                           |  8 ++++++++
 package/mesa3d/mesa3d.hash                         |  6 +++---
 package/mesa3d/mesa3d.mk                           |  4 ++--
 5 files changed, 22 insertions(+), 14 deletions(-)

diff --git a/package/mesa3d-headers/mesa3d-headers.mk b/package/mesa3d-headers/mesa3d-headers.mk
index c1686aa6fd..54452ad297 100644
--- a/package/mesa3d-headers/mesa3d-headers.mk
+++ b/package/mesa3d-headers/mesa3d-headers.mk
@@ -12,8 +12,8 @@ endif
 
 # Not possible to directly refer to mesa3d variables, because of
 # first/second expansion trickery...
-MESA3D_HEADERS_VERSION = 20.0.6
-MESA3D_HEADERS_SOURCE = mesa-$(MESA3D_HEADERS_VERSION).tar.xz
+MESA3D_HEADERS_VERSION = 20.1.0
+MESA3D_HEADERS_SOURCE = mesa-$(MESA3D_HEADERS_VERSION)-rc2.tar.xz
 MESA3D_HEADERS_SITE = https://mesa.freedesktop.org/archive
 MESA3D_HEADERS_DL_SUBDIR = mesa3d
 MESA3D_HEADERS_LICENSE = MIT, SGI, Khronos
diff --git a/package/mesa3d/0006-pan_bo.h-add-time.h-include-for-time_t.patch b/package/mesa3d/0006-pan_bo.h-add-time.h-include-for-time_t.patch
index 1586b26bba..01cc226815 100644
--- a/package/mesa3d/0006-pan_bo.h-add-time.h-include-for-time_t.patch
+++ b/package/mesa3d/0006-pan_bo.h-add-time.h-include-for-time_t.patch
@@ -8,24 +8,24 @@ Content-Transfer-Encoding: 8bit
 
 Fixes:
 
-  ../src/gallium/drivers/panfrost/pan_bo.h:93:9: error: unknown type name ?time_t?
+  ../src/panfrost/encoder/pan_bo.h:93:9: error: unknown type name ?time_t?
 
 Signed-off-by: Peter Seiderer <ps.report@gmx.net>
 ---
- src/gallium/drivers/panfrost/pan_bo.h | 1 +
+ src/panfrost/encoder/pan_bo.h | 1 +
  1 file changed, 1 insertion(+)
 
-diff --git a/src/gallium/drivers/panfrost/pan_bo.h b/src/gallium/drivers/panfrost/pan_bo.h
+diff --git a/src/panfrost/encoder/pan_bo.h b/src/panfrost/encoder/pan_bo.h
 index 414c356b95c..6dda393095d 100644
---- a/src/gallium/drivers/panfrost/pan_bo.h
-+++ b/src/gallium/drivers/panfrost/pan_bo.h
+--- a/src/panfrost/encoder/pan_bo.h
++++ b/src/panfrost/encoder/pan_bo.h
 @@ -29,6 +29,7 @@
  #include <panfrost-misc.h>
- #include "pipe/p_state.h"
  #include "util/list.h"
+ #include "pan_device.h"
 +#include <time.h>
  
- struct panfrost_screen;
+ /* Flags for allocated memory */
  
 -- 
 2.25.1
diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
index dd512d9b76..232e0b7387 100644
--- a/package/mesa3d/Config.in
+++ b/package/mesa3d/Config.in
@@ -149,11 +149,15 @@ comment "Gallium KMSRO needs one or more renderonly drivers"
 
 config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_LIMA
 	bool "Gallium lima driver"
+	depends on BR2_TOOLCHAIN_USES_GLIBC # fromfp
 	select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
 	select BR2_PACKAGE_MESA3D_GALLIUM_KMSRO
 	help
 	  Mesa driver for ARM Mali Utgard GPUs.
 
+comment "lima driver needs a glibc toolchain"
+	depends on !BR2_TOOLCHAIN_USES_GLIBC
+
 config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU
 	bool "Gallium nouveau driver"
 	select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
@@ -165,11 +169,15 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU
 
 config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_PANFROST
 	bool "Gallium panfrost driver"
+	depends on BR2_TOOLCHAIN_USES_GLIBC # fromfp
 	select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
 	select BR2_PACKAGE_MESA3D_GALLIUM_KMSRO
 	help
 	  Mesa driver for ARM Mali Midgard and Bifrost GPUs.
 
+comment "panfrost driver needs a glibc toolchain"
+	depends on !BR2_TOOLCHAIN_USES_GLIBC
+
 config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R300
 	bool "Gallium Radeon R300 driver"
 	depends on BR2_i386 || BR2_x86_64
diff --git a/package/mesa3d/mesa3d.hash b/package/mesa3d/mesa3d.hash
index dec022c1e9..ecc3b8db7b 100644
--- a/package/mesa3d/mesa3d.hash
+++ b/package/mesa3d/mesa3d.hash
@@ -1,6 +1,6 @@
-# From https://lists.freedesktop.org/archives/mesa-announce/2020-April/000579.html
-sha256  30b5d8e9201a01a0e88e18bb79850e67b1d28443b34c4c5cacad4bd10f668b96  mesa-20.0.6.tar.xz
-sha512  a93dc3ed57ed7469b7c60cdbdcf4f29c5da4ec3986171c7b534e009e136ca21fec16207ffab38a6747437a9b1060e2e6c4b74c4e5cdc168b9aba0fc1940b5e90  mesa-20.0.6.tar.xz
+# From https://lists.freedesktop.org/archives/mesa-announce/2020-May/000581.html
+sha256  e8aac9f6a1b0cff6c453ae890f9e7bd7972df52be6f03e420dfa7a3adcfe5f1d  mesa-20.1.0-rc2.tar.xz
+sha512  b912b1af69d9c33f1d0855887d4e5c1ea3dc10e7ed875d3285ca13b62314647b56470149484f270e8c8ff0ce4818fafd1537a71b59852957aab26f36e53edfbd  mesa-20.1.0-rc2.tar.xz
 
 # License
 sha256  1ddae7da415352a5b5360ff3a9d7ecf23ba81408f62eeecce0011f32e3ef9da6  docs/license.html
diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk
index 531dcf5b81..fdec59e5e6 100644
--- a/package/mesa3d/mesa3d.mk
+++ b/package/mesa3d/mesa3d.mk
@@ -5,8 +5,8 @@
 ################################################################################
 
 # When updating the version, please also update mesa3d-headers
-MESA3D_VERSION = 20.0.6
-MESA3D_SOURCE = mesa-$(MESA3D_VERSION).tar.xz
+MESA3D_VERSION = 20.1.0
+MESA3D_SOURCE = mesa-$(MESA3D_VERSION)-rc2.tar.xz
 MESA3D_SITE = https://mesa.freedesktop.org/archive
 MESA3D_LICENSE = MIT, SGI, Khronos
 MESA3D_LICENSE_FILES = docs/license.html
-- 
2.26.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH/next/RFC 1/1] package/{mesa3d, mesa3d-headers}: bump version to 20.1.0-rc2
  2020-05-11  5:38 [Buildroot] [PATCH/next/RFC 1/1] package/{mesa3d, mesa3d-headers}: bump version to 20.1.0-rc2 Bernd Kuhls
@ 2020-05-16 12:49 ` Romain Naour
  2020-05-16 18:28   ` Bernd Kuhls
  0 siblings, 1 reply; 3+ messages in thread
From: Romain Naour @ 2020-05-16 12:49 UTC (permalink / raw)
  To: buildroot

Hi Bernd,

Le 11/05/2020 ? 07:38, Bernd Kuhls a ?crit?:
> Gallium drivers lima and panfrost
> https://cgit.freedesktop.org/mesa/mesa/tree/src/meson.build?h=20.1#n83
> 
> both use shared panfrost code which now needs fromfp functions only
> present in glibc:
> https://mailman.uclibc-ng.org/pipermail/devel/2020-May/001968.html

Maybe it would be good to report on the mesa mailing list too.

> 
> Rebased 0006-pan_bo.h-add-time.h-include-for-time_t.patch.
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> This patch is not intended to be committed but shall give advance notice
> that gallium lima and panfrost drivers will depend on glibc for the time
> being.

What about fromfp in musl libc ?

Best regards,
Romain

> 
>  package/mesa3d-headers/mesa3d-headers.mk           |  4 ++--
>  ...06-pan_bo.h-add-time.h-include-for-time_t.patch | 14 +++++++-------
>  package/mesa3d/Config.in                           |  8 ++++++++
>  package/mesa3d/mesa3d.hash                         |  6 +++---
>  package/mesa3d/mesa3d.mk                           |  4 ++--
>  5 files changed, 22 insertions(+), 14 deletions(-)
> 
> diff --git a/package/mesa3d-headers/mesa3d-headers.mk b/package/mesa3d-headers/mesa3d-headers.mk
> index c1686aa6fd..54452ad297 100644
> --- a/package/mesa3d-headers/mesa3d-headers.mk
> +++ b/package/mesa3d-headers/mesa3d-headers.mk
> @@ -12,8 +12,8 @@ endif
>  
>  # Not possible to directly refer to mesa3d variables, because of
>  # first/second expansion trickery...
> -MESA3D_HEADERS_VERSION = 20.0.6
> -MESA3D_HEADERS_SOURCE = mesa-$(MESA3D_HEADERS_VERSION).tar.xz
> +MESA3D_HEADERS_VERSION = 20.1.0
> +MESA3D_HEADERS_SOURCE = mesa-$(MESA3D_HEADERS_VERSION)-rc2.tar.xz
>  MESA3D_HEADERS_SITE = https://mesa.freedesktop.org/archive
>  MESA3D_HEADERS_DL_SUBDIR = mesa3d
>  MESA3D_HEADERS_LICENSE = MIT, SGI, Khronos
> diff --git a/package/mesa3d/0006-pan_bo.h-add-time.h-include-for-time_t.patch b/package/mesa3d/0006-pan_bo.h-add-time.h-include-for-time_t.patch
> index 1586b26bba..01cc226815 100644
> --- a/package/mesa3d/0006-pan_bo.h-add-time.h-include-for-time_t.patch
> +++ b/package/mesa3d/0006-pan_bo.h-add-time.h-include-for-time_t.patch
> @@ -8,24 +8,24 @@ Content-Transfer-Encoding: 8bit
>  
>  Fixes:
>  
> -  ../src/gallium/drivers/panfrost/pan_bo.h:93:9: error: unknown type name ?time_t?
> +  ../src/panfrost/encoder/pan_bo.h:93:9: error: unknown type name ?time_t?
>  
>  Signed-off-by: Peter Seiderer <ps.report@gmx.net>
>  ---
> - src/gallium/drivers/panfrost/pan_bo.h | 1 +
> + src/panfrost/encoder/pan_bo.h | 1 +
>   1 file changed, 1 insertion(+)
>  
> -diff --git a/src/gallium/drivers/panfrost/pan_bo.h b/src/gallium/drivers/panfrost/pan_bo.h
> +diff --git a/src/panfrost/encoder/pan_bo.h b/src/panfrost/encoder/pan_bo.h
>  index 414c356b95c..6dda393095d 100644
> ---- a/src/gallium/drivers/panfrost/pan_bo.h
> -+++ b/src/gallium/drivers/panfrost/pan_bo.h
> +--- a/src/panfrost/encoder/pan_bo.h
> ++++ b/src/panfrost/encoder/pan_bo.h
>  @@ -29,6 +29,7 @@
>   #include <panfrost-misc.h>
> - #include "pipe/p_state.h"
>   #include "util/list.h"
> + #include "pan_device.h"
>  +#include <time.h>
>   
> - struct panfrost_screen;
> + /* Flags for allocated memory */
>   
>  -- 
>  2.25.1
> diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
> index dd512d9b76..232e0b7387 100644
> --- a/package/mesa3d/Config.in
> +++ b/package/mesa3d/Config.in
> @@ -149,11 +149,15 @@ comment "Gallium KMSRO needs one or more renderonly drivers"
>  
>  config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_LIMA
>  	bool "Gallium lima driver"
> +	depends on BR2_TOOLCHAIN_USES_GLIBC # fromfp
>  	select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
>  	select BR2_PACKAGE_MESA3D_GALLIUM_KMSRO
>  	help
>  	  Mesa driver for ARM Mali Utgard GPUs.
>  
> +comment "lima driver needs a glibc toolchain"
> +	depends on !BR2_TOOLCHAIN_USES_GLIBC
> +
>  config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU
>  	bool "Gallium nouveau driver"
>  	select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
> @@ -165,11 +169,15 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU
>  
>  config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_PANFROST
>  	bool "Gallium panfrost driver"
> +	depends on BR2_TOOLCHAIN_USES_GLIBC # fromfp
>  	select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
>  	select BR2_PACKAGE_MESA3D_GALLIUM_KMSRO
>  	help
>  	  Mesa driver for ARM Mali Midgard and Bifrost GPUs.
>  
> +comment "panfrost driver needs a glibc toolchain"
> +	depends on !BR2_TOOLCHAIN_USES_GLIBC
> +
>  config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R300
>  	bool "Gallium Radeon R300 driver"
>  	depends on BR2_i386 || BR2_x86_64
> diff --git a/package/mesa3d/mesa3d.hash b/package/mesa3d/mesa3d.hash
> index dec022c1e9..ecc3b8db7b 100644
> --- a/package/mesa3d/mesa3d.hash
> +++ b/package/mesa3d/mesa3d.hash
> @@ -1,6 +1,6 @@
> -# From https://lists.freedesktop.org/archives/mesa-announce/2020-April/000579.html
> -sha256  30b5d8e9201a01a0e88e18bb79850e67b1d28443b34c4c5cacad4bd10f668b96  mesa-20.0.6.tar.xz
> -sha512  a93dc3ed57ed7469b7c60cdbdcf4f29c5da4ec3986171c7b534e009e136ca21fec16207ffab38a6747437a9b1060e2e6c4b74c4e5cdc168b9aba0fc1940b5e90  mesa-20.0.6.tar.xz
> +# From https://lists.freedesktop.org/archives/mesa-announce/2020-May/000581.html
> +sha256  e8aac9f6a1b0cff6c453ae890f9e7bd7972df52be6f03e420dfa7a3adcfe5f1d  mesa-20.1.0-rc2.tar.xz
> +sha512  b912b1af69d9c33f1d0855887d4e5c1ea3dc10e7ed875d3285ca13b62314647b56470149484f270e8c8ff0ce4818fafd1537a71b59852957aab26f36e53edfbd  mesa-20.1.0-rc2.tar.xz
>  
>  # License
>  sha256  1ddae7da415352a5b5360ff3a9d7ecf23ba81408f62eeecce0011f32e3ef9da6  docs/license.html
> diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk
> index 531dcf5b81..fdec59e5e6 100644
> --- a/package/mesa3d/mesa3d.mk
> +++ b/package/mesa3d/mesa3d.mk
> @@ -5,8 +5,8 @@
>  ################################################################################
>  
>  # When updating the version, please also update mesa3d-headers
> -MESA3D_VERSION = 20.0.6
> -MESA3D_SOURCE = mesa-$(MESA3D_VERSION).tar.xz
> +MESA3D_VERSION = 20.1.0
> +MESA3D_SOURCE = mesa-$(MESA3D_VERSION)-rc2.tar.xz
>  MESA3D_SITE = https://mesa.freedesktop.org/archive
>  MESA3D_LICENSE = MIT, SGI, Khronos
>  MESA3D_LICENSE_FILES = docs/license.html
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH/next/RFC 1/1] package/{mesa3d, mesa3d-headers}: bump version to 20.1.0-rc2
  2020-05-16 12:49 ` Romain Naour
@ 2020-05-16 18:28   ` Bernd Kuhls
  0 siblings, 0 replies; 3+ messages in thread
From: Bernd Kuhls @ 2020-05-16 18:28 UTC (permalink / raw)
  To: buildroot

Am Sat, 16 May 2020 14:49:34 +0200 schrieb Romain Naour:

> Hi Bernd,
> 
> Le 11/05/2020 ? 07:38, Bernd Kuhls a ?crit?:
>> Gallium drivers lima and panfrost
>> https://cgit.freedesktop.org/mesa/mesa/tree/src/meson.build?h=20.1#n83
>> 
>> both use shared panfrost code which now needs fromfp functions only
>> present in glibc:
>> https://mailman.uclibc-ng.org/pipermail/devel/2020-May/001968.html
> 
> Maybe it would be good to report on the mesa mailing list too.

Hi Romain,

not necessary anymore, rc3 removed the restriction with this commit:
https://cgit.freedesktop.org/mesa/mesa/commit/?
h=20.1&id=096e06c56aaed4fb43ba5c35694e815d5740e29d

and we do not build mesa3d tools ;)

Regards, Bernd

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-16 18:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-11  5:38 [Buildroot] [PATCH/next/RFC 1/1] package/{mesa3d, mesa3d-headers}: bump version to 20.1.0-rc2 Bernd Kuhls
2020-05-16 12:49 ` Romain Naour
2020-05-16 18:28   ` Bernd Kuhls

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.