summaryrefslogtreecommitdiff
path: root/src/i830_dri.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-06-21 21:45:04 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-06-21 21:45:04 +0100
commitc942585098ac84ae461821cbb8f52dedce7a0da1 (patch)
tree4fbb783075acb55565df5651b5eadfb55afa004d /src/i830_dri.c
parente8783869ad55d337601b6f6a51c02f6576c64f38 (diff)
Emit the flush after a potential draw from the BlockHandler.
As the batch submit may not trigger further drawing through flushing the vertices, pass the requirement to emit the flush down to the submission routine so that the flush can be appended after the final commands. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/i830_dri.c')
-rw-r--r--src/i830_dri.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/i830_dri.c b/src/i830_dri.c
index 87865fe5..34e2336d 100644
--- a/src/i830_dri.c
+++ b/src/i830_dri.c
@@ -387,9 +387,9 @@ I830DRI2CopyRegion(DrawablePtr drawable, RegionPtr pRegion,
* later.
*
* We can't rely on getting into the block handler before the DRI
- * client gets to run again so flush now. */
- intel_batch_emit_flush(scrn);
- intel_batch_submit(scrn);
+ * client gets to run again so flush now.
+ */
+ intel_batch_submit(scrn, TRUE);
drmCommandNone(intel->drmSubFD, DRM_I915_GEM_THROTTLE);
}