i915g: Don't send flush flags to HW
authorJakob Bornecrantz <wallbraker@gmail.com>
Thu, 3 Sep 2009 18:28:38 +0000 (19:28 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Thu, 3 Sep 2009 18:33:07 +0000 (19:33 +0100)
src/gallium/drivers/i915simple/i915_flush.c

index b223dadab649815cfdf0ae89b3b72d2d9b858931..1582168eba576f0d832d612dd963fe430fc3c66e 100644 (file)
@@ -45,6 +45,7 @@ static void i915_flush( struct pipe_context *pipe,
 
    draw_flush(i915->draw);
 
+#if 0
    /* Do we need to emit an MI_FLUSH command to flush the hardware
     * caches?
     */
@@ -63,6 +64,13 @@ static void i915_flush( struct pipe_context *pipe,
       }
       OUT_BATCH( flush );
    }
+#endif
+
+#if 0
+   if (i915->batch->map == i915->batch->ptr) {
+      return;
+   }
+#endif
 
    /* If there are no flags, just flush pending commands to hardware:
     */