summaryrefslogtreecommitdiff
path: root/src/mesa/glapi/gl_procs.py
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2006-08-26 21:26:55 +0000
committerIan Romanick <idr@us.ibm.com>2006-08-26 21:26:55 +0000
commit7e9737b3704b92865242d7564825cdc57db5c4c9 (patch)
treedc263730d8d7ac5d0e0c21177a7ad52ff3100fcc /src/mesa/glapi/gl_procs.py
parent092d14be92259d4210e3a2b5d4b5e18886bb4d4a (diff)
Explicitly store the names for each function that should have a static
entry point generated. This allows us to do things like generate a static entry point for glPointParameterfvARB but not for glPointParameterfvSGIS.
Diffstat (limited to 'src/mesa/glapi/gl_procs.py')
-rw-r--r--src/mesa/glapi/gl_procs.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/mesa/glapi/gl_procs.py b/src/mesa/glapi/gl_procs.py
index 145243ee0e..4a540e2d38 100644
--- a/src/mesa/glapi/gl_procs.py
+++ b/src/mesa/glapi/gl_procs.py
@@ -87,7 +87,7 @@ class PrintGlProcs(gl_XML.gl_print_base):
base_offset = 0
table = []
for func in api.functionIterateByOffset():
- if func.static_dispatch:
+ if func.is_static_entry_point(func.name):
name = func.name
else:
name = "_dispatch_stub_%u" % (func.offset)
@@ -104,7 +104,7 @@ class PrintGlProcs(gl_XML.gl_print_base):
for func in api.functionIterateByOffset():
for n in func.entry_points:
if n != func.name:
- if func.static_dispatch:
+ if func.is_static_entry_point(n):
name = n
else:
name = "_dispatch_stub_%u" % (func.offset)
@@ -123,8 +123,11 @@ class PrintGlProcs(gl_XML.gl_print_base):
print '/* FIXME: Having these (incorrect) prototypes here is ugly. */'
print '#ifdef NEED_FUNCTION_POINTER'
for func in api.functionIterateByOffset():
- if not func.static_dispatch:
- print 'extern void gl_dispatch_stub_%u(void);' % (func.offset)
+ for n in func.entry_points:
+ if not func.is_static_entry_point(n):
+ print 'extern void gl_dispatch_stub_%u(void);' % (func.offset)
+ break
+
print '#endif /* NEED_FUNCTION_POINTER */'
print ''