summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorKeith Packard <[email protected]>2008-05-26 00:19:20 -0700
committerKeith Packard <[email protected]>2008-05-26 00:19:20 -0700
commit924eaa2f955ecdc1080f5a8fdc165367a576a919 (patch)
tree3c7e5d5831adf69d412d4838b69fa8bcd5f6dff0 /src/mesa/drivers
parent8ba91b4636a04145e683e7d7fe5ee5ff404d73ac (diff)
[intel] all flushing in intelEmitCopyBlit
Add both MI_FLUSH and intel_batchbuffer_flush to intelEmitCopyBlit. This ensures that the data are flushed *and* the gem kernel driver sees the various memory domain transitions.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/intel/intel_blit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_blit.c b/src/mesa/drivers/dri/intel/intel_blit.c
index a1f49973126..e8d2ad0ae45 100644
--- a/src/mesa/drivers/dri/intel/intel_blit.c
+++ b/src/mesa/drivers/dri/intel/intel_blit.c
@@ -375,6 +375,10 @@ intelEmitCopyBlit(struct intel_context *intel,
src_offset + src_y * src_pitch);
ADVANCE_BATCH();
}
+ BEGIN_BATCH(1, NO_LOOP_CLIPRECTS);
+ OUT_BATCH(MI_FLUSH);
+ ADVANCE_BATCH();
+ intel_batchbuffer_flush(intel->batch);
}