diff options
author | Iago Toral Quiroga <[email protected]> | 2014-06-20 10:38:53 +0200 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2014-06-30 08:08:50 +0200 |
commit | 4b3fc21032a63f483d381c36c8e41bf3540ebfcc (patch) | |
tree | 0f01cb04873f5eb0510713e37af1d200d3dcac09 /src/glsl/ir_hv_accept.cpp | |
parent | 8639effefeb8c06beedbfcc294694b6bb72db882 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/glsl/ir_hv_accept.cpp')
-rw-r--r-- | src/glsl/ir_hv_accept.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/glsl/ir_hv_accept.cpp b/src/glsl/ir_hv_accept.cpp index f6332836b1c..3ca7a58871a 100644 --- a/src/glsl/ir_hv_accept.cpp +++ b/src/glsl/ir_hv_accept.cpp @@ -420,5 +420,13 @@ ir_emit_vertex::accept(ir_hierarchical_visitor *v) ir_visitor_status ir_end_primitive::accept(ir_hierarchical_visitor *v) { - return v->visit(this); + ir_visitor_status s = v->visit_enter(this); + if (s != visit_continue) + return (s == visit_continue_with_parent) ? visit_continue : s; + + s = this->stream->accept(v); + if (s != visit_continue) + return (s == visit_continue_with_parent) ? visit_continue : s; + + return (s == visit_stop) ? s : v->visit_leave(this); } |