aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/glsl/lower_jumps.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/src/glsl/lower_jumps.cpp')
-rw-r--r--mesalib/src/glsl/lower_jumps.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/mesalib/src/glsl/lower_jumps.cpp b/mesalib/src/glsl/lower_jumps.cpp
index 92813f567..bfc8c013b 100644
--- a/mesalib/src/glsl/lower_jumps.cpp
+++ b/mesalib/src/glsl/lower_jumps.cpp
@@ -1002,10 +1002,12 @@ do_lower_jumps(exec_list *instructions, bool pull_out_jumps, bool lower_sub_retu
v.lower_sub_return = lower_sub_return;
v.lower_main_return = lower_main_return;
+ bool progress_ever = false;
do {
v.progress = false;
visit_exec_list(instructions, &v);
+ progress_ever = v.progress || progress_ever;
} while (v.progress);
- return v.progress;
+ return progress_ever;
}