summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ddebug/dd_util.h
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2016-01-21 16:53:02 -0500
committerNicolai Hähnle <[email protected]>2016-01-26 09:58:55 -0500
commit41875ac4edd8c884225c44c0840bd20291b410ca (patch)
treeac7b793fd29f33d6de97abd98ec2055d86515f5e /src/gallium/drivers/ddebug/dd_util.h
parentf4c8fa4e49bf4a938bb0ec9ee7ff686e7c8007dc (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_util.h')
-rw-r--r--src/gallium/drivers/ddebug/dd_util.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/ddebug/dd_util.h b/src/gallium/drivers/ddebug/dd_util.h
index c217c8eed68..093bdff4a92 100644
--- a/src/gallium/drivers/ddebug/dd_util.h
+++ b/src/gallium/drivers/ddebug/dd_util.h
@@ -40,7 +40,7 @@
#define DD_DIR "ddebug_dumps"
static inline FILE *
-dd_get_debug_file()
+dd_get_debug_file(bool verbose)
{
static unsigned index;
char proc_name[128], dir[256], name[512];
@@ -65,6 +65,9 @@ dd_get_debug_file()
return NULL;
}
+ if (verbose)
+ fprintf(stderr, "dd: dumping to file %s\n", name);
+
return f;
}