summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
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;