glsl: Reduce processing of expression trees in do_structure_splitting.
authorEric Anholt <eric@anholt.net>
Fri, 11 Mar 2011 21:17:03 +0000 (13:17 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 15 Mar 2011 16:49:01 +0000 (09:49 -0700)
commit05cf1ad82eb903eb07d7b379d0ea610bb43dd84a
tree73f054b1af44e095a0fac01e0336db8091c72f68
parent991fa4d3d07a3ebda2a1398d346b18b3afbaa736
glsl: Reduce processing of expression trees in do_structure_splitting.

Most of the time we don't have a non-uniform struct variable in the
shader, so this cuts the time spent in do_structure_splitting during
glean texCombine by about 2/3.
src/glsl/opt_structure_splitting.cpp