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_clear.c | |
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_clear.c')
-rw-r--r-- | src/gallium/drivers/i915/i915_clear.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/i915/i915_clear.c b/src/gallium/drivers/i915/i915_clear.c index e1d6a749cdc..4f9aa2c3120 100644 --- a/src/gallium/drivers/i915/i915_clear.c +++ b/src/gallium/drivers/i915/i915_clear.c @@ -125,6 +125,9 @@ i915_clear_emit(struct pipe_context *pipe, unsigned buffers, const float *rgba, * This is not required, just a heuristic */ FLUSH_BATCH(NULL); + + i915->last_fired_vertices = i915->fired_vertices; + i915->fired_vertices = 0; } /** |