[Mesa-dev] [PATCH 03/10] glsl: Fix up a comment explaining what a visitor class does.
Eric Anholt
eric at anholt.net
Mon Apr 16 16:59:47 PDT 2012
Ken noted that some of the "actual work" was happening in the caller
of this class.
---
src/glsl/opt_array_splitting.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/glsl/opt_array_splitting.cpp b/src/glsl/opt_array_splitting.cpp
index e41818f..2b523fc 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)
--
1.7.10
More information about the mesa-dev
mailing list