glapi: Store list of functions with static dispatch in a separate table

The set of functions with static dispatch is (supposed to be) defined by
the Linux OpenGL ABI.  We export quite a few more functions than that
for historical reasons.  However, this list should never grow.

This table is used instead of the static_dispatch tag in the XML to
generate the static dispatch functions.  I used

    nm libGL.so | grep ' T gl[^X]' | sed 's/.* T //'

before and after the change.  diff showed no differences.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
This commit is contained in:
Ian Romanick
2015-05-12 15:11:09 -07:00
parent d649fcf727
commit d9be1db4b6
2 changed files with 1520 additions and 1 deletions
+1 -1
View File
@@ -650,7 +650,7 @@ class gl_function( gl_item ):
name = element.get( "name" )
alias = element.get( "alias" )
if is_attr_true(element, "static_dispatch", "true"):
if name in static_data.functions:
self.static_entry_points.append(name)
self.entry_points.append( name )
File diff suppressed because it is too large Load Diff