i915: use a drm memory barrier define

main
Dave Airlie 2007-10-24 11:13:15 +11:00
parent a294aa724a
commit fd7c24753c
1 changed files with 1 additions and 1 deletions

View File

@ -1045,7 +1045,7 @@ static int i915_execbuffer(struct drm_device *dev, void *data,
goto out_free; goto out_free;
/* make sure all previous memory operations have passed */ /* make sure all previous memory operations have passed */
asm volatile("mfence":::"memory"); DRM_MEMORYBARRIER();
/* submit buffer */ /* submit buffer */
batch->start = buffers[num_buffers-1]->offset; batch->start = buffers[num_buffers-1]->offset;