summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2018-12-21 06:22:44 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-01-15 21:54:51 +0100
commit8486e7f8c8367a7cc225da9fbac262a116744108 (patch)
tree13e8558c771c410dcf02349e737a3c7101f7a5ad /src/video_core
parentshader_decode: Implement IADD (diff)
downloadyuzu-8486e7f8c8367a7cc225da9fbac262a116744108.tar
yuzu-8486e7f8c8367a7cc225da9fbac262a116744108.tar.gz
yuzu-8486e7f8c8367a7cc225da9fbac262a116744108.tar.bz2
yuzu-8486e7f8c8367a7cc225da9fbac262a116744108.tar.lz
yuzu-8486e7f8c8367a7cc225da9fbac262a116744108.tar.xz
yuzu-8486e7f8c8367a7cc225da9fbac262a116744108.tar.zst
yuzu-8486e7f8c8367a7cc225da9fbac262a116744108.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/shader/decode/arithmetic_integer.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/shader/decode/arithmetic_integer.cpp b/src/video_core/shader/decode/arithmetic_integer.cpp
index 47b27ac5b..429b86813 100644
--- a/src/video_core/shader/decode/arithmetic_integer.cpp
+++ b/src/video_core/shader/decode/arithmetic_integer.cpp
@@ -41,6 +41,14 @@ u32 ShaderIR::DecodeArithmeticInteger(BasicBlock& bb, u32 pc) {
SetRegister(bb, instr.gpr0, Operation(OperationCode::IAdd, PRECISE, op_a, op_b));
break;
}
+ case OpCode::Id::SEL_C:
+ case OpCode::Id::SEL_R:
+ case OpCode::Id::SEL_IMM: {
+ const Node condition = GetPredicate(instr.sel.pred, instr.sel.neg_pred != 0);
+ const Node value = Operation(OperationCode::Select, PRECISE, condition, op_a, op_b);
+ SetRegister(bb, instr.gpr0, value);
+ break;
+ }
default:
UNIMPLEMENTED_MSG("Unhandled ArithmeticInteger instruction: {}", opcode->get().GetName());
}