mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-06 15:18:05 +02:00
i915: require mfence before submitting batchbuffer
This commit is contained in:
parent
9a115080e8
commit
a294aa724a
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue