glsl: Make the tree rebalancer use vector_elements, not components().
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 15 Jul 2014 23:36:32 +0000 (16:36 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 16 Jul 2014 22:43:13 +0000 (15:43 -0700)
commit9e47ed2f77d8c274104cdcbc6b7c0c7334c50fdb
tree6562184bafbf49c180c9184b393a9e7e5a51c113
parent7db75927ca9f15bcbb28d23f9cfbc34541a51938
glsl: Make the tree rebalancer use vector_elements, not components().

components() includes matrix columns, so if this code encountered a
matrix, it would ask for something like a vec9 or vec16.  This is
clearly not what you want.

Earlier code now prevents this from seeing matrices, but we should still
use vector_elements, for clarity.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/opt_rebalance_tree.cpp