From 088494aa032bf32db8b67f1fb07e5797603a473d Mon Sep 17 00:00:00 2001 From: Paul Berry Date: Fri, 29 Nov 2013 00:52:11 -0800 Subject: glsl/loops: Get rid of lower_bounded_loops and ir_loop::normative_bound. Now that loop_controls no longer creates normatively bound loops, there is no need for ir_loop::normative_bound or the lower_bounded_loops pass. Reviewed-by: Ian Romanick --- src/mesa/program/ir_to_mesa.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/mesa/program') diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index 583cdef9f26..ad6c242e4d5 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -759,11 +759,6 @@ ir_to_mesa_visitor::visit(ir_variable *ir) void ir_to_mesa_visitor::visit(ir_loop *ir) { - /* Any normative loop bounds should have been lowered by - * lower_bounded_loops(). - */ - assert(ir->normative_bound < 0); - emit(NULL, OPCODE_BGNLOOP); visit_exec_list(&ir->body_instructions, this); @@ -3057,8 +3052,6 @@ _mesa_ir_link_shader(struct gl_context *ctx, struct gl_shader_program *prog) progress = lower_vector_insert(ir, true) || progress; } while (progress); - lower_bounded_loops(ir); - validate_ir_tree(ir); } -- cgit v1.2.3