summaryrefslogtreecommitdiffstats
path: root/src/mesa/glapi/gl_apitemp.py
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2006-08-28 17:40:45 +0000
committerIan Romanick <[email protected]>2006-08-28 17:40:45 +0000
commit258751f4a0ac505e66346d8e6ccaec7c5a585534 (patch)
tree4a3f6f693a6bf44b285dbae79d623159e0d0d843 /src/mesa/glapi/gl_apitemp.py
parent0bb27c084da7eae0dfe1d858a134bd19b29faa25 (diff)
Add two new gl_function methods. dispatch_name returns the name of
the true static dispatch name (either the glFooBar name or the gl_dispatch_stub_XXX name). static_name returns the name of the static function for a specific alias of a GL function. Adding (and using) these two functions corrects some problems in the generated code related to functions with multiple aliases where some of the aliases have true static dispatch functions and some don't. I have verified that everything under progs, except xdemos/xdemo, correctly link. I did this by doing 'make linux-dri-x86-64 PROGRAM_DIRS="demos redbook samples xdemos tests"'.
Diffstat (limited to 'src/mesa/glapi/gl_apitemp.py')
-rw-r--r--src/mesa/glapi/gl_apitemp.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/mesa/glapi/gl_apitemp.py b/src/mesa/glapi/gl_apitemp.py
index 04a3ff32555..cb87dbd62b0 100644
--- a/src/mesa/glapi/gl_apitemp.py
+++ b/src/mesa/glapi/gl_apitemp.py
@@ -56,12 +56,12 @@ class PrintGlOffsets(gl_XML.gl_print_base):
comma = ""
if f.is_static_entry_point(name):
- n = name
keyword = "KEYWORD1"
else:
- n = "_dispatch_stub_%u" % (f.offset)
keyword = "KEYWORD1_ALT"
+ n = f.static_name(name)
+
for p in f.parameterIterator():
if p.is_pointer():
cast = "(const void *) "
@@ -166,12 +166,7 @@ class PrintGlOffsets(gl_XML.gl_print_base):
static _glapi_proc DISPATCH_TABLE_NAME[] = {"""
for f in api.functionIterateByOffset():
- if f.is_static_entry_point(f.name):
- n = f.name
- else:
- n = "_dispatch_stub_%u" % (f.offset)
-
- print ' TABLE_ENTRY(%s),' % (n)
+ print ' TABLE_ENTRY(%s),' % (f.dispatch_name())
print ' /* A whole bunch of no-op functions. These might be called'
print ' * when someone tries to call a dynamically-registered'