mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 22:10: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;
|
++this->outCount;
|
||||||
++node->inCount;
|
++node->inCount;
|
||||||
|
|
||||||
assert(this->graph);
|
assert(graph || node->graph);
|
||||||
if (!node->graph) {
|
if (!node->graph)
|
||||||
node->graph = this->graph;
|
graph->insert(node);
|
||||||
++node->graph->size;
|
if (!graph)
|
||||||
}
|
node->graph->insert(this);
|
||||||
|
|
||||||
if (kind == Edge::UNKNOWN)
|
if (kind == Edge::UNKNOWN)
|
||||||
graph->classifyEdges();
|
graph->classifyEdges();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue