From 4b4cd1d7680bf02007ba55732fa651bee9735c9d Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 19 Apr 2019 12:20:58 -0700 Subject: [PATCH] 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 --- src/gen_dispatch.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/gen_dispatch.py b/src/gen_dispatch.py index fe4ffb4..76248cb 100755 --- a/src/gen_dispatch.py +++ b/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