diff options
author | Ian Romanick <[email protected]> | 2006-08-26 21:26:55 +0000 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2006-08-26 21:26:55 +0000 |
commit | 7e9737b3704b92865242d7564825cdc57db5c4c9 (patch) | |
tree | dc263730d8d7ac5d0e0c21177a7ad52ff3100fcc /src/mesa/glapi/gl_x86-64_asm.py | |
parent | 092d14be92259d4210e3a2b5d4b5e18886bb4d4a (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_x86-64_asm.py')
-rw-r--r-- | src/mesa/glapi/gl_x86-64_asm.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/glapi/gl_x86-64_asm.py b/src/mesa/glapi/gl_x86-64_asm.py index eb440009b2f..33943bce934 100644 --- a/src/mesa/glapi/gl_x86-64_asm.py +++ b/src/mesa/glapi/gl_x86-64_asm.py @@ -236,7 +236,7 @@ class PrintGenericStubs(gl_XML.gl_print_base): registers.append( ["%rbp", 0] ) - if f.static_dispatch: + if f.is_static_entry_point(f.name): name = f.name else: name = "_dispatch_stub_%u" % (f.offset) @@ -244,7 +244,7 @@ class PrintGenericStubs(gl_XML.gl_print_base): print '\t.p2align\t4,,15' print '\t.globl\tGL_PREFIX(%s)' % (name) print '\t.type\tGL_PREFIX(%s), @function' % (name) - if not f.static_dispatch: + if not f.is_static_entry_point(f.name): print '\tHIDDEN(GL_PREFIX(%s))' % (name) print 'GL_PREFIX(%s):' % (name) print '#if defined(GLX_USE_TLS)' @@ -291,9 +291,9 @@ class PrintGenericStubs(gl_XML.gl_print_base): for f in api.functionIterateByOffset(): - if f.static_dispatch: - for n in f.entry_points: - if n != f.name: + for n in f.entry_points: + if n != f.name: + if f.is_static_entry_point(n): print '\t.globl GL_PREFIX(%s) ; .set GL_PREFIX(%s), GL_PREFIX(%s)' % (n, n, f.name) return |