glsl: Skip the rest of loop unrolling if no loops were found.
authorEric Anholt <eric@anholt.net>
Tue, 18 Jan 2011 06:07:55 +0000 (22:07 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 18 Jan 2011 18:17:37 +0000 (10:17 -0800)
commit58c988ada56114b56477983f66b4039219f1a82c
tree0599f47a88746a3176894b9b492ade28bf5f37ed
parent754b9c5363aa7ae5f47c88c78790b3fe35c07403
glsl: Skip the rest of loop unrolling if no loops were found.

Shaves 1.6% (+/- 1.0%) off of ff_fragment_shader glean texCombine time
(n=5).
src/glsl/glsl_parser_extras.cpp
src/glsl/loop_analysis.cpp
src/glsl/loop_analysis.h