From 969e2d8c570647fa2ef7439ca751b77aa2d52511 Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Sat, 19 Dec 2015 19:22:56 +0100 Subject: [PATCH] rsx/common: Support RSX_FP_OPCODE_DIV for scb Fix glitches in dbz --- rpcs3/Emu/RSX/Common/FragmentProgramDecompiler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/rpcs3/Emu/RSX/Common/FragmentProgramDecompiler.cpp b/rpcs3/Emu/RSX/Common/FragmentProgramDecompiler.cpp index b000054c66..22a1b4503c 100644 --- a/rpcs3/Emu/RSX/Common/FragmentProgramDecompiler.cpp +++ b/rpcs3/Emu/RSX/Common/FragmentProgramDecompiler.cpp @@ -371,6 +371,7 @@ bool FragmentProgramDecompiler::handle_scb(u32 opcode) { case RSX_FP_OPCODE_ADD: SetDst("($0 + $1)"); return true; case RSX_FP_OPCODE_COS: SetDst("cos($0.xxxx)"); return true; + case RSX_FP_OPCODE_DIV: SetDst("($0 / $1)"); return true; case RSX_FP_OPCODE_DIVSQ: SetDst("($0 / sqrt($1).xxxx)"); return true; case RSX_FP_OPCODE_DP2: SetDst(getFunction(FUNCTION::FUNCTION_DP2)); return true; case RSX_FP_OPCODE_DP3: SetDst(getFunction(FUNCTION::FUNCTION_DP3)); return true;