From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/2] package/opengl/libgbm: new virtual package
Date: Tue, 30 Oct 2018 22:14:20 +0100 [thread overview]
Message-ID: <20181030221420.65c7aed3@windsurf> (raw)
In-Reply-To: <20180913194410.24077-1-bernd.kuhls@t-online.de>
Hello all,
+in Cc, Einar (for ti-sgx-libgbm), Maxime Ripard (for
sunxi-mali-mainline) and Paul Kocialkowski (general libgbm knowledge)
On Thu, 13 Sep 2018 21:44:09 +0200, Bernd Kuhls wrote:
> Kodi 18.0-Leia will implement stand-alone gbm support alongside x11 &
> wayland. To enable building libgbm in mesa3d without x11 & wayland we
> need to create a virtual package for libgbm.
>
> Also other packages besides mesa3d may provide libgbm.so, see
> http://patchwork.ozlabs.org/patch/647235/
> http://patchwork.ozlabs.org/patch/939703/
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
During the Buildroot Developers meeting and last week, I worked on the
libgbm virtual package, in order to hopefully be able to merge the
patches from Bernd
(https://patchwork.ozlabs.org/project/buildroot/list/?series=65595)
and Einar
(https://patchwork.ozlabs.org/project/buildroot/list/?series=53824).
Unfortunately, it seems like the "libgbm" API is not very well
defined, and each OpenGL implementation has a different view of what
libgbm is. I am wondering how users of libgbm can work with such a
situation.
I have put together at
https://git.bootlin.com/users/thomas-petazzoni/buildroot/log/?h=gbm a
branch that gathers Bernd and Einar patches, plus some additional
fixes on top, and three demo defconfigs. My goal was to be able to:
- build kmscube with Mesa3D as libgbm provider (this is already
possible)
- build kmscube with TI SGX as libgbm provider
- build kmscube with Sunxi Mali as libgbm provider
It turns out that while kmscube with Mesa3D builds (obviously),
neither kmscube with TI SGX or Sunxi Mali build properly:
- TI SGX libgbm is named libgbm.so.2, while other libgbm
implementations, including the one in Mesa3D is named
libgbm.so.1. Not a big issue by itself, but it hints at the two
things being different.
Anyway, it fails to build because the libgbm API is not what
kmscube expects: http://code.bulix.org/cot991-494068
- With Sunxi Mali, same issue, it fails to build with libgbm API
issues: http://code.bulix.org/rulyvo-494069
So I'm really wondering if libgbm has a proper standardized API like
OpenGL has. Another hint is that the recent version of kmscube now
require gbm >= 13.0, and 13.0 is basically a Mesa3D version.
Anybody has some hints/ideas about this ?
How is the libgbm from TI SGX or Sunxi Mali being used ? What will
build against it ?
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next parent reply other threads:[~2018-10-30 21:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20180913194410.24077-1-bernd.kuhls@t-online.de>
2018-10-30 21:14 ` Thomas Petazzoni [this message]
[not found] ` <20181105124735.3qbms4ymnrgpw3op@flea>
2018-11-05 15:35 ` [Buildroot] [PATCH 1/2] package/opengl/libgbm: new virtual package Einar Jón
2018-11-05 15:43 ` Thomas Petazzoni
2018-11-06 13:48 ` Einar Jón
2018-11-30 10:05 ` Einar Jón
2018-11-30 10:46 ` Thomas Petazzoni
2018-11-30 12:02 ` Einar Jón
2019-02-06 17:01 ` Arnout Vandecappelle
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=20181030221420.65c7aed3@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 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.