summaryrefslogtreecommitdiff
path: root/src/mesa/glapi/gl_XML.py
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2005-07-02 08:29:57 +0000
committerIan Romanick <idr@us.ibm.com>2005-07-02 08:29:57 +0000
commitf0ff50d4edbeab5aa0df349772ed2eda64878282 (patch)
tree6128d8aa814ddd6ab374710743ff79cfc3c2282c /src/mesa/glapi/gl_XML.py
parent1a9cac10b85aed9f93d765a1569dbaeb658a9def (diff)
Add support for assembly (static) dispatch functions on x86-64. This
is basically patch #2939 from X.org bugzilla #3379. This does *not* fix the bug as it does not dynamically generate stubs at run-time. It just gets things one step closer.
Diffstat (limited to 'src/mesa/glapi/gl_XML.py')
-rw-r--r--src/mesa/glapi/gl_XML.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/mesa/glapi/gl_XML.py b/src/mesa/glapi/gl_XML.py
index ee3013c855..651bd7369b 100644
--- a/src/mesa/glapi/gl_XML.py
+++ b/src/mesa/glapi/gl_XML.py
@@ -276,12 +276,15 @@ def real_category_name(c):
return c
-def create_parameter_string(parameters):
+def create_parameter_string(parameters, include_names):
"""Create a parameter string from a list of gl_parameters."""
list = []
for p in parameters:
- list.append( p.string() )
+ if include_names:
+ list.append( p.string() )
+ else:
+ list.append( p.type_string() )
if len(list) == 0: list = ["void"]
@@ -658,7 +661,7 @@ class gl_function( gl_item ):
if element.children:
self.initialized = 1
- self.parameter_strings[name] = create_parameter_string(parameters)
+ self.parameter_strings[name] = create_parameter_string(parameters, 1)
else:
self.parameter_strings[name] = None
@@ -680,7 +683,7 @@ class gl_function( gl_item ):
if s:
return s
- return create_parameter_string( self.parameters )
+ return create_parameter_string( self.parameters, 1 )
class gl_item_factory: