freedreno: correct batch_depends_on() logic
authorRob Clark <robdclark@chromium.org>
Wed, 26 Jun 2019 15:25:55 +0000 (08:25 -0700)
committerRob Clark <robdclark@chromium.org>
Wed, 26 Jun 2019 15:43:02 +0000 (08:43 -0700)
Signed-off-by: Rob Clark <robdclark@chromium.org>
src/gallium/drivers/freedreno/freedreno_batch.c

index 88d0a816c00d8259f45a4067f65cb52443ee68aa..a41e89f10905a9dbb8158c8d893806aa808666f4 100644 (file)
@@ -409,7 +409,7 @@ batch_depends_on(struct fd_batch *batch, struct fd_batch *other)
        if (batch->dependents_mask & (1 << other->idx))
                return true;
 
-       foreach_batch(dep, cache, batch->dependents_mask)
+       foreach_batch(dep, cache, other->dependents_mask)
                if (batch_depends_on(batch, dep))
                        return true;