summaryrefslogtreecommitdiffstats
path: root/src/glsl/lower_output_reads.cpp
diff options
context:
space:
mode:
authorIago Toral Quiroga <[email protected]>2014-06-20 10:26:29 +0200
committerIago Toral Quiroga <[email protected]>2014-06-30 08:08:50 +0200
commit8639effefeb8c06beedbfcc294694b6bb72db882 (patch)
treee27e6f1b77883bcfbf322fff2f4cdab22a7658bc /src/glsl/lower_output_reads.cpp
parent9650293b51b23b86f4fcf6875e1801555fa235d0 (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/lower_output_reads.cpp')
-rw-r--r--src/glsl/lower_output_reads.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/lower_output_reads.cpp b/src/glsl/lower_output_reads.cpp
index afe17766beb..1ee815d5ece 100644
--- a/src/glsl/lower_output_reads.cpp
+++ b/src/glsl/lower_output_reads.cpp
@@ -52,7 +52,7 @@ public:
output_read_remover();
~output_read_remover();
virtual ir_visitor_status visit(class ir_dereference_variable *);
- virtual ir_visitor_status visit(class ir_emit_vertex *);
+ virtual ir_visitor_status visit_leave(class ir_emit_vertex *);
virtual ir_visitor_status visit_leave(class ir_return *);
virtual ir_visitor_status visit_leave(class ir_function_signature *);
};
@@ -148,7 +148,7 @@ output_read_remover::visit_leave(ir_return *ir)
}
ir_visitor_status
-output_read_remover::visit(ir_emit_vertex *ir)
+output_read_remover::visit_leave(ir_emit_vertex *ir)
{
hash_table_call_foreach(replacements, emit_return_copy, ir);
hash_table_clear(replacements);