intel: Add an interface for saving/restoring the batchbuffer state.
authorEric Anholt <eric@anholt.net>
Sat, 22 Oct 2011 02:01:17 +0000 (19:01 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 29 Oct 2011 19:15:56 +0000 (12:15 -0700)
commit3faf56ffbdebef04345ebb1fa8e0d50b4beeedb2
treed6affefdd57882bf3191598fc0d50e07dcdd7937
parentdb364a8af0d19e4032ac44635834737017e1051c
intel: Add an interface for saving/restoring the batchbuffer state.

This will be used to avoid the prepare() step in the i965 driver's
state setup.  Instead, we can just speculatively emit the primitive
into the batchbuffer, then check if the batch is too big, rollback and
flush, and replay the primitive.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Paul Berry <stereotype441@gmail.com>
configure.ac
src/mesa/drivers/dri/intel/intel_batchbuffer.c
src/mesa/drivers/dri/intel/intel_batchbuffer.h
src/mesa/drivers/dri/intel/intel_context.h