summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/i915/i915_flush.c
diff options
context:
space:
mode:
authorJakob Bornecrantz <wallbraker@gmail.com>2010-07-03 12:30:46 +0100
committerJakob Bornecrantz <wallbraker@gmail.com>2010-07-04 13:32:01 +0100
commit62bcf2e6ad7f74affa4e1240c2ea41339a4c95db (patch)
tree502e31acf27b968d1e0af04d7140b9f6bf2e832d /src/gallium/drivers/i915/i915_flush.c
parented5ce78b8146a485f418a3ca06e545ab297f6f93 (diff)
i915g: Don't flush empty batchbuffers
Diffstat (limited to 'src/gallium/drivers/i915/i915_flush.c')
-rw-r--r--src/gallium/drivers/i915/i915_flush.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gallium/drivers/i915/i915_flush.c b/src/gallium/drivers/i915/i915_flush.c
index 967146479d..482d28eb96 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:
*/