Mesa (master): i965/fs: Fix a comment in copy propagation.
Eric Anholt
anholt at kemper.freedesktop.org
Sun Nov 4 19:58:03 UTC 2012
Module: Mesa
Branch: master
Commit: 9864a5b098d2a8087c8966f3e654969be51b660d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9864a5b098d2a8087c8966f3e654969be51b660d
Author: Eric Anholt <eric at anholt.net>
Date: Tue Oct 30 15:02:23 2012 -0700
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 at whitecape.org>
---
.../drivers/dri/i965/brw_fs_copy_propagation.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp b/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
index 73fe1a5..cc488a1 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
@@ -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 &&
More information about the mesa-commit
mailing list