summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_vp_build.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-04-29 13:19:33 -0700
committerKenneth Graunke <[email protected]>2016-05-15 23:59:33 -0700
commitdb8fcbbaf940cdf690878f204f17d8bc90a6768e (patch)
tree62bb3a2b81612b7521f14ce16f8797be2105152c /src/mesa/tnl/t_vp_build.c
parent329fe93210ce8f603f831ebd8431786d12cd1057 (diff)
glsl: Avoid excess tree walking when folding ir_dereference_arrays.
If an ir_dereference_array has non-constant components, there's no point in trying to evaluate its value (which involves walking down the tree and possibly allocating memory for portions of the subtree which are constant). This also removes convoluted tree walking in opt_constant_folding(), which tries to fold constants while walking up the tree. No need to walk down, then up, then down again. We did this for swizzles and expressions already, but I was lazy back in the day and didn't do this for ir_dereference_array. No change in shader-db. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/tnl/t_vp_build.c')
0 files changed, 0 insertions, 0 deletions