i915: use a drm memory barrier define
parent
a294aa724a
commit
fd7c24753c
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue