glapi: Store exec table version info outside the XML

Graphics / Mesa 3D Graphics Library / Mesa - Ian Romanick [intel.com] - 28 May 2015 18:56 UTC

Currently on the functions that are exclusive to core-profile are implemented. The remainder continue to live in the XML. Additional functions can be moved later.

The functions for GL_ARB_draw_indirect and GL_ARB_multi_draw_indirect are put in the dispatch table inside the VBO module, so they do not need to be moved over.

The diff of src/mesa/main/api_exec.c before and after this patch is as expected. All of the functions listed in apiexec.py moved out of a 'if (_mesa_is_desktop(ctx))' block into a new 'if (ctx->API == API_OPENGL_CORE)' block.

v2: Remove stray shebang line in apiexec.py. Suggested by Ilia.

f20899b glapi: Store exec table version info outside the XML
src/mapi/glapi/gen/Makefile.am | 3 +-
src/mapi/glapi/gen/apiexec.py | 140 ++++++++++++++++++++++++++++++++++++++
src/mapi/glapi/gen/gl_genexec.py | 54 ++++++++++++---
3 files changed, 185 insertions(+), 12 deletions(-)

Upstream: cgit.freedesktop.org


  • Share