From: Kenneth Graunke Date: Wed, 18 May 2016 17:32:33 +0000 (-0700) Subject: nir: Handle fddy_fine and fddy_coarse in nir_lower_wpos_ytransform. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b8b1b1c34cfa7f3c68872b5726eaf554474ea464;p=mesa.git nir: Handle fddy_fine and fddy_coarse in nir_lower_wpos_ytransform. These also need flipping! Signed-off-by: Kenneth Graunke Reviewed-by: Rob Clark --- diff --git a/src/compiler/nir/nir_lower_wpos_ytransform.c b/src/compiler/nir/nir_lower_wpos_ytransform.c index 7741df216a2..36e25b933ae 100644 --- a/src/compiler/nir/nir_lower_wpos_ytransform.c +++ b/src/compiler/nir/nir_lower_wpos_ytransform.c @@ -297,7 +297,9 @@ lower_wpos_ytransform_block(lower_wpos_ytransform_state *state, nir_block *block } } else if (instr->type == nir_instr_type_alu) { nir_alu_instr *alu = nir_instr_as_alu(instr); - if (alu->op == nir_op_fddy) + if (alu->op == nir_op_fddy || + alu->op == nir_op_fddy_fine || + alu->op == nir_op_fddy_coarse) lower_fddy(state, alu); } }