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

This commit is contained in:
Eric Anholt 2015-10-26 13:57:57 -07:00
parent 6eb0760f48
commit 3d7a088608
1 changed files with 2 additions and 1 deletions

View 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];
}