diff options
author | Ben Widawsky <ben@bwidawsk.net> | 2012-04-11 14:18:21 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-04-12 15:14:14 -0400 |
commit | 1500f7ea06858819abcf8eec8f952e2f9281c610 (patch) | |
tree | 2e29c9de3db986d3e10a6317973c1db6bd3e8bf7 /drivers/gpu/drm/i915/i915_gem.c | |
parent | e3a5a2250aa9e67d169f33e6c91dc7604cab513b (diff) |
drm/i915: hide (seqno-1) in ringbuffer code
Waiting for seqno-1 in our object synchronization code is an
implementation detail given how we've decided to do the waits within the
rest of our code.
Requested-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 0115b12df573..71934dd0ee43 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c | |||
@@ -2002,7 +2002,7 @@ i915_gem_object_sync(struct drm_i915_gem_object *obj, | |||
2002 | } | 2002 | } |
2003 | 2003 | ||
2004 | 2004 | ||
2005 | ret = to->sync_to(to, from, seqno - 1); | 2005 | ret = to->sync_to(to, from, seqno); |
2006 | if (!ret) | 2006 | if (!ret) |
2007 | from->sync_seqno[idx] = seqno; | 2007 | from->sync_seqno[idx] = seqno; |
2008 | 2008 | ||