projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
103f21b
)
v3d: When not doing terminal pretty-printing, comment struct field names.
author
Eric Anholt
<eric@anholt.net>
Mon, 25 Jun 2018 22:20:22 +0000
(15:20 -0700)
committer
Eric Anholt
<eric@anholt.net>
Mon, 30 Jul 2018 21:29:01 +0000
(14:29 -0700)
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.
src/broadcom/cle/v3d_decoder.c
patch
|
blob
|
history
diff --git
a/src/broadcom/cle/v3d_decoder.c
b/src/broadcom/cle/v3d_decoder.c
index 22367ca6f76b4c443f1a911c9b1f728554ab04e1..084fc64d36511890a532ffecf5142a4fe97d780a 100644
(file)
--- a/
src/broadcom/cle/v3d_decoder.c
+++ b/
src/broadcom/cle/v3d_decoder.c
@@
-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,