We forgot to remove the instruction under consideration from instr_list
before inserting it into the block's list, which caused instr_list to
become corrupted. This happened to work but caused further corruption in
some rare scenarios.
Fixes: adf1659 ("freedreno/ir3: use standard list implementation")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7573>
samgp->flags |= IR3_INSTR_SY;
}
} else {
+ list_delinit(&n->node);
list_addtail(&n->node, &block->instr_list);
}