From 6d3632c9c9c58f8fe1bae26871432342ccaaaf4b Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Fri, 6 Jun 2014 12:31:30 +0200 Subject: glsl: Store info about geometry shaders that emit vertices to non-zero streams. On Intel hardware when a geometry shader outputs GL_POINTS primitives we only need to emit vertex control bits if it emits vertices to non-zero streams, so use a flag to track this. This flag will be set to TRUE when a geometry shader calls EmitStreamVertex() or EndStreamPrimitive() with a non-zero stream parameter in a later patch. Reviewed-by: Ian Romanick --- src/mesa/program/program.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/program/program.c') diff --git a/src/mesa/program/program.c b/src/mesa/program/program.c index 988def1a348..aedce3e3c5e 100644 --- a/src/mesa/program/program.c +++ b/src/mesa/program/program.c @@ -553,6 +553,7 @@ _mesa_clone_program(struct gl_context *ctx, const struct gl_program *prog) gpc->Invocations = gp->Invocations; gpc->OutputType = gp->OutputType; gpc->UsesEndPrimitive = gp->UsesEndPrimitive; + gpc->UsesStreams = gp->UsesStreams; } break; default: -- cgit v1.2.3