From 8df2dbf91ddfd0c1590e33015e85470b67e69319 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 26 Aug 2010 16:45:22 -0700 Subject: glsl2: Perform initial bits of loop analysis during compilation --- src/glsl/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/glsl/main.cpp') diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp index cb9f8a52773..411bc08983d 100644 --- a/src/glsl/main.cpp +++ b/src/glsl/main.cpp @@ -35,6 +35,7 @@ #include "ir_optimization.h" #include "ir_print_visitor.h" #include "program.h" +#include "loop_analysis.h" extern "C" struct gl_shader * _mesa_new_shader(GLcontext *ctx, GLuint name, GLenum type); @@ -174,6 +175,10 @@ compile_shader(struct gl_shader *shader) progress = do_vec_index_to_swizzle(shader->ir) || progress; progress = do_vec_index_to_cond_assign(shader->ir) || progress; progress = do_swizzle_swizzle(shader->ir) || progress; + + loop_state *ls = analyze_loop_variables(shader->ir); + set_loop_controls(shader->ir, ls); + delete ls; } while (progress); validate_ir_tree(shader->ir); -- cgit v1.2.3