mirror of https://github.com/RPCS3/rpcs3.git
RSX: Restrict analyser loop error
This commit is contained in:
parent
66bd8308d9
commit
049825812e
|
@ -49,6 +49,7 @@ vertex_program_utils::vertex_program_metadata vertex_program_utils::analyse_vert
|
||||||
{
|
{
|
||||||
u32 current_instruction = start;
|
u32 current_instruction = start;
|
||||||
std::set<u32> conditional_targets;
|
std::set<u32> conditional_targets;
|
||||||
|
bool has_printed_error = false;
|
||||||
|
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
|
@ -58,8 +59,12 @@ vertex_program_utils::vertex_program_metadata vertex_program_utils::analyse_vert
|
||||||
{
|
{
|
||||||
if (!fast_exit)
|
if (!fast_exit)
|
||||||
{
|
{
|
||||||
// This can be harmless if a dangling RET was encountered before
|
if (!has_printed_error)
|
||||||
rsx_log.error("vp_analyser: Possible infinite loop detected");
|
{
|
||||||
|
// This can be harmless if a dangling RET was encountered before
|
||||||
|
rsx_log.error("vp_analyser: Possible infinite loop detected");
|
||||||
|
has_printed_error = true;
|
||||||
|
}
|
||||||
current_instruction++;
|
current_instruction++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue