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.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/mesalib/src/glsl/lower_jumps.cpp b/mesalib/src/glsl/lower_jumps.cpp
index bfc8c013b..02f65f097 100644
--- a/mesalib/src/glsl/lower_jumps.cpp
+++ b/mesalib/src/glsl/lower_jumps.cpp
@@ -133,6 +133,8 @@ enum jump_strength
strength_return
};
+namespace {
+
struct block_record
{
/* minimum jump strength (of lowered IR, not pre-lowering IR)
@@ -279,8 +281,13 @@ struct ir_lower_jumps_visitor : public ir_control_flow_visitor {
bool lower_main_return;
ir_lower_jumps_visitor()
+ : progress(false),
+ pull_out_jumps(false),
+ lower_continue(false),
+ lower_break(false),
+ lower_sub_return(false),
+ lower_main_return(false)
{
- this->progress = false;
}
void truncate_after_instruction(exec_node *ir)
@@ -992,6 +999,8 @@ lower_continue:
}
};
+} /* anonymous namespace */
+
bool
do_lower_jumps(exec_list *instructions, bool pull_out_jumps, bool lower_sub_return, bool lower_main_return, bool lower_continue, bool lower_break)
{