summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-09-06 03:45:38 +0200
committerbunnei <bunneidev@gmail.com>2018-09-06 23:40:03 +0200
commit948f6c07383b7ab84074f3d84a3114a93f77bcd6 (patch)
treeb25152a76618497ef6397c3af84b9b0780d80897 /src/video_core
parentMerge pull request #1248 from degasus/shader_fix (diff)
downloadyuzu-948f6c07383b7ab84074f3d84a3114a93f77bcd6.tar
yuzu-948f6c07383b7ab84074f3d84a3114a93f77bcd6.tar.gz
yuzu-948f6c07383b7ab84074f3d84a3114a93f77bcd6.tar.bz2
yuzu-948f6c07383b7ab84074f3d84a3114a93f77bcd6.tar.lz
yuzu-948f6c07383b7ab84074f3d84a3114a93f77bcd6.tar.xz
yuzu-948f6c07383b7ab84074f3d84a3114a93f77bcd6.tar.zst
yuzu-948f6c07383b7ab84074f3d84a3114a93f77bcd6.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
index 781ddb073..841647ebe 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -2197,11 +2197,15 @@ private:
case OpCode::Id::IPA: {
const auto& attribute = instr.attribute.fmt28;
const auto& reg = instr.gpr0;
- ASSERT_MSG(instr.ipa.saturate == 0, "IPA saturate not implemented");
+
Tegra::Shader::IpaMode input_mode{instr.ipa.interp_mode.Value(),
instr.ipa.sample_mode.Value()};
regs.SetRegisterToInputAttibute(reg, attribute.element, attribute.index,
input_mode);
+
+ if (instr.ipa.saturate) {
+ regs.SetRegisterToFloat(reg, 0, regs.GetRegisterAsFloat(reg), 1, 1, true);
+ }
break;
}
case OpCode::Id::SSY: {