Mesa (master): vc4: Drop an unused algebraic op.
Eric Anholt
anholt at kemper.freedesktop.org
Fri Aug 21 06:43:51 UTC 2015
Module: Mesa
Branch: master
Commit: fd74da11c48dcd9098d4f64508aae65775c68b75
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fd74da11c48dcd9098d4f64508aae65775c68b75
Author: Eric Anholt <eric at anholt.net>
Date: Tue Aug 18 20:18:51 2015 -0700
vc4: Drop an unused algebraic op.
NIR now handles this optimization for us.
---
src/gallium/drivers/vc4/vc4_opt_algebraic.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/src/gallium/drivers/vc4/vc4_opt_algebraic.c b/src/gallium/drivers/vc4/vc4_opt_algebraic.c
index 22304e1..e8c93de 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.
More information about the mesa-commit
mailing list