mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 23:40:10 +01:00
nv50/ir: Allow inserting isolated nodes to a graph.
This commit is contained in:
parent
1829484458
commit
099b81396e
1 changed files with 4 additions and 6 deletions
|
|
@ -43,13 +43,11 @@ Graph::~Graph()
|
|||
|
||||
void Graph::insert(Node *node)
|
||||
{
|
||||
if (!root) {
|
||||
if (!root)
|
||||
root = node;
|
||||
size = 1;
|
||||
node->graph = this;
|
||||
} else {
|
||||
root->attach(node, Edge::TREE);
|
||||
}
|
||||
|
||||
node->graph = this;
|
||||
size++;
|
||||
}
|
||||
|
||||
void Graph::Edge::unlink()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue