Skip to content
Snippets Groups Projects
Commit 4f95dc95 authored by ReinUsesLisp's avatar ReinUsesLisp
Browse files

shader_decode: Implement IPA

parent cacb934f
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,18 @@ u32 ShaderIR::DecodeOther(BasicBlock& bb, u32 pc) {
}
break;
}
case OpCode::Id::IPA: {
const auto& attribute = instr.attribute.fmt28;
const Tegra::Shader::IpaMode input_mode{instr.ipa.interp_mode.Value(),
instr.ipa.sample_mode.Value()};
const Node input_attr = GetInputAttribute(attribute.index, attribute.element, input_mode);
const Node ipa = Operation(OperationCode::Ipa, input_attr);
const Node value = GetSaturatedFloat(ipa, instr.ipa.saturate);
SetRegister(bb, instr.gpr0, value);
break;
}
default:
UNIMPLEMENTED_MSG("Unhandled instruction: {}", opcode->get().GetName());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment