vc4: Don't try to follow MOVs across a pack.
authorEric Anholt <eric@anholt.net>
Mon, 26 Oct 2015 20:57:57 +0000 (13:57 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 26 Oct 2015 23:48:34 +0000 (16:48 -0700)
src/gallium/drivers/vc4/vc4_qir.c

index d9f51bb4a3f6e01b4437546a3282475143c57e1f..59a4e62159cd8ac106d3b267d525fb6ce4c6b88c 100644 (file)
@@ -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];
         }