Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307139
b: refs/heads/master
c: 1500f7e
h: refs/heads/master
i:
  307137: 0883888
  307135: 3bfc0f7
v: v3
  • Loading branch information
Ben Widawsky authored and Daniel Vetter committed Apr 12, 2012
1 parent a2f2ab9 commit 2d02197
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e3a5a2250aa9e67d169f33e6c91dc7604cab513b
refs/heads/master: 1500f7ea06858819abcf8eec8f952e2f9281c610
2 changes: 1 addition & 1 deletion trunk/drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -2002,7 +2002,7 @@ i915_gem_object_sync(struct drm_i915_gem_object *obj,
}


ret = to->sync_to(to, from, seqno - 1);
ret = to->sync_to(to, from, seqno);
if (!ret)
from->sync_seqno[idx] = seqno;

Expand Down
6 changes: 6 additions & 0 deletions trunk/drivers/gpu/drm/i915/intel_ringbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,12 @@ intel_ring_sync(struct intel_ring_buffer *waiter,
MI_SEMAPHORE_COMPARE |
MI_SEMAPHORE_REGISTER;

/* Throughout all of the GEM code, seqno passed implies our current
* seqno is >= the last seqno executed. However for hardware the
* comparison is strictly greater than.
*/
seqno -= 1;

ret = intel_ring_begin(waiter, 4);
if (ret)
return ret;
Expand Down

0 comments on commit 2d02197

Please sign in to comment.