summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/ir_to_mesa.cpp
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2013-11-29 00:52:11 -0800
committerPaul Berry <[email protected]>2013-12-09 10:55:09 -0800
commit088494aa032bf32db8b67f1fb07e5797603a473d (patch)
tree75118fb62d60fa288e77d0e14552e929e51de4b0 /src/mesa/program/ir_to_mesa.cpp
parent7ea3baa64da061f86a50c41081a26e0c2859e99c (diff)
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 <[email protected]>
Diffstat (limited to 'src/mesa/program/ir_to_mesa.cpp')
-rw-r--r--src/mesa/program/ir_to_mesa.cpp7
1 files changed, 0 insertions, 7 deletions
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);
}