diff options
author | Stéphane Marchesin <[email protected]> | 2011-08-23 18:44:36 -0700 |
---|---|---|
committer | Stéphane Marchesin <[email protected]> | 2011-08-25 22:57:48 -0700 |
commit | b97889f543085f516fc1c821c621790399d57fa5 (patch) | |
tree | 56ccf730c31c97949ad2178819e79c18538c300b /src/gallium/drivers/i915/i915_context.h | |
parent | fdb62ef3f5b0fadd3cbac610f5b612bcfad5af1a (diff) |
i915g: Improve the flush heuristic by using the previous frame's number of vertices.
Diffstat (limited to 'src/gallium/drivers/i915/i915_context.h')
-rw-r--r-- | src/gallium/drivers/i915/i915_context.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/i915/i915_context.h b/src/gallium/drivers/i915/i915_context.h index 84862351ffe..fca8688a526 100644 --- a/src/gallium/drivers/i915/i915_context.h +++ b/src/gallium/drivers/i915/i915_context.h @@ -264,7 +264,10 @@ struct i915_context { struct util_slab_mempool transfer_pool; struct util_slab_mempool texture_transfer_pool; - int vertices_since_last_flush; + /* state for tracking flushes */ + int last_fired_vertices; + int fired_vertices; + int queued_vertices; /** blitter/hw-clear */ struct blitter_context* blitter; |