Mesa (master): freedreno: correct batch_depends_on() logic

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 26 16:09:32 UTC 2019


Module: Mesa
Branch: master
Commit: 1833827eac4461b6aa7388f6e64b8f08536686e5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1833827eac4461b6aa7388f6e64b8f08536686e5

Author: Rob Clark <robdclark at chromium.org>
Date:   Wed Jun 26 08:25:55 2019 -0700

freedreno: correct batch_depends_on() logic

Signed-off-by: Rob Clark <robdclark at chromium.org>

---

 src/gallium/drivers/freedreno/freedreno_batch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 




More information about the mesa-commit mailing list