Commit 7528e2ea authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

midgard: Fix bug in aliasing implementation

parent feba1363
......@@ -1105,7 +1105,15 @@ map_ssa_to_alias(compiler_context *ctx, int *ref)
_mesa_set_remove(ctx->leftover_ssa_to_alias, leftover);
/* Assign the alias map */
*ref = alias;
*ref = alias - 1;
return;
}
alias = _mesa_hash_table_u64_search(ctx->register_to_ssa, *ref);
if (alias) {
*ref = alias - 1;
return;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment