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/gallium/drivers | |
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/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/v3d/v3d_job.c | 5 | ||||
-rw-r--r-- | src/gallium/drivers/vc4/vc4_cl_dump.c | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/drivers/v3d/v3d_job.c b/src/gallium/drivers/v3d/v3d_job.c index 54b2c8dfac7..d7df04c03c9 100644 --- a/src/gallium/drivers/v3d/v3d_job.c +++ b/src/gallium/drivers/v3d/v3d_job.c @@ -344,11 +344,12 @@ v3d_get_job_for_fbo(struct v3d_context *v3d) static void v3d_clif_dump(struct v3d_context *v3d, struct v3d_job *job) { - if (!(V3D_DEBUG & V3D_DEBUG_CL)) + if (!(V3D_DEBUG & (V3D_DEBUG_CL | V3D_DEBUG_CLIF))) return; struct clif_dump *clif = clif_dump_init(&v3d->screen->devinfo, - stderr); + stderr, + V3D_DEBUG & V3D_DEBUG_CL); struct set_entry *entry; set_foreach(job->bos, entry) { diff --git a/src/gallium/drivers/vc4/vc4_cl_dump.c b/src/gallium/drivers/vc4/vc4_cl_dump.c index bb26b057a44..a6ae0cf80d7 100644 --- a/src/gallium/drivers/vc4/vc4_cl_dump.c +++ b/src/gallium/drivers/vc4/vc4_cl_dump.c @@ -42,7 +42,7 @@ vc4_dump_cl(void *cl, uint32_t size, bool is_render) }; struct v3d_spec *spec = v3d_spec_load(&devinfo); - struct clif_dump *clif = clif_dump_init(&devinfo, stderr); + struct clif_dump *clif = clif_dump_init(&devinfo, stderr, true); uint32_t offset = 0, hw_offset = 0; uint8_t *p = cl; |