Module: Mesa Branch: master Commit: 8da47b7648f6e785bb0f177d1c3824ca0e1792a4 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8da47b7648f6e785bb0f177d1c3824ca0e1792a4
Author: Eric Anholt <[email protected]> Date: Mon Jun 25 15:20:22 2018 -0700 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. --- src/broadcom/cle/v3d_decoder.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/broadcom/cle/v3d_decoder.c b/src/broadcom/cle/v3d_decoder.c index 22367ca6f7..084fc64d36 100644 --- 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, _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
