Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] package/mesa3d: Select more options for freedreno
Date: Mon, 6 Apr 2020 22:25:40 +0200	[thread overview]
Message-ID: <20200406222540.424c13f8@windsurf> (raw)
In-Reply-To: <20200330231114.22168-1-festevam@gmail.com>

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

  reply	other threads:[~2020-04-06 20:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-30 23:11 [Buildroot] [PATCH] package/mesa3d: Select more options for freedreno Fabio Estevam
2020-04-06 20:25 ` Thomas Petazzoni [this message]
2020-04-08 16:52   ` Fabio Estevam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200406222540.424c13f8@windsurf \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox