• Eric Anholt's avatar
    glsl: Put a bunch of optimization visitors under anonymous namespaces. · 337d9c95
    Eric Anholt authored
    Because these classes are used entirely from their own source files
    and not from separate DSOs, the linker gets to produce massively less
    code.  This cuts about 13k of text in the libdricore case.  In the
    non-libdricore case, the additional linkage information allows the
    compiler to inline some code, so libglsl.a size actually increases by
    about 300 bytes.
    
    For a dricore build, improves shader_runner runtime on
    glsl-fs-copy-propagation-texcoords-1 by 0.21% +/- 0.03% (n=353574,
    outliers removed).  No statistically significant difference with n=322
    on glslparsertest on a yofrankie shader intended to test compiler
    performance.
    Reviewed-by: Kenneth Graunke's avatarKenneth Graunke <kenneth@whitecape.org>
    337d9c95
Name
Last commit
Last update
bin Loading commit data...
configs Loading commit data...
docs Loading commit data...
doxygen Loading commit data...
include Loading commit data...
scons Loading commit data...
src Loading commit data...
tests Loading commit data...
.emacs-dirvars Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
Android.common.mk Loading commit data...
Android.mk Loading commit data...
Makefile.am Loading commit data...
SConstruct Loading commit data...
acinclude.m4 Loading commit data...
autogen.sh Loading commit data...
common.py Loading commit data...
configure.ac Loading commit data...