diff options
author | Eric Anholt <[email protected]> | 2018-07-30 11:29:26 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-07-30 14:29:01 -0700 |
commit | 103f21b13d839ccd011b06b5708e7b9c1b8d228e (patch) | |
tree | f0241ecd2d66b47bec6c26d4b55a54de6541219b /src/broadcom/clif | |
parent | 89ac6fa4036da815b5cf4985f438cec73df67480 (diff) |
v3d: Add a separate flag for CLIF ABI output versus human-readable CLs.
A few of the upcoming changes would make the V3D_DEBUG=cl output less
readable, so let's make proper CLIF file production be under a separate
V3D_DEBUG=clif flag.
Diffstat (limited to 'src/broadcom/clif')
-rw-r--r-- | src/broadcom/clif/clif_dump.c | 3 | ||||
-rw-r--r-- | src/broadcom/clif/clif_dump.h | 2 | ||||
-rw-r--r-- | src/broadcom/clif/clif_private.h | 6 |
3 files changed, 9 insertions, 2 deletions
diff --git a/src/broadcom/clif/clif_dump.c b/src/broadcom/clif/clif_dump.c index 6bee7a481b0..a637ba5999f 100644 --- a/src/broadcom/clif/clif_dump.c +++ b/src/broadcom/clif/clif_dump.c @@ -51,13 +51,14 @@ clif_dump_add_address_to_worklist(struct clif_dump *clif, struct clif_dump * clif_dump_init(const struct v3d_device_info *devinfo, - FILE *out) + FILE *out, bool pretty) { struct clif_dump *clif = rzalloc(NULL, struct clif_dump); clif->devinfo = devinfo; clif->out = out; clif->spec = v3d_spec_load(devinfo); + clif->pretty = pretty; list_inithead(&clif->worklist); diff --git a/src/broadcom/clif/clif_dump.h b/src/broadcom/clif/clif_dump.h index f89447b9bd9..f0a8f9a1f14 100644 --- a/src/broadcom/clif/clif_dump.h +++ b/src/broadcom/clif/clif_dump.h @@ -31,7 +31,7 @@ struct v3d_device_info; struct clif_dump; struct clif_dump *clif_dump_init(const struct v3d_device_info *devinfo, - FILE *output); + FILE *output, bool pretty); void clif_dump(struct clif_dump *clif); void clif_dump_destroy(struct clif_dump *clif); diff --git a/src/broadcom/clif/clif_private.h b/src/broadcom/clif/clif_private.h index ea96784289a..8753ba229f8 100644 --- a/src/broadcom/clif/clif_private.h +++ b/src/broadcom/clif/clif_private.h @@ -47,6 +47,12 @@ struct clif_dump { struct clif_bo *bo; int bo_count; int bo_array_size; + + /** + * Flag to switch from CLIF ABI to slightly more human-readable + * output. + */ + bool pretty; }; enum reloc_worklist_type { |