i965/gen7: Flush the batch between transform feedbacks.
authorEric Anholt <eric@anholt.net>
Fri, 30 Dec 2011 02:24:02 +0000 (18:24 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 6 Jan 2012 17:17:04 +0000 (09:17 -0800)
commit7f91c8bf2bf08afd297314c02a8869d8919f5f0e
treef3509804d25fec8381003758efd086eb10a525f1
parentc4089d444a1736dba0c3d9c389ac216ce8711da8
i965/gen7: Flush the batch between transform feedbacks.

We need the kernel to reset our pointers to 0 in between.  Note that
the initialization of function pointer had to move to after
InitContext since we didn't have intel->gen set up yet.

Fixes piglit EXT_transform_feedback/immediate-reuse

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/gen7_sol_state.c