mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-13 02:40:28 +01:00
glsl: Comment that expression flattening is used for matrix operations.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
7f6af49092
commit
ced54dcf9b
1 changed files with 4 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue