i965/fs: Fix a comment in copy propagation.
authorEric Anholt <eric@anholt.net>
Tue, 30 Oct 2012 22:02:23 +0000 (15:02 -0700)
committerEric Anholt <eric@anholt.net>
Sun, 4 Nov 2012 19:15:44 +0000 (11:15 -0800)
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>
src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp

index 73fe1a58a13f6af304f7b5ce3e74eee2313747d6..cc488a1ec704a8d8c8288ccff5f312fbec716fa9 100644 (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 &&