diff options
author | Iago Toral Quiroga <[email protected]> | 2014-06-20 10:26:29 +0200 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2014-06-30 08:08:50 +0200 |
commit | 8639effefeb8c06beedbfcc294694b6bb72db882 (patch) | |
tree | e27e6f1b77883bcfbf322fff2f4cdab22a7658bc /src/glsl/ir_hierarchical_visitor.cpp | |
parent | 9650293b51b23b86f4fcf6875e1801555fa235d0 (diff) |
glsl: Modify ir_emit_vertex to have a stream.
This will be necessary to implement EmitStreamVertex().
EmitVertex() will produce an ir_emit_vertex with the default stream 0.
Reviewed-by: Chris Forbes <[email protected]>
Diffstat (limited to 'src/glsl/ir_hierarchical_visitor.cpp')
-rw-r--r-- | src/glsl/ir_hierarchical_visitor.cpp | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/src/glsl/ir_hierarchical_visitor.cpp b/src/glsl/ir_hierarchical_visitor.cpp index 2e606dda4be..78ae2df1d3d 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_emit_vertex *ir) -{ - if (this->callback != NULL) - this->callback(ir, this->data); - - return visit_continue; -} - -ir_visitor_status ir_hierarchical_visitor::visit(ir_end_primitive *ir) { if (this->callback != NULL) @@ -303,6 +294,22 @@ ir_hierarchical_visitor::visit_leave(ir_if *ir) return visit_continue; } +ir_visitor_status +ir_hierarchical_visitor::visit_enter(ir_emit_vertex *ir) +{ + if (this->callback != NULL) + this->callback(ir, this->data); + + return visit_continue; +} + +ir_visitor_status +ir_hierarchical_visitor::visit_leave(ir_emit_vertex *ir) +{ + (void) ir; + return visit_continue; +} + void ir_hierarchical_visitor::run(exec_list *instructions) { |