From: Rob Clark Date: Wed, 26 Jun 2019 15:25:55 +0000 (-0700) Subject: freedreno: correct batch_depends_on() logic X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1833827eac4461b6aa7388f6e64b8f08536686e5;p=mesa.git freedreno: correct batch_depends_on() logic Signed-off-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/freedreno_batch.c b/src/gallium/drivers/freedreno/freedreno_batch.c index 88d0a816c00..a41e89f1090 100644 --- a/src/gallium/drivers/freedreno/freedreno_batch.c +++ b/src/gallium/drivers/freedreno/freedreno_batch.c @@ -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;