summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2007-10-23 17:54:07 +1000
committerDave Airlie <airlied@linux.ie>2007-10-23 17:54:07 +1000
commita294aa724a1e932fb6017383e08532bfcc914df0 (patch)
treee4dca7f5fb841aff5beaedb919153eb1f8c23cdf /shared-core
parent9a115080e870f8196adef4a19598343e63e61e45 (diff)
i915: require mfence before submitting batchbuffer
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/i915_dma.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared-core/i915_dma.c b/shared-core/i915_dma.c
index d0d65f8c..f0fd6037 100644
--- a/shared-core/i915_dma.c
+++ b/shared-core/i915_dma.c
@@ -1044,6 +1044,9 @@ static int i915_execbuffer(struct drm_device *dev, void *data,
if (ret)
goto out_free;
+ /* make sure all previous memory operations have passed */
+ asm volatile("mfence":::"memory");
+
/* submit buffer */
batch->start = buffers[num_buffers-1]->offset;