aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/glapi/gen
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-03-18 11:36:57 +0800
committerChia-I Wu <[email protected]>2010-03-20 13:02:05 +0800
commit41a87a43e11c664935349f938022d58d3e22da4e (patch)
treeb0565c1df3e3a9bce2617c2106641aaa703acc2e /src/mesa/glapi/gen
parent7e6e049bb769012ef93d373d8a95a727120d2bc7 (diff)
glapi: Correctly generate static disatches for X86.
The entry point names, instead of the function name, should be used to test if the entry point should be statically dispatched.
Diffstat (limited to 'src/mesa/glapi/gen')
-rw-r--r--src/mesa/glapi/gen/gl_x86_asm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/glapi/gen/gl_x86_asm.py b/src/mesa/glapi/gen/gl_x86_asm.py
index a48724ee615..7fb7af50b53 100644
--- a/src/mesa/glapi/gen/gl_x86_asm.py
+++ b/src/mesa/glapi/gen/gl_x86_asm.py
@@ -226,8 +226,8 @@ class PrintGenericStubs(gl_XML.gl_print_base):
stack = self.get_stack_size(f)
alt = "%s@%u" % (name, stack)
- if f.is_static_entry_point(f.name):
- for n in f.entry_points:
+ for n in f.entry_points:
+ if f.is_static_entry_point(n):
if n != f.name:
alt2 = "%s@%u" % (n, stack)
text = '\tGL_STUB_ALIAS(%s, _gloffset_%s, %s, %s, %s)' % (n, f.name, alt2, f.name, alt)