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_rvalue_visitor.h | |
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_rvalue_visitor.h')
-rw-r--r-- | src/glsl/ir_rvalue_visitor.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/ir_rvalue_visitor.h b/src/glsl/ir_rvalue_visitor.h index ad1694168a0..04ec0fa398c 100644 --- a/src/glsl/ir_rvalue_visitor.h +++ b/src/glsl/ir_rvalue_visitor.h @@ -42,6 +42,7 @@ public: ir_visitor_status rvalue_visit(ir_swizzle *); ir_visitor_status rvalue_visit(ir_texture *); ir_visitor_status rvalue_visit(ir_emit_vertex *); + ir_visitor_status rvalue_visit(ir_end_primitive *); virtual void handle_rvalue(ir_rvalue **rvalue) = 0; }; @@ -59,6 +60,7 @@ public: virtual ir_visitor_status visit_leave(ir_swizzle *); virtual ir_visitor_status visit_leave(ir_texture *); virtual ir_visitor_status visit_leave(ir_emit_vertex *); + virtual ir_visitor_status visit_leave(ir_end_primitive *); }; class ir_rvalue_enter_visitor : public ir_rvalue_base_visitor { @@ -74,4 +76,5 @@ public: virtual ir_visitor_status visit_enter(ir_swizzle *); virtual ir_visitor_status visit_enter(ir_texture *); virtual ir_visitor_status visit_enter(ir_emit_vertex *); + virtual ir_visitor_status visit_enter(ir_end_primitive *); }; |