From: Jakob Bornecrantz Date: Sat, 3 Jul 2010 11:30:46 +0000 (+0100) Subject: i915g: Don't flush empty batchbuffers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=62bcf2e6ad7f74affa4e1240c2ea41339a4c95db;p=mesa.git i915g: Don't flush empty batchbuffers --- diff --git a/src/gallium/drivers/i915/i915_flush.c b/src/gallium/drivers/i915/i915_flush.c index 967146479d1..482d28eb96a 100644 --- a/src/gallium/drivers/i915/i915_flush.c +++ b/src/gallium/drivers/i915/i915_flush.c @@ -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: */