From d248618d81ffbb049169ff3f3c496c0c9a21cab0 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sun, 17 Nov 2024 14:36:00 -0400 Subject: [PATCH] nir/print: print parameter names in calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit if we have them. example: call libagx_geometry_input_address %10, p %3, vtx %9, location %0 (0x0) Signed-off-by: Alyssa Rosenzweig Reviewed-by: Marek Olšák Part-of: --- src/compiler/nir/nir_print.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c index 320ce8ba443..30f81a0ca53 100644 --- a/src/compiler/nir/nir_print.c +++ b/src/compiler/nir/nir_print.c @@ -1907,6 +1907,9 @@ print_call_instr(nir_call_instr *instr, print_state *state) if (i != 0) fprintf(fp, ", "); + if (instr->callee->params[i].name) + fprintf(fp, "%s ", instr->callee->params[i].name); + print_src(&instr->params[i], state, nir_type_invalid); } }