diff options
author | Eric Anholt <[email protected]> | 2011-06-24 12:20:09 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2011-06-29 15:09:54 -0700 |
commit | 487dd96c2706aa352ed44637507dd7f38ac80306 (patch) | |
tree | ab780f3af8e51a41966f49664e6d20871eab2799 /src/glsl/ir.h | |
parent | 8fad8637ef42ccd064a4f90b090d8096ab968e58 (diff) |
glsl: Avoid making a temporary for lower_mat_op_to_vec if not needed.
Our copy propagation tends to be bad at handling the later array
accesses of the matrix argument we moved to a temporary. Generally we
don't need to move it to a temporary, though, so this avoids needing
more copy propagation complexity.
Reduces instruction count of some Unigine Tropics and Sanctuary
fragment shaders that do operations on uniform matrix arrays by 5.9%
on gen6.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/ir.h')
0 files changed, 0 insertions, 0 deletions