aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mapi/glapi/gen/remap_helper.py
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-09-20 08:40:57 +0200
committermarha <marha@users.sourceforge.net>2011-09-20 08:40:57 +0200
commit0470a59df89ab453bdbe0fc2f820278cfffdc61c (patch)
tree5482d527c8426219414edc60d3891764ca2b1a20 /mesalib/src/mapi/glapi/gen/remap_helper.py
parentb2c925e360e2c366526de15b44603f855f94139c (diff)
downloadvcxsrv-0470a59df89ab453bdbe0fc2f820278cfffdc61c.tar.gz
vcxsrv-0470a59df89ab453bdbe0fc2f820278cfffdc61c.tar.bz2
vcxsrv-0470a59df89ab453bdbe0fc2f820278cfffdc61c.zip
libX11 libxtrans mesa git update 20 sep 2011
Diffstat (limited to 'mesalib/src/mapi/glapi/gen/remap_helper.py')
-rw-r--r--mesalib/src/mapi/glapi/gen/remap_helper.py43
1 files changed, 5 insertions, 38 deletions
diff --git a/mesalib/src/mapi/glapi/gen/remap_helper.py b/mesalib/src/mapi/glapi/gen/remap_helper.py
index 367ae24c7..0008634ff 100644
--- a/mesalib/src/mapi/glapi/gen/remap_helper.py
+++ b/mesalib/src/mapi/glapi/gen/remap_helper.py
@@ -74,7 +74,11 @@ class PrintGlRemap(gl_XML.gl_print_base):
pool_indices = {}
print '/* this is internal to remap.c */'
- print '#ifdef need_MESA_remap_table'
+ print '#ifndef need_MESA_remap_table'
+ print '#error Only remap.c should include this file!'
+ print '#endif /* need_MESA_remap_table */'
+ print ''
+
print ''
print 'static const char _mesa_function_pool[] ='
@@ -156,43 +160,6 @@ class PrintGlRemap(gl_XML.gl_print_base):
print ' { -1, -1 }'
print '};'
print ''
-
- print '#endif /* need_MESA_remap_table */'
- print ''
-
- # output remap helpers for DRI drivers
-
- for ext in extensions:
- funcs = []
- remapped = []
- for f in extension_functions[ext]:
- if f.assign_offset:
- # these are handled above
- remapped.append(f)
- else:
- # these functions are either in the
- # abi, or have offset -1
- funcs.append(f)
-
- print '#if defined(need_%s)' % (ext)
- if remapped:
- print '/* functions defined in MESA_remap_table_functions are excluded */'
-
- # output extension functions that need to be mapped
- print 'static const struct gl_function_remap %s_functions[] = {' % (ext)
- for f in funcs:
- if f.offset >= 0:
- print ' { %5d, _gloffset_%s },' \
- % (pool_indices[f], f.name)
- else:
- print ' { %5d, -1 }, /* %s */' % \
- (pool_indices[f], f.name)
- print ' { -1, -1 }'
- print '};'
-
- print '#endif'
- print ''
-
return