i915: Move the always_flush_cache code to triangle emit.
authorEric Anholt <eric@anholt.net>
Fri, 21 Oct 2011 23:32:03 +0000 (16:32 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 29 Oct 2011 19:15:33 +0000 (12:15 -0700)
commitdb364a8af0d19e4032ac44635834737017e1051c
treed58e12324f87688dd5c074e723b1af07657f5685
parent439d67f502cf78a977501c310e13d8d5f05e4986
i915: Move the always_flush_cache code to triangle emit.

This could have broken always_flush_cache on i965, since
reserved_space doesn't reflect the size of the workaround flushes, and
we might run out of space.  This should make always_flush_cache more
useful on pre-i965, anyway (since the point is to flush around each
draw call, even within a batchbuffer).

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