X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fdrivers%2Fi915%2Fi915_batch.h;h=0cb5801a14ec5c66e4568f23f9bab8952829cf03;hb=5222e16e2b611064c0add9eef7f56488c9b8fbe6;hp=56d331f3e7af3ec8f173165d5d170135edff29fa;hpb=f8e6d19f3f40931be741b44d3edf210c38e13f0f;p=mesa.git diff --git a/src/gallium/drivers/i915/i915_batch.h b/src/gallium/drivers/i915/i915_batch.h index 56d331f3e7a..0cb5801a14e 100644 --- a/src/gallium/drivers/i915/i915_batch.h +++ b/src/gallium/drivers/i915/i915_batch.h @@ -55,26 +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) -{ - struct i915_winsys *iws = i915->iws; - - 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