summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-05-18 10:32:33 -0700
committerKenneth Graunke <[email protected]>2016-05-20 14:29:04 -0700
commitb8b1b1c34cfa7f3c68872b5726eaf554474ea464 (patch)
tree950be348503b0bd218897b6be97ae43ad2e99bf1 /src/compiler/nir
parent4b7577fad86ded34e1992bd4f8854016c2988e06 (diff)
nir: Handle fddy_fine and fddy_coarse in nir_lower_wpos_ytransform.
These also need flipping! Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/compiler/nir')
-rw-r--r--src/compiler/nir/nir_lower_wpos_ytransform.c4
1 files changed, 3 insertions, 1 deletions
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);
}
}