summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i915
diff options
context:
space:
mode:
authorStéphane Marchesin <[email protected]>2011-10-08 17:42:18 -0700
committerStéphane Marchesin <[email protected]>2011-10-08 17:42:18 -0700
commit49fea2e039ca6bc1d134be09144d3ace3384255b (patch)
tree2a15e30b6c32cb86f27d52827af06dd452752e7c /src/gallium/drivers/i915
parentcd41960e8f0d4601cba35b16ec9d488dccb29fd5 (diff)
i915g: Remove old heuristic flusing remains.
Diffstat (limited to 'src/gallium/drivers/i915')
-rw-r--r--src/gallium/drivers/i915/i915_batch.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/gallium/drivers/i915/i915_batch.h b/src/gallium/drivers/i915/i915_batch.h
index 30141cc745d..0cb5801a14e 100644
--- a/src/gallium/drivers/i915/i915_batch.h
+++ b/src/gallium/drivers/i915/i915_batch.h
@@ -55,24 +55,4 @@
*/
void i915_flush(struct i915_context *i915, struct pipe_fence_handle **fence);
-/*
- * Flush if the current color buf is idle and we have more than 256 vertices
- * queued, or if the current color buf is busy and we have more than 4096
- * vertices queued.
- */
-static INLINE void i915_flush_heuristically(struct i915_context* i915,
- int num_vertex)
-{
- i915->queued_vertices += num_vertex;
-
- /* fire if we have more than 1/20th of the last frame's vertices */
- if (i915->queued_vertices > i915->last_fired_vertices / 20) {
- FLUSH_BATCH(NULL);
- i915->fired_vertices += i915->queued_vertices;
- i915->queued_vertices = 0;
- return;
- }
-}
-
-
#endif