nir: split out lower_sub from lower_negate
authorRob Clark <robclark@freedesktop.org>
Sat, 4 Apr 2015 12:13:44 +0000 (08:13 -0400)
committerRob Clark <robclark@freedesktop.org>
Sat, 11 Apr 2015 14:43:16 +0000 (10:43 -0400)
commit58add76791459e023f82eab973719c71779dae9d
tree660a4e01747fa67ff2bc3338bd9c55be04ff81b4
parentfd65122a900a5779393faa0ede6737fafcb95a27
nir: split out lower_sub from lower_negate

Originally you had to have one or the other.  But actually I don't want
either.  (Or rather I want whatever is the minimum # of instructions.)

TODO: not sure where the best place to insert a check that driver hasn't
set *both* lower_negate and lower_sub?

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/glsl/nir/nir.h
src/glsl/nir/nir_opt_algebraic.py
src/mesa/drivers/dri/i965/brw_context.c