summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2012-04-16 09:17:46 -0700
committerEric Anholt <[email protected]>2012-04-19 16:33:09 -0700
commit36a8c9caafef79524920120286649a0f53fe5228 (patch)
tree75818caa7f6a6326489bdc65eccea390d4bf6f98 /src/glsl
parentc07290ddb2bf3095b9f5a1e0b33697999834fa0e (diff)
glsl: Fix up a comment explaining what a visitor class does.
Ken noted that some of the "actual work" was happening in the caller of this class. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/opt_array_splitting.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/glsl/opt_array_splitting.cpp b/src/glsl/opt_array_splitting.cpp
index b9c70dc9006..387bd5cba08 100644
--- a/src/glsl/opt_array_splitting.cpp
+++ b/src/glsl/opt_array_splitting.cpp
@@ -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)