Commit 7cca889e authored by Nicholas Bishop's avatar Nicholas Bishop Committed by Marge Bot
Browse files

crocus: fix off-by-one error when clearing stale syncobjs

This is the same fix as commit 1311eddd

 ("iris: fix off-by-one error
when clearing stale syncobjs"), but for crocus.

Signed-off-by: Nicholas Bishop's avatarNicholas Bishop <>
Part-of: <!19282>
parent 977dbfc9
Pipeline #720362 waiting for manual action with stages
......@@ -127,7 +127,7 @@ clear_stale_syncobjs(struct crocus_batch *batch)
struct drm_i915_gem_exec_fence));
/* Skip the first syncobj, as it's the signalling one. */
for (int i = n - 1; i > 1; i--) {
for (int i = n - 1; i > 0; i--) {
struct crocus_syncobj **syncobj =
util_dynarray_element(&batch->syncobjs, struct crocus_syncobj *, i);
struct drm_i915_gem_exec_fence *fence =
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment