Fix BRI instruction, fixes #1165
This commit is contained in:
@@ -574,10 +574,9 @@ std::string VertexProgramDecompiler::Decompile()
|
||||
AddCode("}");
|
||||
}
|
||||
break;
|
||||
/* This triggers opengl driver lost connection error code 7
|
||||
case RSX_SCA_OPCODE_BRI: // works differently (BRI o[1].x(TR) L0;)
|
||||
{
|
||||
uint jump_position;
|
||||
u32 jump_position = 1;
|
||||
|
||||
if (is_has_BRA)
|
||||
{
|
||||
@@ -585,9 +584,8 @@ std::string VertexProgramDecompiler::Decompile()
|
||||
}
|
||||
else
|
||||
{
|
||||
int addr = GetAddr();
|
||||
u32 addr = GetAddr();
|
||||
|
||||
jump_position = 0;
|
||||
for (auto pos : m_jump_lvls)
|
||||
{
|
||||
if (addr == pos)
|
||||
@@ -606,7 +604,6 @@ std::string VertexProgramDecompiler::Decompile()
|
||||
AddCode("}");
|
||||
}
|
||||
break;
|
||||
*/
|
||||
case RSX_SCA_OPCODE_CAL:
|
||||
// works same as BRI
|
||||
AddCode("$ifcond $f(); //CAL");
|
||||
|
||||
Reference in New Issue
Block a user