i965: Cope with batch getting flushed in the middle of batchbuffer emits.
authorEric Anholt <eric@anholt.net>
Tue, 23 Sep 2008 22:53:29 +0000 (15:53 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 23 Sep 2008 22:53:29 +0000 (15:53 -0700)
commitd533da2db873942b3f8676a754b8be3c9718bedf
treeaa326f3695f183647598c1567d2b6475490d9b05
parent4b038e24b0960e10d6ab8e360f2558d9c2730d99
i965: Cope with batch getting flushed in the middle of batchbuffer emits.

This isn't required for GEM (at least, yet), but the check_aperture code
for non-GEM results in batch getting flushed during emit.  brw_state_upload
restarts state emits, but a bunch of the state emit functions were assuming
that they would be called exactly once, after prepare and before new_batch.

Bug #17179.
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_curbe.c
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/i965/brw_draw_upload.c
src/mesa/drivers/dri/i965/brw_vtbl.c