From 681e99d11cf85638dc7a163c9096c6ea6eab1b62 Mon Sep 17 00:00:00 2001 From: Vasily Khoruzhick Date: Tue, 20 Aug 2019 07:30:46 -0700 Subject: [PATCH] lima/ppir: print register index and components number for spilled register It can be useful for debugging purposes Tested-by: Andreas Baierl Reviewed-by: Qiang Yu Reviewed-by: Erico Nunes Signed-off-by: Vasily Khoruzhick --- src/gallium/drivers/lima/ir/pp/regalloc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/lima/ir/pp/regalloc.c b/src/gallium/drivers/lima/ir/pp/regalloc.c index 8df6058ec0a..dcefa1e6480 100644 --- a/src/gallium/drivers/lima/ir/pp/regalloc.c +++ b/src/gallium/drivers/lima/ir/pp/regalloc.c @@ -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; } -- 2.30.2