lima/gpir: Ignore unscheduled successors in can_use_complex()
[mesa.git] / src / gallium / drivers / lima / ir / gp / scheduler.c
index 9900ceaa04158e7762c3a3e48929dfbf636417a6..bfb64543e065eb5d9ccc9448132b3376ea3e8377 100644 (file)
@@ -1154,7 +1154,8 @@ static bool can_use_complex(gpir_node *node)
          continue;
 
       gpir_node *succ = dep->succ;
-      if (succ->type != gpir_node_type_alu)
+      if (succ->type != gpir_node_type_alu ||
+          !succ->sched.instr)
          continue;
 
       /* Note: this must be consistent with gpir_codegen_{mul,add}_slot{0,1}