summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2008-01-15 10:03:41 +0100
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2008-01-15 10:03:41 +0100
commit88c511e49dce869d1c4e3271bf642cbb22fef0cf (patch)
treea7d5ac9d0c91289a6c58d4d096c8bb3554ad29df
parent099e89edf094ec231621b67129e9226ba50e99ad (diff)
Properly propagate the user-space fence flags.
This avoids a sync flush when user-space has already programmed and MI_FLUSH in the batchbuffer.
-rw-r--r--shared-core/i915_dma.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shared-core/i915_dma.c b/shared-core/i915_dma.c
index 4b97a39c..a36ca37e 100644
--- a/shared-core/i915_dma.c
+++ b/shared-core/i915_dma.c
@@ -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;