From: Zack Rusin Date: Thu, 22 Apr 2010 17:45:25 +0000 (-0400) Subject: gallivm: fix nested cont statements X-Git-Tag: 062012170305~12277^2~162 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d2e09fdc23e2573e9466f60db20ef4ac04b367d;p=profile%2Fivi%2Fmesa.git gallivm: fix nested cont statements --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c index b87817d..e55e3dc 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c @@ -234,6 +234,7 @@ static void lp_exec_bgnloop(struct lp_exec_mask *mask) mask->cond_mask = LLVMConstAllOnes(mask->int_vec_type); mask->break_stack[mask->break_stack_size++] = mask->break_mask; + mask->cont_stack[mask->cont_stack_size++] = mask->cont_mask; mask->loop_stack[mask->loop_stack_size++] = mask->loop_block; mask->loop_block = lp_build_insert_new_block(mask->bld->builder, "bgnloop"); LLVMBuildBr(mask->bld->builder, mask->loop_block); @@ -264,7 +265,6 @@ static void lp_exec_continue(struct lp_exec_mask *mask) mask->exec_mask, ""); - mask->cont_stack[mask->cont_stack_size++] = mask->cont_mask; if (mask->cont_stack_size > 1) { mask->cont_mask = LLVMBuildAnd(mask->bld->builder, mask->cont_mask,