summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem.c')
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 9fcdc9a..0115b12 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -2001,10 +2001,12 @@ i915_gem_object_sync(struct drm_i915_gem_object *obj,
seqno = request->seqno;
}
- from->sync_seqno[idx] = seqno;
- return to->sync_to(to, from, seqno - 1);
+ ret = to->sync_to(to, from, seqno - 1);
+ if (!ret)
+ from->sync_seqno[idx] = seqno;
+ return ret;
}
static void i915_gem_object_finish_gtt(struct drm_i915_gem_object *obj)
OpenPOWER on IntegriCloud