From 83142c825f79da5e35c1e8c7184a63021e2fc893 Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Mon, 30 Jan 2023 20:12:06 -0600 Subject: [PATCH] nouveau/mme: Don't allow WaW dependencies in the same Turing instruction Part-of: --- src/nouveau/mme/mme_tu104.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nouveau/mme/mme_tu104.c b/src/nouveau/mme/mme_tu104.c index d46f79e1595..a8e0ceaf044 100644 --- a/src/nouveau/mme/mme_tu104.c +++ b/src/nouveau/mme/mme_tu104.c @@ -276,7 +276,9 @@ mme_tu104_alus_have_dependency(const struct mme_tu104_alu *first, const struct mme_tu104_alu *second) { if (first->dst != MME_TU104_REG_ZERO && - (first->dst == second->src[0] || first->dst == second->src[1])) + (first->dst == second->dst || + first->dst == second->src[0] || + first->dst == second->src[1])) return true; /* TODO: This could be more detailed */