aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/ir.cpp
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-08-26 15:11:26 -0700
committerIan Romanick <[email protected]>2010-09-03 11:55:21 -0700
commit3b85f1cc6cb12e9d4931e12cf29adde578f389fd (patch)
tree53c6e568c2d8ba880fda98df58684ae7653bb577 /src/glsl/ir.cpp
parentc8ee8e07f7cc8f18d367ffcec065b45f8a6976f4 (diff)
glsl2: Add cmp field to ir_loop
This reprents the type of comparison between the loop induction variable and the loop termination value.
Diffstat (limited to 'src/glsl/ir.cpp')
-rw-r--r--src/glsl/ir.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp
index 68ad512bf50..96b32a2f34b 100644
--- a/src/glsl/ir.cpp
+++ b/src/glsl/ir.cpp
@@ -701,6 +701,18 @@ ir_constant::has_value(const ir_constant *c) const
return true;
}
+
+ir_loop::ir_loop()
+{
+ this->ir_type = ir_type_loop;
+ this->cmp = ir_unop_neg;
+ this->from = NULL;
+ this->to = NULL;
+ this->increment = NULL;
+ this->counter = NULL;
+}
+
+
ir_dereference_variable::ir_dereference_variable(ir_variable *var)
{
this->ir_type = ir_type_dereference_variable;