From 763176a3e2166b2f1757582948e985d6bca9531c Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 28 Dec 2015 13:22:09 -0800 Subject: [PATCH] nir/lower_returns: Fix a bug in loop lowering --- src/glsl/nir/nir_lower_returns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/nir/nir_lower_returns.c b/src/glsl/nir/nir_lower_returns.c index 178e454d737..dcdd14e2026 100644 --- a/src/glsl/nir/nir_lower_returns.c +++ b/src/glsl/nir/nir_lower_returns.c @@ -160,7 +160,7 @@ lower_returns_in_block(nir_block *block, struct lower_returns_state *state) if (state->loop) { /* We're in a loop. Make the return a break. */ - jump->type = nir_jump_return; + jump->type = nir_jump_break; } else { /* Not in a loop. Just delete the return; we'll deal with * predicating later. -- 2.30.2