[rsx/wip] Print bytecode in shader when BRB op is encountered
This commit is contained in:
@@ -674,6 +674,7 @@ std::string VertexProgramDecompiler::Decompile()
|
|||||||
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, d3.HEX);
|
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, d3.HEX);
|
||||||
u32 jump_position = find_jump_lvl(GetAddr());
|
u32 jump_position = find_jump_lvl(GetAddr());
|
||||||
|
|
||||||
|
AddCode(fmt::format("//BRB opcode, d0=0x%X, d1=0x%X, d2=0x%X, d3=0x%X", d0.HEX, d1.HEX, d2.HEX, d3.HEX));
|
||||||
AddCode("if (!$bconst) //BRB"); //If only the cond flags are set, we can just use $ifcond
|
AddCode("if (!$bconst) //BRB"); //If only the cond flags are set, we can just use $ifcond
|
||||||
AddCode("{");
|
AddCode("{");
|
||||||
m_cur_instr->open_scopes++;
|
m_cur_instr->open_scopes++;
|
||||||
|
|||||||
Reference in New Issue
Block a user