glsl: When assiging from a whole array, mark it as used.
authorEric Anholt <eric@anholt.net>
Wed, 7 Sep 2011 18:53:20 +0000 (11:53 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 9 Sep 2011 03:20:49 +0000 (20:20 -0700)
Fixes piglit link-uniform-array-size.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/ast_to_hir.cpp

index a4eaf857058795173eb63570d975b3f31f6c11d8..e70e0b359bd5c7924f8c092cb3b69ad0fe84e678 100644 (file)
@@ -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);
    }