mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
nir/cf: fix insertion of loops/ifs after jumps
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10284>
This commit is contained in:
parent
2fe13aa2ad
commit
cc5dd15417
1 changed files with 2 additions and 1 deletions
|
|
@ -413,7 +413,8 @@ insert_non_block(nir_block *before, nir_cf_node *node, nir_block *after)
|
|||
{
|
||||
node->parent = before->cf_node.parent;
|
||||
exec_node_insert_after(&before->cf_node.node, &node->node);
|
||||
link_block_to_non_block(before, node);
|
||||
if (!nir_block_ends_in_jump(before))
|
||||
link_block_to_non_block(before, node);
|
||||
link_non_block_to_block(node, after);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue