glsl: Rename loop_unroll_count::fail to "nested_loop."
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 8 Apr 2014 22:33:27 +0000 (15:33 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 12 Apr 2014 00:41:41 +0000 (17:41 -0700)
commit2231db559819d62303660dbe551cbcd6c9610793
tree19895c57bff82c2312509adf5a2783c207f31f2b
parent8268a2f34783076043418a1043fde4572ea8b7b5
glsl: Rename loop_unroll_count::fail to "nested_loop."

The "fail" flag is set if loop_unroll_count encounters a nested loop;
calling the flag "nested_loop" is a bit clearer.

The original reasoning was that count is inaccurate (too small) if there
are nested loops, as we don't do any sort of analysis on the inner loop.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glsl/loop_unroll.cpp