Skip to content

package/libglvnd: introduce the GL vendor-neutral proxy (branch yem/libglvnd)

Yann E. MORIN buildroot 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 3 repliesIn review
  2. v32 patches 0 repliesSuperseded

Changes in v4 from the cover letter

- bump to libglvnd 1.3.2

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2package/libglvnd: new packagepackage/Config.in package/libglvnd/Config.in package/libglvnd/libglvnd.hash +1 more+103 -00 replies
2/2package/mesa3d: make it aware of libglvnd and support it when presentpackage/mesa3d/Config.in package/mesa3d/mesa3d.mk+20 -101 reply
2/2package/mesa3d: make it aware of libglvnd and support it when present+0 -02 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchRomain Naour
1/2
2/2T-b
2/2T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [Buildroot] [PATCH 0/2 v4] package/libglvnd: introduce the GL vendor-neutral proxy (branch yem/libglvnd)

Hello All!

This is a respin from the original series by Jakub, heavily massaged by me (Yann); thanks Jakub for your initial work! :-) What follows is Jakub's original cover letter (tweaked to drop the reference to other patches not include in this respin):

Here comes support for GLVND which is a GL Vendor-Neutral disaptches, initially proposed by NVidia, currently done within the Freedestop/ RedHat project team as libglvnd.

It's useful not only for NVidia (they were first to adopt it though) but might be also beneficial for others, for example allowing you to deliver an image running on multiple machines with different GPUs and their respective OpenGL providers, which happens quite often on x86_64 and was the major reason to implement it in Buildroot for me.

On the other hand, if your board has multiple GPUs it also helps a lot
- for example when you have a "display" unit and "compute/accel" graphics units from different vendors. Happens on some ARM boards recently and there are already efforts to integrate it in these GL stacks.

The only EXT needed by GL provider is to implement GL_EXT_libglvnd which is a dummy extension allowing GL lib to "register" to let it receive GL calls.

In practive it's very simple, the libglvnd delivers its own set of "dummy" libraries:

- libGL.so
- libGLX.so
- libOpenGL.so
- libEGL.so

and needs the actual providers to be present as they already are but with names like libGLX_nvidia.so.

It allows developers to link against vendor-neutral dummy libs and openGL contexts without thinking about target GPU too much as long as it supports desired GL/EGL standard.

Also delivers GL API headers (GL/gl.h, GL/egl.h, etc.) so removes need of mesa3d-headers in GLVND-supported drivers.

Currently it's supported by all Mesa-compatible drivers and NVidia. For simplicity sake, and to ease introduction of libglvnd, only mesa3d is converted to be compatible with libglvnd. Other providers, like NVidia, can be converted (or added!) in follow-up patches.

Changes v3 -> v4:
- bump to libglvnd 1.3.2

Regards,
Yann E. MORIN.

The following changes since commit 1640b0c1f967e394f87eb7a0ca04ae40aade11b4

package/mbpfan: new package (2020-07-27 10:13:06 +0200)

are available in the git repository at:

https://git.busybox.net/~ymorin/git/buildroot

for you to fetch changes up to c48baa11cd0c06ec5af3fd4989306c3ec581d0e9

package/mesa3d: make it aware of libglvnd and support it when present (2020-07-27 10:45:34 +0200)

----------------------------------------------------------------
Jakub Skrzypnik (2):
package/libglvnd: new package
package/mesa3d: make it aware of libglvnd and support it when present

 package/Config.in              |  1 +
 package/libglvnd/Config.in     | 42 +++++++++++++++++++++++++++++++++
 package/libglvnd/libglvnd.hash |  7 ++++++
 package/libglvnd/libglvnd.mk   | 53 ++++++++++++++++++++++++++++++++++++++++++
 package/mesa3d/Config.in       | 15 +++++++-----
 package/mesa3d/mesa3d.mk       | 15 ++++++++----
 6 files changed, 123 insertions(+), 10 deletions(-)
 create mode 100644 package/libglvnd/Config.in
 create mode 100644 package/libglvnd/libglvnd.hash
 create mode 100644 package/libglvnd/libglvnd.mk
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'