OSDN Git Service

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 d9f51bb..59a4e62 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];
         }