i965/fs: Fix a comment in copy propagation.

We haven't been only tracking raw GRF-GRF moves since the constant propagation
merge, and also the extension for source modifiers and uniforms.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Eric Anholt 2012-10-30 15:02:23 -07:00
parent 545b59b62a
commit 9864a5b098

View file

@ -245,7 +245,9 @@ fs_visitor::opt_copy_propagate_local(void *mem_ctx, bblock_t *block)
}
}
/* If this instruction is a raw copy, add it to the ACP. */
/* If this instruction's source could potentially be folded into the
* operand of another instruction, add it to the ACP.
*/
if (inst->opcode == BRW_OPCODE_MOV &&
inst->dst.file == GRF &&
((inst->src[0].file == GRF &&