summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2018-12-21 03:58:23 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-01-15 21:54:50 +0100
commit2edee801ce003f3a097cbbdbaf1b9bbb4bcddbc4 (patch)
treeac5e89a7f9f79558b0130bed9bbffca9d60d5a7c
parentshader_decode: Stub RRO_C, RRO_R and RRO_IMM (diff)
downloadyuzu-2edee801ce003f3a097cbbdbaf1b9bbb4bcddbc4.tar
yuzu-2edee801ce003f3a097cbbdbaf1b9bbb4bcddbc4.tar.gz
yuzu-2edee801ce003f3a097cbbdbaf1b9bbb4bcddbc4.tar.bz2
yuzu-2edee801ce003f3a097cbbdbaf1b9bbb4bcddbc4.tar.lz
yuzu-2edee801ce003f3a097cbbdbaf1b9bbb4bcddbc4.tar.xz
yuzu-2edee801ce003f3a097cbbdbaf1b9bbb4bcddbc4.tar.zst
yuzu-2edee801ce003f3a097cbbdbaf1b9bbb4bcddbc4.zip
-rw-r--r--src/video_core/shader/decode/arithmetic_immediate.cpp10
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) {
const Instruction instr = {program_code[pc]};
const auto opcode = OpCode::Decode(instr);
- UNIMPLEMENTED();
+ switch (opcode->get().GetId()) {
+ case OpCode::Id::MOV32_IMM: {
+ SetRegister(bb, instr.gpr0, GetImmediate32(instr));
+ break;
+ }
+ default:
+ UNIMPLEMENTED_MSG("Unhandled arithmetic immediate instruction: {}",
+ opcode->get().GetName());
+ }
return pc;
}