aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/loop_analysis.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/glsl/loop_analysis.h')
-rw-r--r--src/compiler/glsl/loop_analysis.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/compiler/glsl/loop_analysis.h b/src/compiler/glsl/loop_analysis.h
index 99b6bf75638..4e110018461 100644
--- a/src/compiler/glsl/loop_analysis.h
+++ b/src/compiler/glsl/loop_analysis.h
@@ -55,7 +55,7 @@ public:
class loop_variable *get(const ir_variable *);
class loop_variable *insert(ir_variable *);
class loop_variable *get_or_insert(ir_variable *, bool in_assignee);
- class loop_terminator *insert(ir_if *);
+ class loop_terminator *insert(ir_if *, bool continue_from_then);
/**
@@ -210,6 +210,9 @@ public:
* terminate the loop (if that is a fixed value). Otherwise -1.
*/
int iterations;
+
+ /* Does the if continue from the then branch or the else branch */
+ bool continue_from_then;
};