i965/vec4: Port Gen8 SET_VERTEX_COUNT handling to vec4_generator.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 11 Aug 2014 22:53:54 +0000 (15:53 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 12 Aug 2014 20:39:25 +0000 (13:39 -0700)
commit849046b8429f690fcc9eb7c31e193b467dd97e1a
tree4db17ff72b0f0210eb2f613d3bbe845c97369e95
parent17c17b87f9be5403f706f491756de1be26376308
i965/vec4: Port Gen8 SET_VERTEX_COUNT handling to vec4_generator.

Broadwell requires the number of vertices written by the geometry shader
to be specified in a separate register, as part of the terminating
message's payload.

This also means GS_OPCODE_THREAD_END needs to increment mlen.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4_generator.cpp