RSX: Restrict analyser loop error

This commit is contained in:
unknown 2020-03-28 00:27:37 -03:00 committed by kd-11
parent 66bd8308d9
commit 049825812e
1 changed files with 7 additions and 2 deletions

View File

@ -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;
} }