From: Zack Rusin Date: Mon, 8 Mar 2010 20:04:04 +0000 (-0500) Subject: gallivm: fix a crash by making sure we set the has_mask flag correctly X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1d84808dc045d7fcf2fade8d1504bc25e7c5041a;p=mesa.git gallivm: fix a crash by making sure we set the has_mask flag correctly --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c index 28ff362cac4..fbb664d43a0 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c @@ -152,8 +152,7 @@ static void lp_exec_mask_init(struct lp_exec_mask *mask, struct lp_build_context static void lp_exec_mask_update(struct lp_exec_mask *mask) { mask->exec_mask = mask->cond_mask; - if (mask->cond_stack_size > 0) - mask->has_mask = TRUE; + mask->has_mask = (mask->cond_stack_size > 0); } static void lp_exec_mask_cond_push(struct lp_exec_mask *mask,