EGL: Implement the libglvnd interface for EGL (v3)
authorKyle Brenneman <kbrenneman@nvidia.com>
Wed, 4 Jan 2017 18:31:58 +0000 (11:31 -0700)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 17 Apr 2017 12:03:58 +0000 (13:03 +0100)
commitce562f9e3fab769d64b0e5453ec2b4f8710a31ce
tree5c372e39ba2c33611f145b91224f304a53ab6dd0
parent370df207cadbc1ae60415b3b953f85088e6398d4
EGL: Implement the libglvnd interface for EGL (v3)

The new interface mostly just sits on top of the existing library.

The only change to the existing EGL code is to split the client
extension string into platform extensions and everything else. On
non-glvnd builds, eglQueryString will just concatenate the two strings.

The EGL dispatch stubs are all generated. The script is based on the one
used to generate entrypoints in libglvnd itself.

v2: [Kyle]
 - Rebased against master.
 - Reworked the EGL makefile to use separate libraries
 - Made the EGL code generation scripts work with Python 2 and 3.
 - Change gen_egl_dispatch.py to use argparse for the command line arguments.
 - Assorted formatting and style cleanup in the Python scripts.

v3: [Emil Velikov]
 - Rebase
 - Remove separate glvnd glx/egl configure toggles

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
16 files changed:
configure.ac
src/egl/Makefile.am
src/egl/generate/egl.xml [new file with mode: 0644]
src/egl/generate/eglFunctionList.py [new file with mode: 0644]
src/egl/generate/egl_other.xml [new file with mode: 0644]
src/egl/generate/genCommon.py [new file with mode: 0644]
src/egl/generate/gen_egl_dispatch.py [new file with mode: 0644]
src/egl/main/50_mesa.json [new file with mode: 0644]
src/egl/main/eglapi.c
src/egl/main/egldispatchstubs.c [new file with mode: 0644]
src/egl/main/egldispatchstubs.h [new file with mode: 0644]
src/egl/main/eglglobals.c
src/egl/main/eglglobals.h
src/egl/main/eglglvnd.c [new file with mode: 0644]
src/glx/Makefile.am
src/glx/glxclient.h