i915g: Use unchecked writes in sw winsys batchbuffer
authorJakob Bornecrantz <wallbraker@gmail.com>
Sat, 26 Feb 2011 00:42:19 +0000 (01:42 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Sat, 26 Feb 2011 14:29:21 +0000 (15:29 +0100)
src/gallium/winsys/i915/sw/i915_sw_batchbuffer.c

index 8085591c8ebe072aff0afbe59c1dd8a23c75f285..d246bf64138dbb3be4f7cc385bc121e3e011f764 100644 (file)
@@ -107,16 +107,16 @@ i915_sw_batchbuffer_flush(struct i915_winsys_batchbuffer *ibatch,
 
 #ifdef INTEL_ALWAYS_FLUSH
    /* MI_FLUSH | FLUSH_MAP_CACHE */
-   i915_winsys_batchbuffer_dword(ibatch, (0x4<<23)|(1<<0));
+   i915_winsys_batchbuffer_dword_unchecked(ibatch, (0x4<<23)|(1<<0));
    used += 4;
 #endif
 
    if ((used & 4) == 0) {
       /* MI_NOOP */
-      i915_winsys_batchbuffer_dword(ibatch, 0);
+      i915_winsys_batchbuffer_dword_unchecked(ibatch, 0);
    }
    /* MI_BATCH_BUFFER_END */
-   i915_winsys_batchbuffer_dword(ibatch, (0xA<<23));
+   i915_winsys_batchbuffer_dword_unchecked(ibatch, (0xA<<23));
 
    used = batch->base.ptr - batch->base.map;
    assert((used & 4) == 0);