From ae6eba3e32a142665d2ae6e15c9122d3201c0b5d Mon Sep 17 00:00:00 2001 From: Bryan Cain Date: Fri, 15 Feb 2013 09:26:35 -0600 Subject: glsl: add ir_emit_vertex and ir_end_primitive instruction types These correspond to the EmitVertex and EndPrimitive functions in GLSL. v2 (Paul Berry ): Add stub implementations of new pure visitor functions to i965's vec4_visitor and fs_visitor classes. v3 (Paul Berry ): Rename classes to be more consistent with the names used in the GL spec. Reviewed-by: Ian Romanick Reviewed-by: Kenneth Graunke --- src/glsl/ir_visitor.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/glsl/ir_visitor.h') diff --git a/src/glsl/ir_visitor.h b/src/glsl/ir_visitor.h index bd47ef7d5fa..40f96ffbca0 100644 --- a/src/glsl/ir_visitor.h +++ b/src/glsl/ir_visitor.h @@ -63,6 +63,8 @@ public: virtual void visit(class ir_if *) = 0; virtual void visit(class ir_loop *) = 0; virtual void visit(class ir_loop_jump *) = 0; + virtual void visit(class ir_emit_vertex *) = 0; + virtual void visit(class ir_end_primitive *) = 0; /*@}*/ }; @@ -81,6 +83,8 @@ public: virtual void visit(class ir_assignment *) {} virtual void visit(class ir_constant *) {} virtual void visit(class ir_call *) {} + virtual void visit(class ir_emit_vertex *) {} + virtual void visit(class ir_end_primitive *) {} }; #endif /* __cplusplus */ -- cgit v1.2.3