diff options
author | Ian Romanick <[email protected]> | 2011-08-01 13:55:46 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2011-08-15 11:44:26 -0700 |
commit | 4a026d6ba50034c326eb6cfd0b555f57d83ab609 (patch) | |
tree | 2f3d490115a5ce1efbed52d0214d0b99c3e7a5d2 /configs/linux-indirect | |
parent | 13df36ecb6c24ea36534fa0dfea917aca8233710 (diff) |
glsl: Slight change to the code generated by if-flattening
Now the condition (for the then-clause) and the inverse condition (for
the else-clause) get written to separate temporary variables. In the
presence of complex conditions, this shouldn't result in more code
being generated. If the original if-statement was
if (a && b && c && d && e) {
...
} else {
...
}
The lowered code will be
if_to_cond_assign_then = a && b && c && d && e;
...
if_to_cond_assign_else = !if_to_cond_assign_then;
...
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'configs/linux-indirect')
0 files changed, 0 insertions, 0 deletions