summaryrefslogtreecommitdiffstats
path: root/src/glsl/builtin_functions.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/builtin_functions.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/builtin_functions.cpp')
-rw-r--r--src/glsl/builtin_functions.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp
index f9f06862e44..33b8843928e 100644
--- a/src/glsl/builtin_functions.cpp
+++ b/src/glsl/builtin_functions.cpp
@@ -3872,7 +3872,8 @@ builtin_builder::_EmitVertex()
{
MAKE_SIG(glsl_type::void_type, gs_only, 0);
- body.emit(new(mem_ctx) ir_emit_vertex());
+ ir_rvalue *stream = new(mem_ctx) ir_constant(0, 1);
+ body.emit(new(mem_ctx) ir_emit_vertex(stream));
return sig;
}