summaryrefslogtreecommitdiff
path: root/src/video_core/shader/decode
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2018-12-26 02:17:56 -0300
committerGravatar ReinUsesLisp2019-01-15 17:54:53 -0300
commit52223313b10af4c76b516d6ead247a1a201a71d8 (patch)
treee9fb7a948605622b7702d1c4aebef5838253850e /src/video_core/shader/decode
parentgl_shader_decompiler: Use rasterizer's UBO size limit (diff)
downloadyuzu-52223313b10af4c76b516d6ead247a1a201a71d8.tar.gz
yuzu-52223313b10af4c76b516d6ead247a1a201a71d8.tar.xz
yuzu-52223313b10af4c76b516d6ead247a1a201a71d8.zip
shader_ir: Remove Ipa primitive
Diffstat (limited to 'src/video_core/shader/decode')
-rw-r--r--src/video_core/shader/decode/other.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/video_core/shader/decode/other.cpp b/src/video_core/shader/decode/other.cpp
index 1918762b8..386433d8e 100644
--- a/src/video_core/shader/decode/other.cpp
+++ b/src/video_core/shader/decode/other.cpp
@@ -134,9 +134,8 @@ u32 ShaderIR::DecodeOther(BasicBlock& bb, u32 pc) {
134 const Tegra::Shader::IpaMode input_mode{instr.ipa.interp_mode.Value(), 134 const Tegra::Shader::IpaMode input_mode{instr.ipa.interp_mode.Value(),
135 instr.ipa.sample_mode.Value()}; 135 instr.ipa.sample_mode.Value()};
136 136
137 const Node input_attr = GetInputAttribute(attribute.index, attribute.element, input_mode); 137 const Node attr = GetInputAttribute(attribute.index, attribute.element, input_mode);
138 const Node ipa = Operation(OperationCode::Ipa, input_attr); 138 const Node value = GetSaturatedFloat(attr, instr.ipa.saturate);
139 const Node value = GetSaturatedFloat(ipa, instr.ipa.saturate);
140 139
141 SetRegister(bb, instr.gpr0, value); 140 SetRegister(bb, instr.gpr0, value);
142 break; 141 break;