From 49cff4ed4b4d1bf636133ef2d4fd6d0173c8f233 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sun, 8 Jan 2017 11:23:17 +0300 Subject: [PATCH] [rsx/vp/wip] Do not clear jump lvls on BRB (push jump address instead?) --- rpcs3/Emu/RSX/Common/VertexProgramDecompiler.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rpcs3/Emu/RSX/Common/VertexProgramDecompiler.cpp b/rpcs3/Emu/RSX/Common/VertexProgramDecompiler.cpp index 8229f7f326..ed972f9d8f 100644 --- a/rpcs3/Emu/RSX/Common/VertexProgramDecompiler.cpp +++ b/rpcs3/Emu/RSX/Common/VertexProgramDecompiler.cpp @@ -487,7 +487,6 @@ std::string VertexProgramDecompiler::Decompile() switch (d1.sca_opcode) { case RSX_SCA_OPCODE_BRA: - case RSX_SCA_OPCODE_BRB: is_has_BRA = true; m_jump_lvls.clear(); d3.HEX = m_data[++i]; @@ -672,7 +671,7 @@ std::string VertexProgramDecompiler::Decompile() case RSX_SCA_OPCODE_COS: SetDSTSca("cos($s)"); break; case RSX_SCA_OPCODE_BRB: // works differently (BRB o[1].x !b0, L0;) - LOG_ERROR(RSX, "Unimplemented sca_opcode BRB d0=0x%X, d1=0x%X, d2=0x%X, d3=0x%X"); + LOG_ERROR(RSX, "Unimplemented sca_opcode BRB d0=0x%X, d1=0x%X, d2=0x%X, d3=0x%X", d0.HEX, d1.HEX, d2.HEX); AddCode("$if (!$bconst) //BRB"); //If only the cond flags are set, we can just use $ifcond AddCode("{");