ppir_regalloc_update_reglist_ssa(comp);
+ /* No registers? Probably shader consists of discard instruction */
+ if (list_empty(&comp->reg_list))
+ return true;
+
/* this will most likely succeed in the first
* try, except for very complicated shaders */
while (!ppir_regalloc_prog_try(comp, &spilled))