summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2007-10-24 11:13:15 +1100
committerDave Airlie <airlied@redhat.com>2007-10-24 11:13:15 +1100
commitfd7c24753c4020a0022aaa183cfe8fc04a307abd (patch)
tree086311c61bdfeb117bf9fb8812f0de39a0817504
parenta294aa724a1e932fb6017383e08532bfcc914df0 (diff)
i915: use a drm memory barrier define
-rw-r--r--shared-core/i915_dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-core/i915_dma.c b/shared-core/i915_dma.c
index f0fd6037..9bc7431d 100644
--- a/shared-core/i915_dma.c
+++ b/shared-core/i915_dma.c
@@ -1045,7 +1045,7 @@ static int i915_execbuffer(struct drm_device *dev, void *data,
goto out_free;
/* make sure all previous memory operations have passed */
- asm volatile("mfence":::"memory");
+ DRM_MEMORYBARRIER();
/* submit buffer */
batch->start = buffers[num_buffers-1]->offset;