Latte: Add support for MIN_DX10 shader instruction

This commit is contained in:
Exzap 2023-02-22 13:09:37 +01:00
parent 05e0f349e0
commit 9d25b88368
7 changed files with 10 additions and 7 deletions

View file

@ -1038,7 +1038,8 @@ void _emitALUOP2InstructionCode(LatteDecompilerShaderContext* shaderContext, Lat
}
else if( aluInstruction->opcode == ALU_OP2_INST_MAX ||
aluInstruction->opcode == ALU_OP2_INST_MIN ||
aluInstruction->opcode == ALU_OP2_INST_MAX_DX10 )
aluInstruction->opcode == ALU_OP2_INST_MAX_DX10 ||
aluInstruction->opcode == ALU_OP2_INST_MIN_DX10 )
{
outputType = _getALUInstructionOutputDataType(shaderContext, aluInstruction);
_emitInstructionOutputVariableName(shaderContext, aluInstruction);
@ -1048,10 +1049,10 @@ void _emitALUOP2InstructionCode(LatteDecompilerShaderContext* shaderContext, Lat
src->add("max");
else if( aluInstruction->opcode == ALU_OP2_INST_MIN )
src->add("min");
else if( aluInstruction->opcode == ALU_OP2_INST_MAX_DX10 )
{
else if (aluInstruction->opcode == ALU_OP2_INST_MAX_DX10)
src->add("max");
}
else if (aluInstruction->opcode == ALU_OP2_INST_MIN_DX10)
src->add("min");
src->add("(");
_emitOperandInputCode(shaderContext, aluInstruction, 0, LATTE_DECOMPILER_DTYPE_FLOAT);
src->add(", ");