glx: Add _glapi_create_table_from_handle

_glapi_create_table_from_handle was recently added to mesa to ease creation of
a _glapi_table.  This commit brings this API over to xserver for use in
XQuartz (next commit).

The API was generated with scripts from current mesa followed by various
script-foo to remove entries that are not in the server and add those which
are still in the server but not in mesa (CullParameterdvEXT and
CullParameterfvEXT)

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
Jeremy Huddleston 2011-06-14 12:51:04 -07:00
parent c3df4df407
commit ecec578e35
3 changed files with 7587 additions and 0 deletions

View File

@ -42,6 +42,7 @@ glapi_sources = \
glapitable.h \
glapi.c \
glapi.h \
glapi_gentable.c \
glapioffsets.h \
glprocs.h \
glthread.c \

View File

@ -139,4 +139,7 @@ _glapi_add_dispatch( const char * const * function_names,
extern _glapi_proc
_glapi_get_proc_address(const char *funcName);
extern struct _glapi_table *
_glapi_create_table_from_handle(void *handle, const char *symbol_prefix);
#endif

7583
glx/glapi_gentable.c Normal file

File diff suppressed because it is too large Load Diff