summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2012-03-13 11:42:26 -0700
committerKenneth Graunke <[email protected]>2012-03-26 10:21:44 -0700
commitced54dcf9b496dbe0bf254673ecee37014c1ee3b (patch)
treee96285b60d5d7cb712dc44a283f9af10468419ec /src/glsl
parent7f6af4909241de7197e774dee988f574cb576a3b (diff)
glsl: Comment that expression flattening is used for matrix operations.
Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/ir_expression_flattening.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/glsl/ir_expression_flattening.cpp b/src/glsl/ir_expression_flattening.cpp
index 0b7c537bd8a..bd4ac67bc1a 100644
--- a/src/glsl/ir_expression_flattening.cpp
+++ b/src/glsl/ir_expression_flattening.cpp
@@ -27,7 +27,10 @@
* Takes the leaves of expression trees and makes them dereferences of
* assignments of the leaves to temporaries, according to a predicate.
*
- * This is used for automatic function inlining, where we want to take
+ * This is used for breaking down matrix operations, where it's easier to
+ * create a temporary and work on each of its vector components individually.
+ *
+ * It is also used for automatic function inlining, where we want to take
* an expression containing a call and move the call out to its own
* assignment so that we can inline it at the appropriate place in the
* instruction stream.