i915g: Don't flush empty batchbuffers
authorJakob Bornecrantz <wallbraker@gmail.com>
Sat, 3 Jul 2010 11:30:46 +0000 (12:30 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Sun, 4 Jul 2010 12:32:01 +0000 (13:32 +0100)
src/gallium/drivers/i915/i915_flush.c

index 967146479d163f66643d6e223917904c51c6c1be..482d28eb96aaa99b7e7ef80d624717b1fcbd0489 100644 (file)
@@ -67,11 +67,9 @@ static void i915_flush( struct pipe_context *pipe,
    }
 #endif
 
-#if 0
    if (i915->batch->map == i915->batch->ptr) {
       return;
    }
-#endif
 
    /* If there are no flags, just flush pending commands to hardware:
     */