i965: Add missing state reset at the end of blorp.
authorEric Anholt <eric@anholt.net>
Tue, 18 Jun 2013 21:54:18 +0000 (14:54 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 30 Aug 2013 18:30:44 +0000 (11:30 -0700)
commit2e2445fa7e7a916ae2e6304fa8075820d516dc3c
tree7b2409187351a9d63632b00a117d635660baddb2
parent85aff83f3e355f6c258ebab12f6abfc7d9e9984a
i965: Add missing state reset at the end of blorp.

These are things that happen to be occurring because of the batch flush at
the start of the blorp op (which exists to prevent batch space or aperture
space overflow), but the intention was for this sequence of state resets at
the end of blorp to be everything necessary for the next draw call.

Found when debugging the next commit, by comparing brw_new_batch() and
intel_batchbuffer_reset() to brw_blorp_exec().

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_blorp.cpp
src/mesa/drivers/dri/i965/intel_batchbuffer.c
src/mesa/drivers/dri/i965/intel_batchbuffer.h