i915: Flush on surface copy/clear
authorJakob Bornecrantz <wallbraker@gmail.com>
Wed, 28 Jan 2009 22:20:51 +0000 (23:20 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Wed, 28 Jan 2009 22:28:09 +0000 (23:28 +0100)
src/gallium/drivers/i915simple/i915_blit.c

index 45fae4c9995a73391f0725f702d16ae809e7482b..5a4b82921096ca0552ad89dcc50e3f942030b605 100644 (file)
@@ -77,6 +77,7 @@ i915_fill_blit(struct i915_context *i915,
    OUT_BATCH(((y + h) << 16) | (x + w));
    OUT_RELOC( dst_buffer, I915_BUFFER_ACCESS_WRITE, dst_offset);
    OUT_BATCH(color);
+   FLUSH_BATCH(NULL);
 }
 
 
@@ -152,6 +153,7 @@ i915_copy_blit( struct i915_context *i915,
    OUT_BATCH((src_y << 16) | src_x);
    OUT_BATCH(((int) src_pitch & 0xffff));
    OUT_RELOC(src_buffer, I915_BUFFER_ACCESS_READ, src_offset);
+   FLUSH_BATCH(NULL);
 }