mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-17 20:00:20 +01:00
gallivm: fix a crash by making sure we set the has_mask flag correctly
This commit is contained in:
parent
f2a035e5d8
commit
1d84808dc0
1 changed files with 1 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue