From f0ff50d4edbeab5aa0df349772ed2eda64878282 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Sat, 2 Jul 2005 08:29:57 +0000 Subject: 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. --- src/mesa/glapi/gl_XML.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/mesa/glapi/gl_XML.py') 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: -- cgit v1.2.3