mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 11:30:21 +01:00
glsl: only call mark_max_array if we are assigning an
array This change does not help fix or prevent any bugs it just seems reasonable to do Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au> Reviewed-by: Paul Berry <stereotype441@gmail.com>
This commit is contained in:
parent
bfb48750f0
commit
3dc932d450
1 changed files with 4 additions and 2 deletions
|
|
@ -830,8 +830,10 @@ do_assignment(exec_list *instructions, struct _mesa_glsl_parse_state *state,
|
|||
rhs->type->array_size());
|
||||
d->type = var->type;
|
||||
}
|
||||
mark_whole_array_access(rhs);
|
||||
mark_whole_array_access(lhs);
|
||||
if (lhs->type->is_array()) {
|
||||
mark_whole_array_access(rhs);
|
||||
mark_whole_array_access(lhs);
|
||||
}
|
||||
}
|
||||
|
||||
/* Most callers of do_assignment (assign, add_assign, pre_inc/dec,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue