diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2018-12-21 06:22:57 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-01-15 21:54:51 +0100 |
commit | 8f37531f8ef94e9a43d33232f4c2da980ce7bf80 (patch) | |
tree | f4b0cb4f987d675173916c518e04e384ba2753c0 /src | |
parent | shader_decode: Implement SEL (diff) | |
download | yuzu-8f37531f8ef94e9a43d33232f4c2da980ce7bf80.tar yuzu-8f37531f8ef94e9a43d33232f4c2da980ce7bf80.tar.gz yuzu-8f37531f8ef94e9a43d33232f4c2da980ce7bf80.tar.bz2 yuzu-8f37531f8ef94e9a43d33232f4c2da980ce7bf80.tar.lz yuzu-8f37531f8ef94e9a43d33232f4c2da980ce7bf80.tar.xz yuzu-8f37531f8ef94e9a43d33232f4c2da980ce7bf80.tar.zst yuzu-8f37531f8ef94e9a43d33232f4c2da980ce7bf80.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/shader/decode/arithmetic_integer.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/video_core/shader/decode/arithmetic_integer.cpp b/src/video_core/shader/decode/arithmetic_integer.cpp index 429b86813..d01336e0e 100644 --- a/src/video_core/shader/decode/arithmetic_integer.cpp +++ b/src/video_core/shader/decode/arithmetic_integer.cpp @@ -49,6 +49,21 @@ u32 ShaderIR::DecodeArithmeticInteger(BasicBlock& bb, u32 pc) { SetRegister(bb, instr.gpr0, value); break; } + case OpCode::Id::LOP_C: + case OpCode::Id::LOP_R: + case OpCode::Id::LOP_IMM: { + UNIMPLEMENTED_IF_MSG(instr.generates_cc, + "Condition codes generation in LOP is not implemented"); + + if (instr.alu.lop.invert_a) + op_a = Operation(OperationCode::IBitwiseNot, NO_PRECISE, op_a); + if (instr.alu.lop.invert_b) + op_b = Operation(OperationCode::IBitwiseNot, NO_PRECISE, op_b); + + WriteLogicOperation(bb, instr.gpr0, instr.alu.lop.operation, op_a, op_b, + instr.alu.lop.pred_result_mode, instr.alu.lop.pred48); + break; + } default: UNIMPLEMENTED_MSG("Unhandled ArithmeticInteger instruction: {}", opcode->get().GetName()); } |