nir: Add support for CSE on textures.
authorEric Anholt <eric@anholt.net>
Sat, 7 Feb 2015 00:24:36 +0000 (16:24 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 14 Aug 2015 18:39:18 +0000 (11:39 -0700)
commita6e75e3cd74fd60200cc8dddc672a2d88495eb06
treea780ee18da9628394dbc51d3f67cf527a2857edc
parentfb2425a641dd7f891964e6f51b10cce63dff7d2c
nir: Add support for CSE on textures.

NIR instruction count results on i965:
total instructions in shared programs: 1261954 -> 1261937 (-0.00%)
instructions in affected programs:     455 -> 438 (-3.74%)

One in yofrankie, two in tropics.  Apparently i965 had also optimized all
of these out anyway.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/glsl/nir/nir_opt_cse.c