summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i915/i915_clear.c
diff options
context:
space:
mode:
authorStéphane Marchesin <[email protected]>2011-07-06 02:19:48 -0700
committerStéphane Marchesin <[email protected]>2011-07-06 02:49:58 -0700
commite53b41f2632af26c79c4f7ed5b0fdb86a1feb602 (patch)
tree9499ab923e29bae2908ccf4a37bb88376cfae7e9 /src/gallium/drivers/i915/i915_clear.c
parent2bc5e0e97ba7b6c32f6ff90cb90448173d74b89b (diff)
i915g: Improve flushing using heuristics.
Diffstat (limited to 'src/gallium/drivers/i915/i915_clear.c')
-rw-r--r--src/gallium/drivers/i915/i915_clear.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/i915/i915_clear.c b/src/gallium/drivers/i915/i915_clear.c
index fcb208d6dae..e1d6a749cdc 100644
--- a/src/gallium/drivers/i915/i915_clear.c
+++ b/src/gallium/drivers/i915/i915_clear.c
@@ -120,6 +120,11 @@ i915_clear_emit(struct pipe_context *pipe, unsigned buffers, const float *rgba,
OUT_BATCH_F(desty + height);
OUT_BATCH_F(destx);
OUT_BATCH_F(desty);
+
+ /* Flush after clear, its expected to be a costly operation.
+ * This is not required, just a heuristic
+ */
+ FLUSH_BATCH(NULL);
}
/**