summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2015-08-18 20:18:51 -0700
committerEric Anholt <[email protected]>2015-08-20 23:42:53 -0700
commitfd74da11c48dcd9098d4f64508aae65775c68b75 (patch)
tree6d5898f09033d232f313d0846780156eea8b21a0
parent98728ce0718e49864b872beb76fc3afbf341b38a (diff)
vc4: Drop an unused algebraic op.
NIR now handles this optimization for us.
-rw-r--r--src/gallium/drivers/vc4/vc4_opt_algebraic.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/gallium/drivers/vc4/vc4_opt_algebraic.c b/src/gallium/drivers/vc4/vc4_opt_algebraic.c
index 22304e11930..e8c93dedfd2 100644
--- a/src/gallium/drivers/vc4/vc4_opt_algebraic.c
+++ b/src/gallium/drivers/vc4/vc4_opt_algebraic.c
@@ -143,15 +143,6 @@ qir_opt_algebraic(struct vc4_compile *c)
case QOP_SEL_X_Y_ZC:
case QOP_SEL_X_Y_NS:
case QOP_SEL_X_Y_NC:
- if (qir_reg_equals(inst->src[0], inst->src[1])) {
- /* Turn "dst = (sf == x) ? a : a)" into
- * "dst = a"
- */
- replace_with_mov(c, inst, inst->src[1]);
- progress = true;
- break;
- }
-
if (is_zero(c, inst->src[1])) {
/* Replace references to a 0 uniform value
* with the SEL_X_0 equivalent.