diff options
author | Eric Anholt <[email protected]> | 2011-09-07 11:53:20 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2011-09-08 20:20:49 -0700 |
commit | 407a1001aefcb15e8d066031417d91ea22f1daf1 (patch) | |
tree | 6258e69f18b1b9fddb2913e13bae8f59fbab3f9e /src/glsl | |
parent | d00deae3ef3a7828de1e566ad95b3a5b1ab7034d (diff) |
glsl: When assiging from a whole array, mark it as used.
Fixes piglit link-uniform-array-size.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/ast_to_hir.cpp | 1 |
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); } |