diff options
| author | 2019-04-15 19:15:55 -0300 | |
|---|---|---|
| committer | 2019-04-15 21:16:10 -0300 | |
| commit | abcbcb1b2a437021f87c15c63de862437b920989 (patch) | |
| tree | aec935dc1611622971cafdb6ed6f27e22deb35ee | |
| parent | shader_ir/decode: Implement half float saturation (diff) | |
| download | yuzu-abcbcb1b2a437021f87c15c63de862437b920989.tar.gz yuzu-abcbcb1b2a437021f87c15c63de862437b920989.tar.xz yuzu-abcbcb1b2a437021f87c15c63de862437b920989.zip | |
gl_shader_decompiler: Fix MrgH0 decompilation
GLSL decompilation for HMergeH0 was wrong. This addresses that issue.
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index 9c972fd3a..01e9433c8 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |||
| @@ -1078,8 +1078,8 @@ private: | |||
| 1078 | } | 1078 | } |
| 1079 | 1079 | ||
| 1080 | std::string HMergeH0(Operation operation) { | 1080 | std::string HMergeH0(Operation operation) { |
| 1081 | return "fromHalf2(vec2(toHalf2(" + Visit(operation[0]) + ")[1], toHalf2(" + | 1081 | return "fromHalf2(vec2(toHalf2(" + Visit(operation[1]) + ")[0], toHalf2(" + |
| 1082 | Visit(operation[1]) + ")[0]))"; | 1082 | Visit(operation[0]) + ")[1]))"; |
| 1083 | } | 1083 | } |
| 1084 | 1084 | ||
| 1085 | std::string HMergeH1(Operation operation) { | 1085 | std::string HMergeH1(Operation operation) { |