From 3bcfafcf0320ee5407716ff67062e80d162760d4 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Fri, 27 Aug 2010 15:41:20 -0700 Subject: glsl2: Track the number of ir_loop_jump instructions that are in a loop --- src/glsl/loop_controls.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/glsl/loop_controls.cpp') diff --git a/src/glsl/loop_controls.cpp b/src/glsl/loop_controls.cpp index 9eb1a8901b0..f2e1ecb904d 100644 --- a/src/glsl/loop_controls.cpp +++ b/src/glsl/loop_controls.cpp @@ -253,6 +253,10 @@ loop_control_visitor::visit_leave(ir_loop *ir) * satisfied. */ if_stmt->remove(); + + assert(ls->num_loop_jumps > 0); + ls->num_loop_jumps--; + this->progress = true; } -- cgit v1.2.3