Properly propagate the user-space fence flags.

This avoids a sync flush when user-space has already programmed
and MI_FLUSH in the batchbuffer.
This commit is contained in:
Thomas Hellstrom 2008-01-15 10:03:41 +01:00
parent 099e89edf0
commit 88c511e49d

View file

@ -1111,7 +1111,8 @@ static int i915_execbuffer(struct drm_device *dev, void *data,
sarea_priv->last_dispatch = READ_BREADCRUMB(dev_priv);
/* fence */
ret = drm_fence_buffer_objects(dev, NULL, 0, NULL, &fence);
ret = drm_fence_buffer_objects(dev, NULL, fence_arg->flags,
NULL, &fence);
if (ret)
goto out_err0;