i965: Make emit_urb_writes() reserve space for GS header information.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 6 May 2015 03:19:04 +0000 (20:19 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 21 Oct 2015 21:27:52 +0000 (14:27 -0700)
commitac0a33666bdab6e4d9abca6ae6ee19cb03919dcc
tree5b6547267c5132b16e9f560406db51ca5577feb4
parentcb755996d91e9f44c93121f9534b0c59bb3ec201
i965: Make emit_urb_writes() reserve space for GS header information.

Geometry shaders have additional header data at the beginning of their
output URB entries.  Shaders that use EndPrimitive() or multiple streams
have a control data header; shaders with a dynamic vertex count have an
additional vec4 slot to hold the 32-bit vertex count (and 96 bits of
padding).

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp