aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/lima
diff options
context:
space:
mode:
authorConnor Abbott <[email protected]>2019-10-03 15:19:40 -0400
committerMarge Bot <[email protected]>2020-03-16 23:08:06 +0000
commit9fb0fda8e7bfa95686fd60ee563938b8e1196437 (patch)
tree9d992b3b4944af3918091391897ffa7a5157c7e8 /src/gallium/drivers/lima
parent5c3f20a25baa6f5b2baa2a6ef693e38095da5508 (diff)
lima/gpir: Make lima_gpir_node_insert_child() useful
We weren't using this function before. The name is confusing, but it changes the child while also fixing up the dependence link, if you don't have access to it already. Or at least, I think that's what the intention is, and what we'll need to change the branch condition in the next commit. Adding a dependency between the new and old source doesn't make any sense for this, and we also need to change the actual source. Reviewed-by: Vasily Khoruzhick <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4125>
Diffstat (limited to 'src/gallium/drivers/lima')
-rw-r--r--src/gallium/drivers/lima/ir/gp/node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/lima/ir/gp/node.c b/src/gallium/drivers/lima/ir/gp/node.c
index 78f7bd130ea..ef534e7e286 100644
--- a/src/gallium/drivers/lima/ir/gp/node.c
+++ b/src/gallium/drivers/lima/ir/gp/node.c
@@ -413,10 +413,10 @@ void gpir_node_insert_child(gpir_node *parent, gpir_node *child,
gpir_node_foreach_pred(parent, dep) {
if (dep->pred == child) {
gpir_node_replace_pred(dep, insert_child);
+ gpir_node_replace_child(parent, child, insert_child);
break;
}
}
- gpir_node_add_dep(insert_child, child, GPIR_DEP_INPUT);
}
void gpir_node_delete(gpir_node *node)