agx: Dynamically allocate agx_instr->src

Required for phi nodes.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16268>
This commit is contained in:
Alyssa Rosenzweig
2022-04-12 21:29:18 -04:00
parent d39b1c3426
commit bb1fb0a9db
5 changed files with 28 additions and 9 deletions

View File

@@ -124,7 +124,7 @@ agx_print_instr(agx_instr *I, FILE *fp)
agx_print_index(I->dest[d], fp);
}
for (unsigned s = 0; s < info.nr_srcs; ++s) {
for (unsigned s = 0; s < I->nr_srcs; ++s) {
if (print_comma)
fprintf(fp, ", ");
else