Re: [Mesa-dev] [PATCH 3/6] i965/fs: Implement nir_opcode_fsub/isub support.

2015-03-24 Thread Connor Abbott
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

[Mesa-dev] [PATCH 3/6] i965/fs: Implement nir_opcode_fsub/isub support.

2015-03-23 Thread Kenneth Graunke
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