Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/mesa3d: Select more options for freedreno
@ 2020-03-30 23:11 Fabio Estevam
  2020-04-06 20:25 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Fabio Estevam @ 2020-03-30 23:11 UTC (permalink / raw)
  To: buildroot

Currently it is not possible to select KMSCUBE on a target that uses
BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_FREEDRENO due to the missing
dependency.

Fix this problem by selecting BR2_PACKAGE_LIBDRM_FREEDRENO and
BR2_PACKAGE_MESA3D_OPENGL_EGL, just like Etnaviv does.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
 package/mesa3d/Config.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
index 16d77f42c2..3225aa7598 100644
--- a/package/mesa3d/Config.in
+++ b/package/mesa3d/Config.in
@@ -113,7 +113,9 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV
 config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_FREEDRENO
 	bool "Gallium freedreno driver"
 	select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
+	select BR2_PACKAGE_LIBDRM_FREEDRENO
 	select BR2_PACKAGE_MESA3D_GALLIUM_KMSRO
+	select BR2_PACKAGE_MESA3D_OPENGL_EGL
 	help
 	  Mesa driver for Freedreno GPUs.
 
-- 
2.17.1

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

* [Buildroot] [PATCH] package/mesa3d: Select more options for freedreno
  2020-03-30 23:11 [Buildroot] [PATCH] package/mesa3d: Select more options for freedreno Fabio Estevam
@ 2020-04-06 20:25 ` Thomas Petazzoni
  2020-04-08 16:52   ` Fabio Estevam
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2020-04-06 20:25 UTC (permalink / raw)
  To: buildroot

On Mon, 30 Mar 2020 20:11:14 -0300
Fabio Estevam <festevam@gmail.com> wrote:

> Currently it is not possible to select KMSCUBE on a target that uses
> BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_FREEDRENO due to the missing
> dependency.
> 
> Fix this problem by selecting BR2_PACKAGE_LIBDRM_FREEDRENO and
> BR2_PACKAGE_MESA3D_OPENGL_EGL, just like Etnaviv does.
> 
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
> ---
>  package/mesa3d/Config.in | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
> index 16d77f42c2..3225aa7598 100644
> --- a/package/mesa3d/Config.in
> +++ b/package/mesa3d/Config.in
> @@ -113,7 +113,9 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_ETNAVIV
>  config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_FREEDRENO
>  	bool "Gallium freedreno driver"
>  	select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
> +	select BR2_PACKAGE_LIBDRM_FREEDRENO

So I kind of agree with this one, because the mesa3d freedreno driver
is not usable without the libdrm support for this platform. However,
this is not really explained in your commit log.

>  	select BR2_PACKAGE_MESA3D_GALLIUM_KMSRO
> +	select BR2_PACKAGE_MESA3D_OPENGL_EGL

However, this one I disagree, and I also disagree for it on etnaviv.
Indeed, even with this, you still can't enable kmscube, which requires
EGL *and* OpenGL ES, but you're not forcefully enabling OpenGL ES. And
I don't think it makes sense to forcefully enable EGL and OpenGL ES.

So, what I'd prefer to see is:

 - A patch that drops the select BR2_PACKAGE_MESA3D_OPENGL_EGL from the
   etnaviv mesa3d option.

 - A patch that adds just the select BR2_PACKAGE_LIBDRM_FREEDRENO,
   perhaps with a comment that says it's a runtime dependency.

What do you think ?

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

* [Buildroot] [PATCH] package/mesa3d: Select more options for freedreno
  2020-04-06 20:25 ` Thomas Petazzoni
@ 2020-04-08 16:52   ` Fabio Estevam
  0 siblings, 0 replies; 3+ messages in thread
From: Fabio Estevam @ 2020-04-08 16:52 UTC (permalink / raw)
  To: buildroot

Hi Thomas,

On Mon, Apr 6, 2020 at 5:25 PM Thomas Petazzoni
<thomas.petazzoni@bootlin.com> wrote:

> So, what I'd prefer to see is:
>
>  - A patch that drops the select BR2_PACKAGE_MESA3D_OPENGL_EGL from the
>    etnaviv mesa3d option.
>
>  - A patch that adds just the select BR2_PACKAGE_LIBDRM_FREEDRENO,
>    perhaps with a comment that says it's a runtime dependency.
>
> What do you think ?

I have just submitted a patch series with your proposal.

Thanks

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

end of thread, other threads:[~2020-04-08 16:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-30 23:11 [Buildroot] [PATCH] package/mesa3d: Select more options for freedreno Fabio Estevam
2020-04-06 20:25 ` Thomas Petazzoni
2020-04-08 16:52   ` Fabio Estevam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox