drm/i915: Updating comments.
ring index calculation table was out of date after other rings were added, although the formula is flexible and scale when adding new rings. So this patch just update the comments and add a brief explanation why to use sync_seqno[ring index]. Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by: Ben Widawsky <ben@bwidawsk.net> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:

committed by
Daniel Vetter

parent
f7b6423685
commit
ddd4dbc6c1
@@ -2842,6 +2842,8 @@ i915_gem_object_sync(struct drm_i915_gem_object *obj,
|
||||
idx = intel_ring_sync_index(from, to);
|
||||
|
||||
seqno = obj->last_read_seqno;
|
||||
/* Optimization: Avoid semaphore sync when we are sure we already
|
||||
* waited for an object with higher seqno */
|
||||
if (seqno <= from->semaphore.sync_seqno[idx])
|
||||
return 0;
|
||||
|
||||
|
Reference in New Issue
Block a user