summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-05 17:30:29 +0200
committerGitHub <noreply@github.com>2018-07-05 17:30:29 +0200
commit637f9d780ad960fd58577559a819adbb5069c9b1 (patch)
treeee7814ff0e5c505ff8b7646c4a3340d87f363d6b /src
parentMerge pull request #623 from Subv/vertex_types (diff)
parentGPU: Implemented the F2F 'round' rounding mode. (diff)
downloadyuzu-637f9d780ad960fd58577559a819adbb5069c9b1.tar
yuzu-637f9d780ad960fd58577559a819adbb5069c9b1.tar.gz
yuzu-637f9d780ad960fd58577559a819adbb5069c9b1.tar.bz2
yuzu-637f9d780ad960fd58577559a819adbb5069c9b1.tar.lz
yuzu-637f9d780ad960fd58577559a819adbb5069c9b1.tar.xz
yuzu-637f9d780ad960fd58577559a819adbb5069c9b1.tar.zst
yuzu-637f9d780ad960fd58577559a819adbb5069c9b1.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
index a4b730e1c..03ac4fe9e 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;