We already have a lower_negate compiler option, so I think it would be
better to add the 1 line of code to lower sub -> neg predicated on
!lower_neg to nir_opt_algebraic.
On Mon, Mar 23, 2015 at 8:37 PM, Kenneth Graunke wrote:
> prog_to_nir uses this for OPCODE_SUB.
>
> Signed-off-by: Kenneth Gra
prog_to_nir uses this for OPCODE_SUB.
Signed-off-by: Kenneth Graunke
---
src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 6 ++
1 file changed, 6 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
index 69f296c..094303f 100644
--- a/src