aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/glsl/lower_jumps.cpp
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2013-09-25 09:36:22 +0200
committermarha <marha@users.sourceforge.net>2013-09-25 09:36:22 +0200
commit14718f10dcda487178690de9a51cc5acdf21e468 (patch)
tree756b76a52c4382e58e5e552e468d93d453c3ae86 /mesalib/src/glsl/lower_jumps.cpp
parente4d5a2996e4a03f55bc7d21c493ba1bcbef35aae (diff)
downloadvcxsrv-14718f10dcda487178690de9a51cc5acdf21e468.tar.gz
vcxsrv-14718f10dcda487178690de9a51cc5acdf21e468.tar.bz2
vcxsrv-14718f10dcda487178690de9a51cc5acdf21e468.zip
fontconfig mesa git update 25 Sep 2013
fontconfig commit 102864d0dba46c99b22c912454c1f58731287405 mesa commit 59157d1c96f33ca56d9aba6cff75145d732dbbab
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)
{