mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
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:
parent
6b35d7eb13
commit
d248618d81
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue