lima/ppir: print register index and components number for spilled register
authorVasily Khoruzhick <anarsoul@gmail.com>
Tue, 20 Aug 2019 14:30:46 +0000 (07:30 -0700)
committerVasily Khoruzhick <anarsoul@gmail.com>
Sat, 24 Aug 2019 15:17:31 +0000 (08:17 -0700)
It can be useful for debugging purposes

Tested-by: Andreas Baierl <ichgeh@imkreisrum.de>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Reviewed-by: Erico Nunes <nunes.erico@gmail.com>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
src/gallium/drivers/lima/ir/pp/regalloc.c

index 8df6058ec0a416e4f7ebecaf6869865195d820fb..dcefa1e6480ddbcb26370d8b84b23a146ecfbd0b 100644 (file)
@@ -602,7 +602,9 @@ static bool ppir_regalloc_prog_try(ppir_compiler *comp, bool *spilled)
          /* Ask the outer loop to call back in. */
          *spilled = true;
 
-         ppir_debug("spilled register\n");
+         ppir_debug("spilled register %d/%d, num_components: %d\n",
+                    chosen->regalloc_index, list_length(&comp->reg_list),
+                    chosen->num_components);
          goto err_out;
       }