Module: Mesa Branch: master Commit: b50d250e02457f367c195ee1808b061e0dfe2d00 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b50d250e02457f367c195ee1808b061e0dfe2d00
Author: Stéphane Marchesin <[email protected]> Date: Thu Dec 22 18:17:54 2011 -0800 i915g: Only apply the optimization to output vars. This is a bit overkill, but otherwise we need to rename subsequent uses, which is a future TODO. Reported by CME. --- src/gallium/drivers/i915/i915_fpc_optimize.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/gallium/drivers/i915/i915_fpc_optimize.c b/src/gallium/drivers/i915/i915_fpc_optimize.c index 0d680fb..d9b4c46 100644 --- a/src/gallium/drivers/i915/i915_fpc_optimize.c +++ b/src/gallium/drivers/i915/i915_fpc_optimize.c @@ -203,6 +203,7 @@ static void i915_fpc_optimize_useless_mov(union i915_full_token* current, union next->FullInstruction.Instruction.Saturate == TGSI_SAT_NONE && next->FullInstruction.Src[0].Register.Absolute == 0 && next->FullInstruction.Src[0].Register.Negate == 0 && + next->FullInstruction.Dst[0].Register.File == TGSI_FILE_OUTPUT && is_unswizzled(&next->FullInstruction.Src[0], next->FullInstruction.Dst[0].Register.WriteMask) && current->FullInstruction.Dst[0].Register.WriteMask == next->FullInstruction.Dst[0].Register.WriteMask && same_src_dst_reg(&next->FullInstruction.Src[0], ¤t->FullInstruction.Dst[0]) ) _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
