diff options
author | Zack Rusin <[email protected]> | 2010-03-08 15:04:04 -0500 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2010-03-08 15:04:04 -0500 |
commit | 1d84808dc045d7fcf2fade8d1504bc25e7c5041a (patch) | |
tree | 446a3b57a70f755736d4dfdf349410951e219f9e | |
parent | f2a035e5d8dab1785b31f3e43175595d40e75148 (diff) |
gallivm: fix a crash by making sure we set the has_mask flag correctly
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c | 3 |
1 files changed, 1 insertions, 2 deletions
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, |