nir/print: print parameter names in calls

if we have them. example:

call libagx_geometry_input_address %10, p %3, vtx %9, location %0 (0x0)

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32208>
This commit is contained in:
Alyssa Rosenzweig 2024-11-17 14:36:00 -04:00 committed by Marge Bot
parent 6b35d7eb13
commit d248618d81

View file

@ -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);
}
}