Fixing order of MULADDv.

This commit is contained in:
Ben Vanik 2013-11-16 04:35:08 -08:00
parent 271abbf874
commit 8440c9059a
1 changed files with 2 additions and 3 deletions

View File

@ -874,12 +874,11 @@ int TranslateALU_MULADDv(
ctx.output->append("saturate(");
}
ctx.output->append("mad(");
// TODO(benvanik): verify correct - may be 1,2,3 for (1*2+3)
AppendSrcReg(ctx, alu.src1_reg, alu.src1_sel, alu.src1_swiz, alu.src1_reg_negate, alu.src1_reg_abs);
ctx.output->append(", ");
AppendSrcReg(ctx, alu.src2_reg, alu.src2_sel, alu.src2_swiz, alu.src2_reg_negate, alu.src2_reg_abs);
ctx.output->append(", ");
AppendSrcReg(ctx, alu.src3_reg, alu.src3_sel, alu.src3_swiz, alu.src3_reg_negate, alu.src3_reg_abs);
ctx.output->append(", ");
AppendSrcReg(ctx, alu.src1_reg, alu.src1_sel, alu.src1_swiz, alu.src1_reg_negate, alu.src1_reg_abs);
ctx.output->append(")");
if (alu.vector_clamp) {
ctx.output->append(")");