summaryrefslogtreecommitdiff
path: root/src/i830_dri.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-11-29 22:42:03 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2009-11-29 22:42:03 +0000
commit285f286597df5af13ac3f3d366f2fc9d0468dafa (patch)
treea102dea2bc7b253781ca10a0cc7faef5400a7e8d /src/i830_dri.c
parent2c3aee2b570dadd9270a08d8ff675d07ac405e33 (diff)
batch: Track pixmap domains.
In order to detect when we require cache flushes we need to track which domains the pixmap currently belongs to. So to do so we create a device private structure to hold the extra information and hook it up. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/i830_dri.c')
-rw-r--r--src/i830_dri.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/i830_dri.c b/src/i830_dri.c
index 98c1a15d..64ee4540 100644
--- a/src/i830_dri.c
+++ b/src/i830_dri.c
@@ -349,12 +349,10 @@ I830DRI2CopyRegion(DrawablePtr drawable, RegionPtr pRegion,
/* Emit a flush of the rendering cache, or on the 965 and beyond
* rendering results may not hit the framebuffer until significantly
* later.
- */
- I830EmitFlush(scrn);
- intel->need_mi_flush = FALSE;
-
- /* We can't rely on getting into the block handler before the DRI
+ *
+ * We can't rely on getting into the block handler before the DRI
* client gets to run again so flush now. */
+ intel->need_mi_flush = FALSE;
intel_batch_flush(scrn, TRUE);
#if ALWAYS_SYNC
I830Sync(scrn);