OSDN Git Service

glsl: Comment that expression flattening is used for matrix operations.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 13 Mar 2012 18:42:26 +0000 (11:42 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 26 Mar 2012 17:21:44 +0000 (10:21 -0700)
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glsl/ir_expression_flattening.cpp

index 0b7c537..bd4ac67 100644 (file)
  * 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.