summaryrefslogtreecommitdiffstats
path: root/src/glsl/opt_structure_splitting.cpp
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-06-24 12:20:09 -0700
committerEric Anholt <[email protected]>2011-06-29 15:09:54 -0700
commit487dd96c2706aa352ed44637507dd7f38ac80306 (patch)
treeab780f3af8e51a41966f49664e6d20871eab2799 /src/glsl/opt_structure_splitting.cpp
parent8fad8637ef42ccd064a4f90b090d8096ab968e58 (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/opt_structure_splitting.cpp')
0 files changed, 0 insertions, 0 deletions