glsl: Store info about geometry shaders that emit vertices to non-zero streams.
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 6 Jun 2014 10:31:30 +0000 (12:31 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 30 Jun 2014 06:08:50 +0000 (08:08 +0200)
commit6d3632c9c9c58f8fe1bae26871432342ccaaaf4b
treefe20b6b1117ed4fb4082e20369e7065b8934b3c3
parent598c2e2c83447cf222f96f833569eeb0bd179871
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 <ian.d.romanick@intel.com>
src/mesa/main/mtypes.h
src/mesa/main/shaderapi.c
src/mesa/main/shaderobj.c
src/mesa/program/program.c