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.
This commit is contained in:
Eric Anholt 2015-01-09 07:22:50 -08:00
parent 1d04432677
commit 3093bfacf0

View file

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