From: Eric Anholt Date: Wed, 7 Sep 2011 18:53:20 +0000 (-0700) Subject: glsl: When assiging from a whole array, mark it as used. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=407a1001aefcb15e8d066031417d91ea22f1daf1;p=mesa.git glsl: When assiging from a whole array, mark it as used. Fixes piglit link-uniform-array-size. Reviewed-by: Ian Romanick --- diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index a4eaf857058..e70e0b359bd 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -723,6 +723,7 @@ 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); }