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:
@@ -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
Reference in New Issue
Block a user