diff options
author | marha <marha@users.sourceforge.net> | 2013-09-25 09:37:58 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2013-09-25 09:37:58 +0200 |
commit | 1245204b2091d108a8688ff7f749f2c6cc830381 (patch) | |
tree | c903bf477d9ddf666685494f3b035680d5d41580 /mesalib/src/glsl/lower_jumps.cpp | |
parent | b299d73bb416e2a26a642a54d5a15ea9fa30df33 (diff) | |
parent | 14718f10dcda487178690de9a51cc5acdf21e468 (diff) | |
download | vcxsrv-1245204b2091d108a8688ff7f749f2c6cc830381.tar.gz vcxsrv-1245204b2091d108a8688ff7f749f2c6cc830381.tar.bz2 vcxsrv-1245204b2091d108a8688ff7f749f2c6cc830381.zip |
Merge remote-tracking branch 'origin/released'
* origin/released:
fontconfig mesa git update 25 Sep 2013
Diffstat (limited to 'mesalib/src/glsl/lower_jumps.cpp')
-rw-r--r-- | mesalib/src/glsl/lower_jumps.cpp | 11 |
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) { |