glapi: Store exec table version info outside the XML
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 19 May 2015 18:24:26 +0000 (11:24 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 28 May 2015 23:56:32 +0000 (16:56 -0700)
commitf20899b7276b73e1b60c3ed8d8abdf959e787c0c
tree1d6cd9151847c9ace0ab0cef06b3be24727995bb
parent5c4aab58ee79a8bfa3d96f3ec442f37da587ff45
glapi: Store exec table version info outside the XML

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.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: Dave Airlie <airlied@redhat.com>
Cc: Dylan Baker <baker.dylan.c@gmail.com>
Cc: "10.6" <mesa-stable@lists.freedesktop.org>
src/mapi/glapi/gen/Makefile.am
src/mapi/glapi/gen/apiexec.py [new file with mode: 0644]
src/mapi/glapi/gen/gl_genexec.py