diff options
author | Nicolai Hähnle <[email protected]> | 2016-01-21 16:53:02 -0500 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-01-26 09:58:55 -0500 |
commit | 41875ac4edd8c884225c44c0840bd20291b410ca (patch) | |
tree | ac7b793fd29f33d6de97abd98ec2055d86515f5e /src/gallium/drivers/ddebug/dd_draw.c | |
parent | f4c8fa4e49bf4a938bb0ec9ee7ff686e7c8007dc (diff) |
gallium/ddebug: add 'verbose' option
This currently just writes out the name of dump files, which can be useful
to easily correlate those files with other log outputs (driver debug output,
apitrace calls, etc.)
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/ddebug/dd_draw.c')
-rw-r--r-- | src/gallium/drivers/ddebug/dd_draw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/ddebug/dd_draw.c b/src/gallium/drivers/ddebug/dd_draw.c index de484abbb3d..45e4e10d500 100644 --- a/src/gallium/drivers/ddebug/dd_draw.c +++ b/src/gallium/drivers/ddebug/dd_draw.c @@ -88,8 +88,9 @@ struct dd_call static FILE * dd_get_file_stream(struct dd_context *dctx) { + struct dd_screen *dscreen = dd_screen(dctx->base.screen); struct pipe_screen *screen = dctx->pipe->screen; - FILE *f = dd_get_debug_file(); + FILE *f = dd_get_debug_file(dscreen->verbose); if (!f) return NULL; |