mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-14 13:12:50 +00:00
shader_decode: Implement IPA
This commit is contained in:
parent
cacb934f21
commit
4f95dc950e
|
@ -45,6 +45,18 @@ u32 ShaderIR::DecodeOther(BasicBlock& bb, u32 pc) {
|
||||||
}
|
}
|
||||||
break;
|
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:
|
default:
|
||||||
UNIMPLEMENTED_MSG("Unhandled instruction: {}", opcode->get().GetName());
|
UNIMPLEMENTED_MSG("Unhandled instruction: {}", opcode->get().GetName());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue