summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i915/i915_clear.c
diff options
context:
space:
mode:
authorStéphane Marchesin <[email protected]>2011-08-23 18:44:36 -0700
committerStéphane Marchesin <[email protected]>2011-08-25 22:57:48 -0700
commitb97889f543085f516fc1c821c621790399d57fa5 (patch)
tree56ccf730c31c97949ad2178819e79c18538c300b /src/gallium/drivers/i915/i915_clear.c
parentfdb62ef3f5b0fadd3cbac610f5b612bcfad5af1a (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.c3
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;
}
/**