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:
Timothy Arceri 2014-01-23 23:19:54 +11:00
parent bfb48750f0
commit 3dc932d450

View file

@ -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,