summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2018-12-21 04:08:21 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-01-15 21:54:50 +0100
commit4f95dc950ee483ac9d19fb98209abeb26556e26f (patch)
treef957b50177629f776f66bf9a333acce5ab192185
parentshader_decode: Implement EXIT (diff)
downloadyuzu-4f95dc950ee483ac9d19fb98209abeb26556e26f.tar
yuzu-4f95dc950ee483ac9d19fb98209abeb26556e26f.tar.gz
yuzu-4f95dc950ee483ac9d19fb98209abeb26556e26f.tar.bz2
yuzu-4f95dc950ee483ac9d19fb98209abeb26556e26f.tar.lz
yuzu-4f95dc950ee483ac9d19fb98209abeb26556e26f.tar.xz
yuzu-4f95dc950ee483ac9d19fb98209abeb26556e26f.tar.zst
yuzu-4f95dc950ee483ac9d19fb98209abeb26556e26f.zip
-rw-r--r--src/video_core/shader/decode/other.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/video_core/shader/decode/other.cpp b/src/video_core/shader/decode/other.cpp
index 2a5b70b8b..ffdc77d90 100644
--- a/src/video_core/shader/decode/other.cpp
+++ b/src/video_core/shader/decode/other.cpp
@@ -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());
}