From d800a02b4b3a301ee221d831f1832f1d15d96bf1 Mon Sep 17 00:00:00 2001 From: Subv Date: Wed, 4 Jul 2018 15:24:04 -0500 Subject: GPU: Implemented the F2F 'round' rounding mode. It's implemented via the GLSL 'roundEven()' function. --- src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index ec9956edb..f9a90a1a4 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -1213,6 +1213,9 @@ private: switch (instr.conversion.f2f.rounding) { case Tegra::Shader::F2fRoundingOp::None: break; + case Tegra::Shader::F2fRoundingOp::Round: + op_a = "roundEven(" + op_a + ')'; + break; case Tegra::Shader::F2fRoundingOp::Floor: op_a = "floor(" + op_a + ')'; break; -- cgit v1.2.3