i965/gen6: Limit the workaround flush to once per primitive.
authorEric Anholt <eric@anholt.net>
Sat, 18 Jun 2011 01:24:56 +0000 (18:24 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 20 Jun 2011 15:37:43 +0000 (08:37 -0700)
commit0ab7d6f437f2f7a1b2d84f30497f3c2013b52791
tree7afaf4d07ede5d262bf13c5b3fbd32e7b49bd97d
parentdfada714f8db3deea2fea3583c3c166a78db1117
i965/gen6: Limit the workaround flush to once per primitive.

We're about to call this function in a bunch of state emits, so let's
not spam the hardware with flushes too hard.
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/i965/brw_vtbl.c
src/mesa/drivers/dri/intel/intel_batchbuffer.c
src/mesa/drivers/dri/intel/intel_context.h