mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 13:38:06 +02:00
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.
This commit is contained in:
parent
07ee9f374f
commit
b50d250e02
1 changed files with 1 additions and 0 deletions
|
|
@ -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]) )
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue