i965: Avoid flushing the batch for busy BOs for ARB_mbr with INVALIDATE_BUFFER.
authorEric Anholt <eric@anholt.net>
Fri, 24 Feb 2012 23:05:02 +0000 (15:05 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 21 Mar 2012 19:45:06 +0000 (12:45 -0700)
commitf97da4ed71f723bc895ca38b81ac13afe3b7175a
tree3c9b4f5c855682747ec836257dc765434486ce1c
parent2222aa06e16dbfe4c29e05a1189bce80680aba19
i965: Avoid flushing the batch for busy BOs for ARB_mbr with INVALIDATE_BUFFER.

Unigine Tropics uses INVALIDATE_BUFFER and not UNSYNCHRONIZED to reset
the buffer object when its streaming wraps.  Don't penalize it by
flushing the batch at the wrap point, just allocate a new BO and get
to using it.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/intel/intel_buffer_objects.c