mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
nir: clean up white-space in deref-printing
Without this, we get some trailing spaces in some cases, and some double space in some other cases. Let's clean that up a bit. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22550>
This commit is contained in:
parent
d8f3060bd9
commit
0a718c9354
1 changed files with 2 additions and 2 deletions
|
|
@ -850,12 +850,12 @@ print_deref_instr(nir_deref_instr *instr, print_state *state)
|
|||
fprintf(fp, "%s%s", get_variable_mode_str(1 << m, true),
|
||||
modes ? "|" : "");
|
||||
}
|
||||
fprintf(fp, " %s) ", glsl_get_type_name(instr->type));
|
||||
fprintf(fp, " %s)", glsl_get_type_name(instr->type));
|
||||
|
||||
if (instr->deref_type != nir_deref_type_var &&
|
||||
instr->deref_type != nir_deref_type_cast) {
|
||||
/* Print the entire chain as a comment */
|
||||
fprintf(fp, "/* &");
|
||||
fprintf(fp, " /* &");
|
||||
print_deref_link(instr, true, state);
|
||||
fprintf(fp, " */");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue