From ca7560765c7d2d6caa494d3697a0a7c7d3e3d076 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 7 Sep 2011 11:53:20 -0700 Subject: [PATCH] glsl: When assiging from a whole array, mark it as used. Fixes piglit link-uniform-array-size. Reviewed-by: Ian Romanick (cherry picked from commit 407a1001aefcb15e8d066031417d91ea22f1daf1) --- src/glsl/ast_to_hir.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 74dcf72a0be..22890473bd2 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -719,6 +719,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); }