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).
This commit is contained in:
Eric Anholt
2011-01-17 22:07:55 -08:00
parent 754b9c5363
commit 58c988ada5
3 changed files with 9 additions and 2 deletions

View File

@@ -214,6 +214,8 @@ public:
loop_variable_state *insert(ir_loop *ir);
bool loop_found;
private:
loop_state();