intel: Replace sprinkled intel_batchbuffer_flush with MI_FLUSH or nothing.
authorEric Anholt <eric@anholt.net>
Thu, 26 Jun 2008 20:45:31 +0000 (13:45 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 26 Jun 2008 22:29:28 +0000 (15:29 -0700)
commit93f701bc3619864ac6f067d37212e96545a57e16
tree8f84c57cd3cbfdd1f74477640a792b18c71db377
parentf6abe8f0f2fba3073b58b96ed38aae163c765b4a
intel: Replace sprinkled intel_batchbuffer_flush with MI_FLUSH or nothing.

Most of these were to ensure that caches got synchronized between 2d (or meta)
rendering and later use of the target as a source, such as for texture
miptree setup.  Those are replaced with intel_batchbuffer_emit_mi_flush(),
which just drops an MI_FLUSH.  Most of the remainder were to ensure that
REFERENCES_CLIPRECTS batchbuffers got flushed before the lock was dropped.
Those are now replaced by automatically flushing those when dropping the lock.
13 files changed:
src/mesa/drivers/dri/i915/intel_pixel_read.c
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/intel/intel_batchbuffer.h
src/mesa/drivers/dri/intel/intel_blit.c
src/mesa/drivers/dri/intel/intel_buffer_objects.c
src/mesa/drivers/dri/intel/intel_context.c
src/mesa/drivers/dri/intel/intel_pixel_bitmap.c
src/mesa/drivers/dri/intel/intel_pixel_copy.c
src/mesa/drivers/dri/intel/intel_pixel_draw.c
src/mesa/drivers/dri/intel/intel_regions.c
src/mesa/drivers/dri/intel/intel_tex_copy.c
src/mesa/drivers/dri/intel/intel_tex_image.c
src/mesa/drivers/dri/intel/intel_tex_validate.c