summaryrefslogtreecommitdiffstats
path: root/src/mapi/glapi/gen/gl_XML.py
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2015-05-12 15:11:09 -0700
committerIan Romanick <ian.d.romanick@intel.com>2015-05-15 20:22:32 -0700
commitd9be1db4b69a04f58a951351051ef9798d55da98 (patch)
tree04a0e73b32937864c691e179c80915ea164aa147 /src/mapi/glapi/gen/gl_XML.py
parentd649fcf727bffa11a5426ebcf38f51f478664b17 (diff)
downloadexternal_mesa3d-d9be1db4b69a04f58a951351051ef9798d55da98.zip
external_mesa3d-d9be1db4b69a04f58a951351051ef9798d55da98.tar.gz
external_mesa3d-d9be1db4b69a04f58a951351051ef9798d55da98.tar.bz2
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>
Diffstat (limited to 'src/mapi/glapi/gen/gl_XML.py')
-rw-r--r--src/mapi/glapi/gen/gl_XML.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/gl_XML.py b/src/mapi/glapi/gen/gl_XML.py
index 0695f84..89b09f2 100644
--- a/src/mapi/glapi/gen/gl_XML.py
+++ b/src/mapi/glapi/gen/gl_XML.py
@@ -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 )