summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2018-03-28 18:21:59 +0100
committerJuan A. Suarez Romero <jasuarez@igalia.com>2018-04-12 00:42:54 +0200
commitd0956ec98b19f7e5a43b6dd64664db95eb1eafc0 (patch)
treec5bbb86e89c1105d2461e9faa8f636f04fcbc0eb
parentdda82e3403972bf28a5ae8ac10ddcdf76895388f (diff)
glsl: remove unreachable assert()
Earlier commit enforced that we'll bail out if the number of terminators is different than 2. With that in mind, the assert() will never trigger. Fixes: 56b867395de ("glsl: fix infinite loop caused by bug in loop unrolling pass") Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Signed-off-by: Emil Velikov <emil.velikov@collabora.com> (cherry picked from commit 8eceac9de7d3cd4fddabbe61d512acfed9812169)
-rw-r--r--src/compiler/glsl/loop_unroll.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/compiler/glsl/loop_unroll.cpp b/src/compiler/glsl/loop_unroll.cpp
index f6efe6475a0..874f4185681 100644
--- a/src/compiler/glsl/loop_unroll.cpp
+++ b/src/compiler/glsl/loop_unroll.cpp
@@ -528,8 +528,6 @@ loop_unroll_visitor::visit_leave(ir_loop *ir)
unsigned term_count = 0;
bool first_term_then_continue = false;
foreach_in_list(loop_terminator, t, &ls->terminators) {
- assert(term_count < 2);
-
ir_if *ir_if = t->ir->as_if();
assert(ir_if != NULL);