mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 20:00:10 +01:00
nv50/ir: Allow attaching two nodes when either one is already inside the graph.
This commit is contained in:
parent
099b81396e
commit
0056e1b988
1 changed files with 5 additions and 5 deletions
|
|
@ -116,11 +116,11 @@ void Graph::Node::attach(Node *node, Edge::Type kind)
|
|||
++this->outCount;
|
||||
++node->inCount;
|
||||
|
||||
assert(this->graph);
|
||||
if (!node->graph) {
|
||||
node->graph = this->graph;
|
||||
++node->graph->size;
|
||||
}
|
||||
assert(graph || node->graph);
|
||||
if (!node->graph)
|
||||
graph->insert(node);
|
||||
if (!graph)
|
||||
node->graph->insert(this);
|
||||
|
||||
if (kind == Edge::UNKNOWN)
|
||||
graph->classifyEdges();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue