batch: Ensure we send a MI_FLUSH in the block handler for TFP
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 7 Dec 2009 11:09:14 +0000 (11:09 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 7 Dec 2009 11:15:42 +0000 (11:15 +0000)
commitcd475bad23c02130d11c49882c11261c9f0d4ef1
tree0f63ed78534c7251597cd3cd496bae881f77b186
parent415aab474edd1425034981306718afd8506445f1
batch: Ensure we send a MI_FLUSH in the block handler for TFP

This should restore the previous level of synchronisation between
textures and pixmaps, but *does not* guarantee that a texture will be
flushed before use. tfp should be fixed so that the ddx can submit the
batch if required to flush the pixmap.

A side-effect of this patch is to rename intel_batch_flush() to
intel_batch_submit() to reduce the confusion of executing a batch buffer
with that of emitting a MI_FLUSH.

Should fix the remaining rendering corruption involving tfp [inc compiz]:

  Bug 25431 [i915 bisected] piglit/texturing_tfp regressed
  http://bugs.freedesktop.org/show_bug.cgi?id=25431

  Bug 25481 Wrong cursor format and cursor blink rate with compiz enabled
  http://bugs.freedesktop.org/show_bug.cgi?id=25481

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/i830_accel.c
src/i830_batchbuffer.c
src/i830_batchbuffer.h
src/i830_dri.c
src/i830_driver.c
src/i830_render.c
src/i830_uxa.c
src/i915_render.c
src/i965_render.c
src/i965_video.c