i965: Go back to using the kernel SOL reset feature.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 24 May 2013 03:19:19 +0000 (20:19 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 23 May 2013 20:32:02 +0000 (13:32 -0700)
commit062317d6671ed42ed10b24ee9d3df87c1dab279d
tree8b74f110a4aea3175b2be598980b2ce41163140a
parent95670bdee2f51196c1f34871a23faae1348d4b60
i965: Go back to using the kernel SOL reset feature.

It turns out the MI_LOAD_REGISTER_IMM approach doesn't work on Haswell,
and regressed essentially all the transform feedback Piglit tests.

This morally reverts eaa6fbe6d54dc99efac4ab8e800edef65ce8220d.  However,
the code is still simpler than it was.  On BeginTransformFeedback, we
simply flush the batch and set the SOL reset flag so that the next batch
will start with zeroed offsets.  There's still no software counting.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=64887
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/gen7_sol_state.c
src/mesa/drivers/dri/intel/intel_batchbuffer.c
src/mesa/drivers/dri/intel/intel_context.h