summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-09-07 11:53:20 -0700
committerEric Anholt <[email protected]>2011-09-08 20:20:49 -0700
commit407a1001aefcb15e8d066031417d91ea22f1daf1 (patch)
tree6258e69f18b1b9fddb2913e13bae8f59fbab3f9e
parentd00deae3ef3a7828de1e566ad95b3a5b1ab7034d (diff)
glsl: When assiging from a whole array, mark it as used.
Fixes piglit link-uniform-array-size. Reviewed-by: Ian Romanick <[email protected]>
-rw-r--r--src/glsl/ast_to_hir.cpp1
1 files changed, 1 insertions, 0 deletions
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);
}