summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_hierarchical_visitor.cpp
diff options
context:
space:
mode:
authorIago Toral Quiroga <itoral@igalia.com>2014-06-20 10:38:53 +0200
committerIago Toral Quiroga <itoral@igalia.com>2014-06-30 08:08:50 +0200
commit4b3fc21032a63f483d381c36c8e41bf3540ebfcc (patch)
tree0f01cb04873f5eb0510713e37af1d200d3dcac09 /src/glsl/ir_hierarchical_visitor.cpp
parent8639effefeb8c06beedbfcc294694b6bb72db882 (diff)
downloadexternal_mesa3d-4b3fc21032a63f483d381c36c8e41bf3540ebfcc.zip
external_mesa3d-4b3fc21032a63f483d381c36c8e41bf3540ebfcc.tar.gz
external_mesa3d-4b3fc21032a63f483d381c36c8e41bf3540ebfcc.tar.bz2
glsl: Modify ir_end_primitive to have a stream.
This will be necessary to implement EndStreamPrimitive(). EndPrimitive() will produce an ir_end_primitive with the default stream 0. Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Diffstat (limited to 'src/glsl/ir_hierarchical_visitor.cpp')
-rw-r--r--src/glsl/ir_hierarchical_visitor.cpp25
1 files changed, 16 insertions, 9 deletions
diff --git a/src/glsl/ir_hierarchical_visitor.cpp b/src/glsl/ir_hierarchical_visitor.cpp
index 78ae2df..d3c00ec 100644
--- a/src/glsl/ir_hierarchical_visitor.cpp
+++ b/src/glsl/ir_hierarchical_visitor.cpp
@@ -69,15 +69,6 @@ ir_hierarchical_visitor::visit(ir_loop_jump *ir)
}
ir_visitor_status
-ir_hierarchical_visitor::visit(ir_end_primitive *ir)
-{
- if (this->callback != NULL)
- this->callback(ir, this->data);
-
- return visit_continue;
-}
-
-ir_visitor_status
ir_hierarchical_visitor::visit(ir_dereference_variable *ir)
{
if (this->callback != NULL)
@@ -310,6 +301,22 @@ ir_hierarchical_visitor::visit_leave(ir_emit_vertex *ir)
return visit_continue;
}
+ir_visitor_status
+ir_hierarchical_visitor::visit_enter(ir_end_primitive *ir)
+{
+ if (this->callback != NULL)
+ this->callback(ir, this->data);
+
+ return visit_continue;
+}
+
+ir_visitor_status
+ir_hierarchical_visitor::visit_leave(ir_end_primitive *ir)
+{
+ (void) ir;
+ return visit_continue;
+}
+
void
ir_hierarchical_visitor::run(exec_list *instructions)
{