context: keep the driver passive when we can

Only make the driver node active when we assign it an always_process
node. Otherwise we can keep the driver passive until some other active
nodes are added.

Fixes a case where an need_driver node would automatically activate
the driver, even when nothing is to be scheduled.
This commit is contained in:
Wim Taymans 2022-03-30 13:26:07 +02:00
parent 5547f9a1b9
commit 01b4c4fa64

View file

@ -1170,7 +1170,8 @@ again:
if (t == NULL)
ensure_state(n, false);
else {
t->passive = false;
if (n->always_process)
t->passive = false;
collect_nodes(context, n);
}
}