Drop "GL extension" and "GLX extension" and such from the debug output.

Saves 7k of text from the binary.  You can already tell what kind of
extension it is from the prefix on the extension name anyway.

1121212	  56800	    160	1178172	 11fa3c	master.so
1114236	  56800	    160	1171196	 11defc	providernames.so
macos/v1.5.9
Eric Anholt 6 years ago committed by Adam Jackson
parent 7ce1896dcc
commit 4b4cd1d768
  1. 12
      src/gen_dispatch.py

@ -391,25 +391,21 @@ class Generator(object):
# or glx, which are separated by '|'
apis = extension.get('supported').split('|')
if 'glx' in apis:
human_name = 'GLX extension \\"{0}\\"'.format(extname)
condition = 'epoxy_conservative_has_glx_extension("{0}")'.format(extname)
loader = 'glXGetProcAddress((const GLubyte *){0})'
self.process_require_statements(extension, condition, loader, human_name)
self.process_require_statements(extension, condition, loader, extname)
if 'egl' in apis:
human_name = 'EGL extension \\"{0}\\"'.format(extname)
condition = 'epoxy_conservative_has_egl_extension("{0}")'.format(extname)
loader = 'eglGetProcAddress({0})'
self.process_require_statements(extension, condition, loader, human_name)
self.process_require_statements(extension, condition, loader, extname)
if 'wgl' in apis:
human_name = 'WGL extension \\"{0}\\"'.format(extname)
condition = 'epoxy_conservative_has_wgl_extension("{0}")'.format(extname)
loader = 'wglGetProcAddress({0})'
self.process_require_statements(extension, condition, loader, human_name)
self.process_require_statements(extension, condition, loader, extname)
if {'gl', 'gles1', 'gles2'}.intersection(apis):
human_name = 'GL extension \\"{0}\\"'.format(extname)
condition = 'epoxy_conservative_has_gl_extension("{0}")'.format(extname)
loader = 'epoxy_get_proc_address({0})'
self.process_require_statements(extension, condition, loader, human_name)
self.process_require_statements(extension, condition, loader, extname)
def fixup_bootstrap_function(self, name, loader):
# We handle glGetString(), glGetIntegerv(), and

Loading…
Cancel
Save