summaryrefslogtreecommitdiffstats
path: root/src/glsl/loop_analysis.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2011-01-17 22:07:55 -0800
committerEric Anholt <eric@anholt.net>2011-01-18 10:17:37 -0800
commit58c988ada56114b56477983f66b4039219f1a82c (patch)
tree0599f47a88746a3176894b9b492ade28bf5f37ed /src/glsl/loop_analysis.h
parent754b9c5363aa7ae5f47c88c78790b3fe35c07403 (diff)
downloadexternal_mesa3d-58c988ada56114b56477983f66b4039219f1a82c.zip
external_mesa3d-58c988ada56114b56477983f66b4039219f1a82c.tar.gz
external_mesa3d-58c988ada56114b56477983f66b4039219f1a82c.tar.bz2
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).
Diffstat (limited to 'src/glsl/loop_analysis.h')
-rw-r--r--src/glsl/loop_analysis.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/loop_analysis.h b/src/glsl/loop_analysis.h
index 7b0511f..2297308 100644
--- a/src/glsl/loop_analysis.h
+++ b/src/glsl/loop_analysis.h
@@ -214,6 +214,8 @@ public:
loop_variable_state *insert(ir_loop *ir);
+ bool loop_found;
+
private:
loop_state();