Commit d9a2ad79 authored by Joshua Ashton's avatar Joshua Ashton 🐸

[dx9asm] Fix handling of saturate on some unique ops.

parent b1e7eb92
Pipeline #38 passed with stage
in 1 minute and 36 seconds
......@@ -117,7 +117,7 @@ namespace dxup {
DXBCOperand dstOp = { *this, operation, *dst, 0 };
DXBCOperand srcOp = { *this, operation, *src0, 0 };
DXBCOperation{ D3D10_SB_OPCODE_MOV, false }
DXBCOperation{ D3D10_SB_OPCODE_MOV, operation.saturate() }
.appendOperand(dstOp)
.appendOperand(srcOp)
.push(*this);
......@@ -544,7 +544,7 @@ namespace dxup {
cosDstOp.stripModifier();
}
DXBCOperation{ D3D10_SB_OPCODE_SINCOS, false }
DXBCOperation{ D3D10_SB_OPCODE_SINCOS, operation.saturate() }
.appendOperand(sinDstOp)
.appendOperand(cosDstOp)
.appendOperand(src0Op)
......@@ -575,7 +575,7 @@ namespace dxup {
.appendOperand(src1Op)
.push(*this);
DXBCOperation{ D3D10_SB_OPCODE_ADD, false }
DXBCOperation{ D3D10_SB_OPCODE_ADD, operation.saturate() }
.appendOperand(dstOp)
.appendOperand(tempOpSrc)
.appendOperand(src2Op)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment