nir: Handle fddy_fine and fddy_coarse in nir_lower_wpos_ytransform.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 18 May 2016 17:32:33 +0000 (10:32 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 20 May 2016 21:29:04 +0000 (14:29 -0700)
These also need flipping!

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/compiler/nir/nir_lower_wpos_ytransform.c

index 7741df216a2f715e5a809e8942727ce4a2e2a8a8..36e25b933ae24659e8991f2ea9fda9b48716e987 100644 (file)
@@ -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);
       }
    }