From 3e5f0e5c376bb5ca4f4539e4c139cc5a03df2177 Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Mon, 16 Nov 2015 00:56:38 +0100 Subject: [PATCH] rsx: Add missing SCB DIVSQ opcode support Fix a lot of gfx glitches in SH3 HD --- 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 3682c64f64..1a5eb44191 100644 --- a/rpcs3/Emu/RSX/Common/FragmentProgramDecompiler.cpp +++ b/rpcs3/Emu/RSX/Common/FragmentProgramDecompiler.cpp @@ -376,6 +376,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_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; case RSX_FP_OPCODE_DP4: SetDst(getFunction(FUNCTION::FUNCTION_DP4)); return true;