diff options
author | bunnei <bunneidev@gmail.com> | 2018-07-22 06:37:12 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-07-22 06:37:12 +0200 |
commit | c43eaa94f3e32c647bb54e0de4b9c35b114756a0 (patch) | |
tree | d13d28bc6489ac48afc55c48ee841543114aa140 /src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |
parent | Merge pull request #761 from bunnei/improve-raster-cache (diff) | |
download | yuzu-c43eaa94f3e32c647bb54e0de4b9c35b114756a0.tar yuzu-c43eaa94f3e32c647bb54e0de4b9c35b114756a0.tar.gz yuzu-c43eaa94f3e32c647bb54e0de4b9c35b114756a0.tar.bz2 yuzu-c43eaa94f3e32c647bb54e0de4b9c35b114756a0.tar.lz yuzu-c43eaa94f3e32c647bb54e0de4b9c35b114756a0.tar.xz yuzu-c43eaa94f3e32c647bb54e0de4b9c35b114756a0.tar.zst yuzu-c43eaa94f3e32c647bb54e0de4b9c35b114756a0.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 9 |
1 files changed, 9 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 b48d30466..bfbfc3ac2 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -1139,6 +1139,15 @@ private: "((" + op_a + " << " + shift + ") + " + op_b + ')', 1, 1); break; } + case OpCode::Id::SEL_C: + case OpCode::Id::SEL_R: + case OpCode::Id::SEL_IMM: { + std::string condition = + GetPredicateCondition(instr.sel.pred, instr.sel.neg_pred != 0); + regs.SetRegisterToInteger(instr.gpr0, true, 0, + '(' + condition + ") ? " + op_a + " : " + op_b, 1, 1); + break; + } case OpCode::Id::LOP_C: case OpCode::Id::LOP_R: case OpCode::Id::LOP_IMM: { |