i915: require mfence before submitting batchbuffer

main
Dave Airlie 2007-10-23 17:54:07 +10:00
parent 9a115080e8
commit a294aa724a
1 changed files with 3 additions and 0 deletions

View File

@ -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;