Mesa (master): glsl: When assiging from a whole array, mark it as used.

Eric Anholt anholt at kemper.freedesktop.org
Fri Sep 9 03:21:04 UTC 2011


Module: Mesa
Branch: master
Commit: 407a1001aefcb15e8d066031417d91ea22f1daf1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=407a1001aefcb15e8d066031417d91ea22f1daf1

Author: Eric Anholt <eric at anholt.net>
Date:   Wed Sep  7 11:53:20 2011 -0700

glsl: When assiging from a whole array, mark it as used.

Fixes piglit link-uniform-array-size.

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

---

 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 a4eaf85..e70e0b3 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);
    }
 




More information about the mesa-commit mailing list