glsl: Fix up a comment explaining what a visitor class does.
authorEric Anholt <eric@anholt.net>
Mon, 16 Apr 2012 16:17:46 +0000 (09:17 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 19 Apr 2012 23:33:09 +0000 (16:33 -0700)
Ken noted that some of the "actual work" was happening in the caller
of this class.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/opt_array_splitting.cpp

index b9c70dc9006d632ff7cfec453ee7903b3059f4ab..387bd5cba089a9c90f0384061b62840152ebc11b 100644 (file)
@@ -217,7 +217,10 @@ ir_array_reference_visitor::get_split_list(exec_list *instructions,
    return !variable_list.is_empty();
 }
 
-/** This is the class that does the actual work of splitting. */
+/**
+ * This class rewrites the dereferences of arrays that have been split
+ * to use the newly created ir_variables for each component.
+ */
 class ir_array_splitting_visitor : public ir_rvalue_visitor {
 public:
    ir_array_splitting_visitor(exec_list *vars)