summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/i830_accel.c5
-rw-r--r--src/i830_batchbuffer.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/src/i830_accel.c b/src/i830_accel.c
index 626c751f..115dc62f 100644
--- a/src/i830_accel.c
+++ b/src/i830_accel.c
@@ -140,7 +140,10 @@ void i830_debug_flush(ScrnInfoPtr scrn)
{
intel_screen_private *intel = intel_get_screen_private(scrn);
- if (intel->debug_flush & (DEBUG_FLUSH_BATCHES | DEBUG_FLUSH_CACHES))
+ if (intel->debug_flush & DEBUG_FLUSH_CACHES)
+ intel_batch_pipelined_flush(scrn);
+
+ if (intel->debug_flush & DEBUG_FLUSH_BATCHES)
intel_batch_flush(scrn, FALSE);
}
diff --git a/src/i830_batchbuffer.c b/src/i830_batchbuffer.c
index 1677f590..56f593cc 100644
--- a/src/i830_batchbuffer.c
+++ b/src/i830_batchbuffer.c
@@ -202,7 +202,7 @@ void intel_batch_flush(ScrnInfoPtr scrn, Bool flush)
assert (!intel->in_batch_atomic);
- if (flush || intel->debug_flush & DEBUG_FLUSH_CACHES) {
+ if (flush) {
int flags = MI_WRITE_DIRTY_STATE | MI_INVALIDATE_MAP_CACHE;
if (IS_I965G(intel))