diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/shader/decode/arithmetic_immediate.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/video_core/shader/decode/arithmetic_immediate.cpp b/src/video_core/shader/decode/arithmetic_immediate.cpp index 18fd2082e..2d385f48a 100644 --- a/src/video_core/shader/decode/arithmetic_immediate.cpp +++ b/src/video_core/shader/decode/arithmetic_immediate.cpp | |||
| @@ -16,7 +16,15 @@ u32 ShaderIR::DecodeArithmeticImmediate(BasicBlock& bb, u32 pc) { | |||
| 16 | const Instruction instr = {program_code[pc]}; | 16 | const Instruction instr = {program_code[pc]}; |
| 17 | const auto opcode = OpCode::Decode(instr); | 17 | const auto opcode = OpCode::Decode(instr); |
| 18 | 18 | ||
| 19 | UNIMPLEMENTED(); | 19 | switch (opcode->get().GetId()) { |
| 20 | case OpCode::Id::MOV32_IMM: { | ||
| 21 | SetRegister(bb, instr.gpr0, GetImmediate32(instr)); | ||
| 22 | break; | ||
| 23 | } | ||
| 24 | default: | ||
| 25 | UNIMPLEMENTED_MSG("Unhandled arithmetic immediate instruction: {}", | ||
| 26 | opcode->get().GetName()); | ||
| 27 | } | ||
| 20 | 28 | ||
| 21 | return pc; | 29 | return pc; |
| 22 | } | 30 | } |