projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98728ce
)
vc4: Drop an unused algebraic op.
author
Eric Anholt
<eric@anholt.net>
Wed, 19 Aug 2015 03:18:51 +0000
(20:18 -0700)
committer
Eric Anholt
<eric@anholt.net>
Fri, 21 Aug 2015 06:42:53 +0000
(23:42 -0700)
NIR now handles this optimization for us.
src/gallium/drivers/vc4/vc4_opt_algebraic.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/vc4/vc4_opt_algebraic.c
b/src/gallium/drivers/vc4/vc4_opt_algebraic.c
index 22304e119303d30a29d6240cffb553953ad33773..e8c93dedfd2d121f1690da54b001a2ead0248f3c 100644
(file)
--- 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.