mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
v3d: When not doing terminal pretty-printing, comment struct field names.
The struct field names aren't part of the CLIF ABI, just the order of fields within the struct. The comments are there for human readability.
This commit is contained in:
parent
103f21b13d
commit
8da47b7648
1 changed files with 7 additions and 1 deletions
|
|
@ -975,7 +975,13 @@ v3d_print_group(struct clif_dump *clif, struct v3d_group *group,
|
|||
strcmp(iter.field->name, "Pad") == 0)
|
||||
continue;
|
||||
|
||||
fprintf(clif->out, " %s: %s\n", iter.name, iter.value);
|
||||
if (clif->pretty) {
|
||||
fprintf(clif->out, " %s: %s\n",
|
||||
iter.name, iter.value);
|
||||
} else {
|
||||
fprintf(clif->out, " /* %30s: */ %s\n",
|
||||
iter.name, iter.value);
|
||||
}
|
||||
if (iter.struct_desc) {
|
||||
uint64_t struct_offset = offset + iter.offset;
|
||||
v3d_print_group(clif, iter.struct_desc,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue