Mesa (master): vc4: Fix the no-copy-propagating-from-TLB_COLOR_READ check.

Eric Anholt anholt at kemper.freedesktop.org
Sat Jan 10 00:57:12 UTC 2015


Module: Mesa
Branch: master
Commit: 3093bfacf042516cd2a0fa2346da1e9df5f321ec
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3093bfacf042516cd2a0fa2346da1e9df5f321ec

Author: Eric Anholt <eric at anholt.net>
Date:   Fri Jan  9 07:22:50 2015 -0800

vc4: Fix the no-copy-propagating-from-TLB_COLOR_READ check.

Our MOV's dst obviously won't be the TLB_COLOR_READ's def, because we're
ssa.

---

 src/gallium/drivers/vc4/vc4_opt_copy_propagation.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/vc4/vc4_opt_copy_propagation.c b/src/gallium/drivers/vc4/vc4_opt_copy_propagation.c
index 9cf1352..5ead378 100644
--- a/src/gallium/drivers/vc4/vc4_opt_copy_propagation.c
+++ b/src/gallium/drivers/vc4/vc4_opt_copy_propagation.c
@@ -89,7 +89,7 @@ qir_opt_copy_propagation(struct vc4_compile *c)
                     inst->dst.file == QFILE_TEMP &&
                     (inst->src[0].file != QFILE_TEMP ||
                      (defs[inst->src[0].index]->op != QOP_TEX_RESULT &&
-                      defs[inst->dst.index]->op != QOP_TLB_COLOR_READ))) {
+                      defs[inst->src[0].index]->op != QOP_TLB_COLOR_READ))) {
                         movs[inst->dst.index] = inst->src[0];
                 }
         }




More information about the mesa-commit mailing list