Mesa (master): vc4: Don't try to follow MOVs across a pack.

Eric Anholt anholt at kemper.freedesktop.org
Mon Oct 26 23:52:24 UTC 2015


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

Author: Eric Anholt <eric at anholt.net>
Date:   Mon Oct 26 13:57:57 2015 -0700

vc4: Don't try to follow MOVs across a pack.

---

 src/gallium/drivers/vc4/vc4_qir.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/vc4/vc4_qir.c b/src/gallium/drivers/vc4/vc4_qir.c
index d9f51bb..59a4e62 100644
--- a/src/gallium/drivers/vc4/vc4_qir.c
+++ b/src/gallium/drivers/vc4/vc4_qir.c
@@ -429,7 +429,8 @@ qir_follow_movs(struct vc4_compile *c, struct qreg reg)
 {
         while (reg.file == QFILE_TEMP &&
                c->defs[reg.index] &&
-               c->defs[reg.index]->op == QOP_MOV) {
+               c->defs[reg.index]->op == QOP_MOV &&
+               !c->defs[reg.index]->dst.pack) {
                 reg = c->defs[reg.index]->src[0];
         }
 




More information about the mesa-commit mailing list