nouveau/mme: Don't allow WaW dependencies in the same Turing instruction

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
Faith Ekstrand 2023-01-30 20:12:06 -06:00 committed by Marge Bot
parent 5560f5f4ff
commit 83142c825f

View file

@ -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 */