From a71346cd7c5d3959ca3b07e5b45f4d2c8a9144e9 Mon Sep 17 00:00:00 2001 From: bunnei Date: Sun, 29 Apr 2018 13:13:13 -0400 Subject: gl_shader_decompiler: Implement MOV_C. --- src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index 27190cc45..6d5b7a99c 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -664,6 +664,11 @@ private: } switch (opcode->GetId()) { + case OpCode::Id::MOV_C: { + regs.SetRegisterToFloat(instr.gpr0, 0, op_b, 1, 1); + break; + } + case OpCode::Id::MOV32_IMM: { // mov32i doesn't have abs or neg bits. regs.SetRegisterToFloat(instr.gpr0, 0, GetImmediate32(instr), 1, 1); -- cgit v1.2.3