diff options
| author | 2018-12-21 02:22:57 -0300 | |
|---|---|---|
| committer | 2019-01-15 17:54:51 -0300 | |
| commit | 8f37531f8ef94e9a43d33232f4c2da980ce7bf80 (patch) | |
| tree | f4b0cb4f987d675173916c518e04e384ba2753c0 /src | |
| parent | shader_decode: Implement SEL (diff) | |
| download | yuzu-8f37531f8ef94e9a43d33232f4c2da980ce7bf80.tar.gz yuzu-8f37531f8ef94e9a43d33232f4c2da980ce7bf80.tar.xz yuzu-8f37531f8ef94e9a43d33232f4c2da980ce7bf80.zip | |
shader_decode: Implement LOP
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) { | |||
| 49 | SetRegister(bb, instr.gpr0, value); | 49 | SetRegister(bb, instr.gpr0, value); |
| 50 | break; | 50 | break; |
| 51 | } | 51 | } |
| 52 | case OpCode::Id::LOP_C: | ||
| 53 | case OpCode::Id::LOP_R: | ||
| 54 | case OpCode::Id::LOP_IMM: { | ||
| 55 | UNIMPLEMENTED_IF_MSG(instr.generates_cc, | ||
| 56 | "Condition codes generation in LOP is not implemented"); | ||
| 57 | |||
| 58 | if (instr.alu.lop.invert_a) | ||
| 59 | op_a = Operation(OperationCode::IBitwiseNot, NO_PRECISE, op_a); | ||
| 60 | if (instr.alu.lop.invert_b) | ||
| 61 | op_b = Operation(OperationCode::IBitwiseNot, NO_PRECISE, op_b); | ||
| 62 | |||
| 63 | WriteLogicOperation(bb, instr.gpr0, instr.alu.lop.operation, op_a, op_b, | ||
| 64 | instr.alu.lop.pred_result_mode, instr.alu.lop.pred48); | ||
| 65 | break; | ||
| 66 | } | ||
| 52 | default: | 67 | default: |
| 53 | UNIMPLEMENTED_MSG("Unhandled ArithmeticInteger instruction: {}", opcode->get().GetName()); | 68 | UNIMPLEMENTED_MSG("Unhandled ArithmeticInteger instruction: {}", opcode->get().GetName()); |
| 54 | } | 69 | } |