i965/gs: Set number of control data bits for stream mode.
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 3 Jun 2014 10:25:08 +0000 (12:25 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 30 Jun 2014 06:08:50 +0000 (08:08 +0200)
commit9650293b51b23b86f4fcf6875e1801555fa235d0
tree77406c1c075634e99b5613bcea8e3d956a5ebb25
parent6d3632c9c9c58f8fe1bae26871432342ccaaaf4b
i965/gs: Set number of control data bits for stream mode.

If the geometry shader is indeed using streams then we need 2 control data
bits per vertex for the StreamID. If the shader is not using streams then
we don't need control data bits.

Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_vec4_gs.c